Postings: cancel posting
postings_cancelCancel a posting to take it out of the books. Unfixed postings are deleted; fixed ones are reversed with a balancing entry.
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.
cancel posting
Cancel a specified posting. Postings that are not fixed are deleted, fixed postings are cancelled by creating a reversal posting.
Use to take a booking out of the books entirely.
This is stronger than the postings_unconfirm_* tools: those keep the posting and only clear its confirmation, this one removes or reverses it. Prefer unconfirming when the goal is to edit and rebook.
The effect depends on the posting: one that is not yet fixed is deleted outright, a fixed one stays and is offset by a reversal posting, which leaves two visible entries in the journal. Confirm with the user before calling.
Endpoint: POST /postings/cancel
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posting_id_by_customer | Yes | The id_by_customer of the posting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Success message | |
| success | Yes | Success boolean |