Create credit note
documentedCreate a credit note.
POST /CreditNotesCreditNotesno implementation yet0 runsNo 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" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "xero-tenant-id: {{XERO_TENANT_ID}}" \
-d '{"CreditNotes": [ {"Type": "{{$credit_note_type}}", "Contact": {"ContactID": "{{$contact_id}}"}, "Date": "{{$credit_note_date}}", "LineItems": [ {"Description": "{{$line_description}}", "Quantity": {{$line_quantity}}, "UnitAmount": {{$line_unit_amount}}, "AccountCode": "{{$line_account_code}}" } ] } ] }'