Update Invoice By ExternalId

Updates the order invoice details by identifying it using the order.ExternalId field.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

📄 Invoice

📘

Automatic status transition

This method also updates the order status to 20 (Invoice Created).

Payload (PUT)

This payload is used to send invoice data for a specific order.

{
  "invoice": {
    "key": "00000000000000000000000000000000000000000000",
    "number": "000022507",
    "serieNumber": 10,
    "totalAmount": 59.47,
    "xmlUrl": "https://domain.com/order-files/{client_id}/{order_id}/xml_{invoice.key}.xml",
    "fileUrl": "https://domain.com/order-files/{client_id}/{order_id}/file_{invoice.key}.pdf",
    "issuanceDate": "0000-00-00T03:00:00Z",
    "xmlString": "{invoice_xml_base64_encoded}"
  }
}

FieldTypeDescription
keystringUnique access key for the invoice (usually 44 digits).
numberstringInvoice number as issued by the system.
serieNumberintegerSeries number of the invoice (typically related to fiscal series).
totalAmountnumberTotal value of the invoice.
xmlUrlstringPublic URL to download the XML file of the invoice. Should follow the format with {client_id}, {order_id}, and {invoice.key}.
fileUrlstringPublic URL to download the PDF representation of the invoice. Same dynamic placeholders apply.
issuanceDatestring (ISO 8601)Date and time the invoice was issued (e.g., 2024-08-04T03:00:00Z).
xmlStringstring (Base64)Base64-encoded XML content of the invoice. Used when the file cannot be retrieved via xmlUrl.
Path Params
string
required

Identificador do Pedido

Body Params
"invoice"
object

Campos da nota fiscal

Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Choose an example:
application/json