Order invoice created successfully
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{id}/invoices?invoice_key=text', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "multipart/form-data" }, body: JSON.stringify({ "pdf": "binary", "xml": "binary" }), }); const data = await response.json();
{ "invoice_key": "text", "xml_resource_id": "123e4567-e89b-12d3-a456-426614174000", "danfe_resource_id": "123e4567-e89b-12d3-a456-426614174000" }