External Invoices Create
tiendanube_external_invoices_createAttach an external fiscal invoice (NFe/CAE) to a Tiendanube order using its order ID and 44-digit fiscal key, with optional XML, number, series, and issue date.
Instructions
Attach an external fiscal invoice (NFe/CAE...) to an order (unstable API). HTTP: POST /orders/{order_id}/invoices/external Required scope: write_orders API version: unstable
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>",
"key": "<key>"
},
"name": "tiendanube_external_invoices_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 44-digit fiscal key | |
| xml | No | Fiscal XML (or URL/data per the API reference) | |
| number | No | Invoice number | |
| series | No | Invoice series | |
| order_id | Yes | Order ID | |
| issued_at | No | Issue timestamp (ISO 8601) | |
| additional_fields | No | Extra raw API body fields not covered above; merged into the request body |