Update invoice
documentedUpdate an invoice.
PUT /Invoices/{InvoiceID}Invoicesno 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/Invoices/{{$InvoiceID}}" \
-X PUT \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "xero-tenant-id: {{XERO_TENANT_ID}}" \
-H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
-d '{"Invoices": [{"InvoiceNumber": "{{$invoice_number}}","Reference": "{{$reference}}","InvoiceDate": "{{$invoice_date}}","DueDate": "{{$due_date}}","CurrencyCode": "{{$currency_code}}"}]}'