Sign in

Create credit note allocations

documented

Create allocations for a credit note.

POST /CreditNotes/{CreditNoteID}/AllocationsCreditNotesno 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/CreditNotes/{{$CreditNoteID}}/Allocations?summarizeErrors={{summarizeErrors}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "xero-tenant-id: {{$xero_tenant_id}}" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"allocations": [{"amount": {{$amount}}, "date": "{{$date}}", "invoice": {"invoiceID": "{{$invoice_id}}"}}]}'