qbo_purchases_update
Sparse-update an existing QuickBooks Online purchase record. Only supplied fields change; requires purchase ID, SyncToken, account, payment type, and expense lines.
Instructions
Sparse-update an existing Purchase record. Only provided fields are changed; Id and SyncToken are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Line | Yes | Expense lines, same shape as Bill.Line: {Amount, DetailType: "AccountBasedExpenseLineDetail" | "ItemBasedExpenseLineDetail", ...}. | |
| TxnDate | No | Purchase date (YYYY-MM-DD) | |
| DocNumber | No | Reference number | |
| EntityRef | No | Optional payee reference, e.g. {"value": "56", "type": "Vendor"} or with type "Customer"/"Employee" | |
| SyncToken | Yes | Current SyncToken of the record (required by QBO for sparse updates; fetch the record first to obtain it) | |
| AccountRef | Yes | Bank, credit card, or cash account the purchase was paid from, e.g. {"value": "35"} | |
| purchaseId | Yes | The Purchase ID to update | |
| PaymentType | Yes | Payment method: "Cash", "Check", or "CreditCard" | |
| PrivateNote | No | Private note |