Set receipt public view
set_receipt_visibilityChange a receipt's public display to full or redacted. Requires the edit_token from record_approval. Optional public_scope replaces the scope shown publicly while redacted. Stored outside the hash chain, so the content hash and verify result do not change. redacted shows the approver as initials, the agent name as Agent, no email or phone, and payment refs and proof values as on file plus the last 4 characters. Merchant name, merchant URL, amounts, cap, timeline, and statuses stay visible. BotSupply does not move money. Same as POST /v1/receipts/:id/visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edit_token | Yes | Secret returned once by record_approval. Required to change the public view. | |
| receipt_id | Yes | Receipt id from record_approval (rcpt_…). | |
| public_view | Yes | full shows the record with emails and phones masked. redacted hides purchaser details. | |
| public_scope | No | Optional. Replaces the scope on the public receipt while redacted. Omit to leave the stored public scope unchanged. |