create purchase order
create_purchase_orderCreate a purchase order in QuickBooks Online. Returns the saved record with its SyncToken.
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": {
"entity": "<entity>"
},
"name": "create_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | The PurchaseOrder to create, as a QuickBooks Online API v3 PurchaseOrder object. Do not send government identifiers (SSN or tax IDs), birth dates or card-processing details. Manage those fields directly in QuickBooks. An ItemBasedExpenseLineDetail line only works if the item itself carries an ExpenseAccountRef; without one QuickBooks answers 'Select an account for this transaction'. Use an AccountBasedExpenseLineDetail line instead, or set the item's expense account first. | |
| company | No | Which connected QuickBooks company to use (name, realm id, or connection id). Optional when only one company is connected. |