Update payment
update_paymentCorrect an existing payment in QuickBooks by replacing its amount, date, or linked invoice. Requires the payment ID and a fresh SyncToken to overwrite the record.
Instructions
Replace the contents of an existing payment. Use it to correct an amount, a date, or the invoice a payment was applied to. Write operation that overwrites the live record: the amount and linked transactions are replaced with what you send, so leaving invoice_id out unlinks the payment and reopens that invoice's balance. Not idempotent, and it requires the Id plus the SyncToken from a fresh get_payment; a stale token fails with error 5010.
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>",
"payment": "<payment>"
},
"name": "update_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment | Yes | Full replacement contents for the payment, including the invoice link it should keep. | |
| 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 |