Delete payment
delete_paymentPermanently remove a mistakenly recorded payment from QuickBooks, returning any invoice it settled to unpaid. Use only for payments entered in error.
Instructions
Delete a payment permanently from the company file. Use it only for a payment recorded in error, and expect any invoice it settled to go back to unpaid for that amount. This server cannot undo the deletion. Write operation and not idempotent: it needs the SyncToken from a fresh get_payment, and a repeat call for the same Id fails because the payment no longer exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_id | Yes | QuickBooks Payment Id, as returned by search_payments, list_payments, or create_payment. | |
| sync_token | Yes | SyncToken from a fresh get_payment call for this Id. QuickBooks rejects a stale token with error 5010, so re-read the payment instead of reusing an older token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| payment | No |