Tool to create a new purchase transaction in QuickBooks Online. A purchase represents an expense such as a cash payment, check, or credit card purchase. Use when recording business expenses or making payments to vendors.
LineRequiredarrayList of line items for the purchase. At least one line item is required. Each line must have an Amount and DetailType with corresponding detail object.
TxnDatestringDate of the transaction in YYYY-MM-DD format (e.g., '2024-08-23'). If not provided, uses the current date.
TotalAmtnumberTotal amount of the purchase including all line items. If not provided, QuickBooks will calculate it from the line items. Should match the sum of all line amounts.
DocNumberstringReference number for the purchase (e.g., check number). Maximum 21 characters.
EntityRefobjectReference to an entity (vendor, customer, employee).
AccountRefRequiredobjectReference to the account from which the payment is made (e.g., {'value': '19'} for a checking account or {'value': '42'} for a credit card account).
CurrencyRefobjectReference to a currency.
PaymentTypeRequiredstringPayment method used for this purchase. Choose 'Cash', 'Check', or 'CreditCard'.
PrivateNotestringPrivate note about the purchase, visible only to company users. Maximum 4000 characters.
ExchangeRatenumberExchange rate for multi-currency transactions. Required if CurrencyRef is different from home currency.
minorversionintegerQuickBooks API minor version number to use for this request (e.g., 65, 70, 75). If not specified, uses the default API version from headers.
DepartmentRefobjectReference to an account.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.