Sign in

Create purchase order

documented

Create a purchase order.

POST /v3/company/{realmId}/purchaseorderPurchaseOrdersno 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}}/purchaseorder?minorversion=70" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "VendorRef": {"value": "{{$vendor_id}}"},
    "TxnDate": "{{$txn_date}}",
    "DocNumber": "{{$po_number}}",
    "APAccountRef": {"value": "{{$ap_account_id}}"},
    "TotalAmt": {{$total_amt}},
    "Line": [
      {
        "DetailType": "PurchaseOrderLineDetail",
        "Amount": {{$line_amount}},
        "PurchaseOrderLineDetail": {
          "ItemRef": {"value": "{{$item_id}}", "name": "{{$item_name}}"},
          "Qty": {{$qty}}
        }
      }
    ],
    "PrivateNote": "{{$private_note}}"
  }'"}
Create purchase order · Intuit · OpenIntegrations