Sign in

Create invoice allocations

documented

Create allocations for an invoice.

POST /Invoices/{InvoiceID}/AllocationsInvoicesno 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://api.xero.com/api.xro/2.0/Invoices/{{$InvoiceID}}/Allocations" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "xero-tenant-id: {{$tenant_id}}" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -d '{"allocations": [{"invoice": {"invoiceID": "{{$reference_invoice_id}}"}, "amount": {{$amount}}, "date": "{{$date}}"}]}'
Create invoice allocations · Xero · OpenIntegrations