Publish invoice event
documentedPublish an invoice event notification.
POST /webhooks/invoicesWebhooksno 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" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "xero-tenant-id: {{XERO_TENANT_ID}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"Invoices": [{"Type": "ACCREC", "Contact": {"Name": "{{$contact_name}}", "EmailAddress": "{{$contact_email}}"}, "Date": "{{$date}}", "DueDate": "{{$due_date}}", "LineItems": [{"Description": "{{$description}}", "Quantity": {{$quantity}}, "UnitAmount": {{$unit_amount}}, "AccountCode": "{{$account_code}}"}], "Status": "AUTHORISED"}]}'" ,