cte_resubmit
Correct a rejected CT-e and send it again with the whole new body (same number, new key). In live it uses 1 credit again. Only for status rejected. 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": {
"cte_id": "<cte_id>",
"company_id": "<company_id>",
"cte": "<cte>"
},
"name": "cte_resubmit"
}
}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. | |
| cte_id | Yes | UUID of the rejected CT-e | |
| confirm | No | true runs the action. Without it nothing changes and only a preview is returned. | |
| company_id | Yes | The same carrier of the CT-e |