Invoices

Create a new invoice for an existing order

post
Autorizações
Parâmetros de rota
idstringObrigatório
Parâmetros de consulta
invoice_keystringObrigatório
xml_file_idstringOpcional
danfe_file_idstringOpcional
Corpo
xmlstring · binaryOpcional

DEPRECATED. Direct XML file upload is being discontinued. Please use 'xml_file_id' instead.

pdfstring · binaryOpcional

DEPRECATED. Direct PDF file (DANFE) upload is being discontinued. Please use 'danfe_file_id' instead.

Respostas
201

Order invoice created successfully

application/json
post
POST /api/sales/orders/{id}/invoices HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 31

{
  "xml": "binary",
  "pdf": "binary"
}
{
  "invoice_key": "text",
  "xml_resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "danfe_resource_id": "123e4567-e89b-12d3-a456-426614174000"
}