{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/requestSendInvoice", "title": "requestSendInvoice", "type": "object", "description": "Object used to send invoice information related to an order.", "required": [ "type", "invoiceNumber", "items" ], "properties": { "type": { "type": "string", "description": "Indicates the type of the invoice. Use `\"Output\"` for regular orders and `\"Input\"` for returns.", "example": "Output" }, "invoiceNumber": { "type": "string", "description": "Invoice number.", "example": "NFe-00002" }, "courier": { "type": "string", "description": "Courier, if available on invoice.", "example": "courier-example" }, "trackingNumber": { "type": "string", "description": "Tracking number.", "example": "12345678abc" }, "trackingUrl": { "type": "string", "description": "Tracking URL.", "example": "https://courier-example.com/tracking" }, "items": { "type": "array", "description": "Array containing the order items.", "items": { "type": "object", "description": "Specification data for each order item.", "required": [ "id", "quantity", "price" ], "properties": { "id": { "type": "string", "description": "SKU ID.", "example": "6" }, "quantity": { "type": "integer", "description": "Quantity of items of the SKU in the cart.", "example": 1 }, "price": { "type": "integer", "description": "Price of the item.", "example": 5500 } } } }, "issuanceDate": { "type": "string", "description": "Issuance date.", "example": "2021-05-21T10:00:00" }, "invoiceValue": { "type": "integer", "description": "Invoice value.", "example": 6000 } } }