Download invoice attachment file
documentedDownload attachment file for an invoice.
GET /Invoices/{InvoiceID}/Attachments/{AttachmentID}/fileInvoicesno 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/{{$invoice_id}}/Attachments/{{$attachment_id}}" \
-X GET \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "xero-tenant-id: {{$xero_tenant_id}}" \
-H "Accept: application/octet-stream" \
-H "contentType: {{$contentType}}"