cte_issue
Issue a road CT-e (model 57, normal emission) for the carrier. In live it uses 1 credit (the test environment is free) and goes to the SVRS in the background: the answer is queued and the final status shows on the CT-e. A rejection gives the credit back and the rejected CT-e can be corrected and sent again. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs.
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": {
"company_id": "<company_id>",
"cte": "<cte>",
"idempotency_key": "<idempotency_key>"
},
"name": "cte_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cte | Yes | The CT-e as in POST /v1/cte (camelCase, without companyId): cfop, natOp, start/end {cityCode (IBGE, 7 digits), city, state}, sender, recipient, shipper?, receiver? {taxId, stateRegistration?, name, tradeName?, phone?, email?, address{street, number, complement?, district, zip?, cityCode, city, state}}, taker {role: sender|shipper|receiver|recipient|other, party? (required for other)}, values {total, receivable?, components[] {name, amount}}, icms {cst: 00|20|40|41|51|60|90|outra_uf|sn, base?, rate?, amount?, reduction?, credit?}, cargo {value, product, otherFeatures?, measures[] {unit 00-05, type, quantity}}, nfeKeys[] (44 digits, 1 to 2000), rntrc (8 digits or ISENTO), observations?, externalId?. Amounts are decimal strings ("150.00"). The customer informs CFOP and the ICMS (CST, base and rate): Arquivix Notas does not choose them. | |
| confirm | No | true runs the action. Without it nothing changes and only a preview is returned. | |
| company_id | Yes | UUID of the carrier (issuer) | |
| idempotency_key | Yes | Repeat the same key to avoid issuing twice. |