qbo_purchase_orders_update
Update an existing QuickBooks Online purchase order by providing only the fields to change. Requires the purchase order ID and SyncToken.
Instructions
Sparse-update an existing PurchaseOrder record. Only provided fields are changed; Id and SyncToken are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Line | Yes | PO lines, same shape as Bill.Line: {Amount, DetailType, AccountBasedExpenseLineDetail | ItemBasedExpenseLineDetail}. | |
| Memo | No | Memo printed on the PO | |
| DueDate | No | Expected delivery date | |
| TxnDate | No | PO date (YYYY-MM-DD) | |
| POStatus | No | Status: "Open" or "Closed" | |
| ShipAddr | No | Ship-to address (Line1, City, CountrySubDivisionCode, PostalCode) | |
| DocNumber | No | PO number | |
| SyncToken | Yes | Current SyncToken of the record (required by QBO for sparse updates; fetch the record first to obtain it) | |
| VendorRef | Yes | Vendor receiving the PO, e.g. {"value": "56"} | |
| VendorAddr | No | Vendor address override | |
| PrivateNote | No | Private internal note | |
| purchaseOrderId | Yes | The PurchaseOrder ID to update |