Skip to main content
PATCH
Update 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.

Body

application/json

The fields of the invoice attachment to change. Send at least one of them.

filename
string

The new name of the file, of up to 255 characters, which its download carries. A new name keeps the fileExtension of the attachment.

Required string length: 1 - 255
Example:

"pedido-de-compra-novembro.pdf"

includeInDelivery
boolean

Whether an invoice delivery attaches the file, when the dunning step of the delivery carries the invoice attachments. An uploaded file starts with false.

Response

The invoice attachment, with the changes of the request.

id
string<uuid>
required

The unique identifier of the invoice attachment in our system.

invoiceId
string<uuid>
required

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

filename
string
required

The name of the file, which its download carries.

Example:

"pedido-de-compra-novembro.pdf"

fileExtension
enum<string>
required

The extension of the file, taken from the name of the uploaded file. A file whose name has another extension, or none, is recorded as pdf.

Available options:
pdf,
csv,
xlsx,
xlsm,
xml,
zip
includeInDelivery
boolean
required

Whether an invoice delivery attaches the file, when the dunning step of the delivery carries the invoice attachments. An uploaded file starts with false.