qbo_purchases_create
Create purchase records in QuickBooks Online by specifying account, payment type, and expense lines, capturing vendor, date, and notes for accurate expense tracking.
Instructions
Create a new Purchase record in QuickBooks Online.
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": {
"AccountRef": "<AccountRef>",
"PaymentType": "<PaymentType>",
"Line": "<Line>"
},
"name": "qbo_purchases_create"
}
}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" | |
| AccountRef | Yes | Bank, credit card, or cash account the purchase was paid from, e.g. {"value": "35"} | |
| PaymentType | Yes | Payment method: "Cash", "Check", or "CreditCard" | |
| PrivateNote | No | Private note |