List a draft invoice's email attachments
GET
/v1/invoices/{id}/attachments
const url = 'https://api.emite.cr/v1/invoices/example/attachments';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.emite.cr/v1/invoices/example/attachments \ --header 'Authorization: Bearer <token>'Extra files uploaded on this invoice that will ride along with the fiscal documents (PDF + 2 XML) in the accepted-by-Hacienda email to the receiver. Metadata only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Invoice UUID
Responses
Section titled “Responses”Media typeapplication/json
Array<object>
object
id
required
Attachment id.
string
filename
required
Original (sanitized) filename, shown in the list and used in the email.
string
contentType
required
MIME type.
string
sizeBytes
required
Size in bytes.
number
createdAt
required
When the file was uploaded (ISO 8601).
string
isMandatory
Tenant-fixed only: when true the attachment cannot be omitted from an individual invoice.
boolean
Examplegenerated
[ { "id": "example", "filename": "example", "contentType": "example", "sizeBytes": 1, "createdAt": "example", "isMandatory": true }]Invoice not found.