Sign in

Update purchase

documented

Update a purchase.

POST /v3/company/{realmId}/purchase?operation=updatePurchasesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://quickbooks.api.intuit.com/v3/company/{{$realmId}}/purchase?operation=update" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"Id":"{{$purchase_id}}","SyncToken":"{{$sync_token}}","VendorRef":{"value":"{{$vendor_id}}","name":"{{$vendor_name}}"},"APAccountRef":{"value":"{{$ap_account_id}}","name":"{{$ap_account_name}}"},"Line":[{"DetailType":"AccountBasedExpenseLineDetail","Amount":{{$amount}},"AccountBasedExpenseLineDetail":{"AccountRef":{"value":"{{$expense_account_id}}","name":"{{$expense_account_name}}"}}}],"PrivateNote":"{{$note}}","sparse":true}'
Update purchase · QuickBooks · OpenIntegrations