Skip to content

List a draft invoice's email attachments

GET
/v1/invoices/{id}/attachments
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.

id
required
string

Invoice UUID

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.