Skip to main content
GET
Fetch a download link of an attachment of an invoice

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

invoiceId
string<uuid>
required

The unique identifier of the invoice that the attachment belongs to.

attachmentId
string<uuid>
required

The unique identifier of the invoice attachment in our system.

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.