E-invoicing

Download a legal file of an invoice filing

Changed on

Return a short-lived URL that downloads one legal file of the e-invoice filing of the invoice, such as the authority PDF or XML. Read the attachment_id from files on the filing. You need the invoice view permission.

The request fails in these cases:

  • The request fails with 404 when the invoice has no filing, or when the filing does not hold that file.
  • The request fails with 402 before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the invoice.
get/public/v2/e-invoicing/invoices/{number}/files/{attachment_id}/

Request

  • Base URL: https://api.dualentry.com
  • URL: https://api.dualentry.com/public/v2/e-invoicing/invoices/{number}/files/{attachment_id}/
  • Auth: none declared

Path parameters

numberinteger required
attachment_idinteger required

Response

OK

urlstring required

A short-lived URL that downloads the file.

Changes