Skip to main content
GET
Fetch a download link of the fiscal document of an invoice

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string<uuid>
required

The unique identifier of the invoice in our system.

Query Parameters

documentType
enum<string>
required

The file of the fiscal document to download: pdf for its PDF, or xml for its XML.

Available options:
pdf,
xml

Response

A link that downloads one file with no API key, for a client that cannot receive a file, such as a chat client.

url
string<uri>
required

The URL that downloads the file with no API key until expiresAt. Whoever holds the URL downloads the file, so share it only with whoever may read the file.

fileName
string
required

The name of the file that the URL downloads.

Example:

"PADAR-00042.pdf"

expiresAt
string<date-time>
required

The instant, in UTC, when the URL stops working, five minutes after Aira creates it.