br__generate_cte
Generates an unsigned CT-e XML (modelo 57, schema 4.00) for rodoviário modal with ICMS CST 00. Returns XML, access key, and warnings; signature required before SEFAZ submission.
Instructions
Generate an unsigned CT-e XML (modelo 57, schema 4.00).
v1 supports modal rodoviário only and ICMS CST 00 (tributação normal)
only — other modais/CSTs raise an error. The returned
<CTe><infCte>…</infCte></CTe> document does not include
<Signature> — sign it with br__sign_cte (roadmap BR-CTE-6 factory,
tool not yet registered) before SEFAZ submission.
Returns a dict with:
xml: the generated CT-e XML stringchave_acesso: the computed 44-character access key (chCTe)warnings: list of non-fatal notices
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cte | Yes | CT-e data matching the BRCTeDocument schema (modelo 57) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||