Sign in

Create invoice

documented

Create a new invoice.

POST /v3/company/{realmId}/invoiceInvoicesno 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}}/invoice?minorversion={{$minorversion}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "Line": [
      {
        "DetailType": "SalesItemLineDetail",
        "Amount": {{$amount}},
        "SalesItemLineDetail": {
          "ItemRef": {
            "value": "{{$item_id}}", 
            "name": "{{$item_name}}"
          },
          "UnitPrice": {{$unit_price}},
          "Qty": {{$qty}},
          "TaxCodeRef": { "value": "NON" }
        },
        "Description": "{{$description}}"
      }
    ],
    "CustomerRef": { "value": "{{$customer_id}}" },
    "DueDate": "{{$due_date}}",
    "PrivateNote": "{{$private_note}}"
  }'