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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payment_id": "<payment_id>",
"sync_token": "<sync_token>"
},
"name": "delete_payment"
}
}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 |