br__generate_nfe
Generate unsigned NF-e/NFC-e XML (modelo 55/65, schema 4.00). Returns the XML string, 44-character access key, and any non-fatal warnings. Requires signing before SEFAZ submission.
Instructions
Generate an unsigned NF-e/NFC-e XML (modelo 55/65, schema 4.00).
The returned <NFe><infNFe>…</infNFe></NFe> document does not include
<Signature> — sign it with br__sign_nfe before SEFAZ submission.
SEFAZ webservice submission itself is not implemented in this phase.
Returns a dict with:
xml: the generated NF-e/NFC-e XML stringchave_acesso: the computed 44-character access key (chNFe)warnings: list of non-fatal notices
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | Invoice data matching the BRInvoice schema (modelo 55 = NF-e, modelo 65 = NFC-e) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||