Receipts: delete receipt by id_by_customer
receipts_deleteDelete a mistakenly filed receipt using its customer ID. Confirm with the user before deleting; the action is reversible with receipts_restore.
Instructions
🔴 DESTRUCTIVE · deletes data: Deletes or cancels a record. Confirm with the user before calling. Receipt deletes are restorable; cost-location deletes are not. Cancelling a posting deletes it if it is not yet fixed, otherwise it books a reversal posting.
delete receipt by id_by_customer
Mark a receipt as deleted for a specified customer account by id_by_customer. You can get the "id_by_customer" by using the "/receipts/get method" first.
Use to remove a receipt that was filed by mistake.
Recoverable: receipts_restore brings the receipt back. Confirm with the user before calling.
Endpoint: POST /receipts/delete/id_by_customer
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | blank | |
| success | Yes | Success boolean | |
| id_by_customer | No | blank |