Sign in

Update credit note

documented

Update a credit note.

PUT /CreditNotes/{CreditNoteID}CreditNotesno 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}}?unitdp={{$unitdp}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "xero-tenant-id: {{$tenant_id}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Idempotency-Key: {{$IdempotencyKey}}" \
  -d '{"creditNotes": [ {"type": "ACCPAYCREDIT", "contact": {"contactID": "{{$ContactID}}"}, "date": "{{$Date}}", "lineItems": [ {"description": "{{$Description}}", "quantity": {{$Quantity}}, "unitAmount": {{$UnitAmount}}, "accountCode": "{{$AccountCode}}"} ], "reference": "{{$Reference}}"} ] }'