validate_invoice_payload
Check invoice data against the field rules without issuing anything.
Nothing is sent to the tax authority and no document is created. The SDK models check field formats, and for nfe the rules the SEFAZ refuses a document over: ncm and cfop on every item, and a complete recipient address. Worth calling before issue_invoice whenever a field was inferred rather than given.
This does not replace issuing: the authorizer's cross-field and fiscal rules are only checked when the document is transmitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| document_type | Yes | ||
| recipient_address | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when no field rule was broken. It does not promise the authorizer will accept the document. | |
| errors | No | ||
| checked | Yes | What was checked, so the answer is not read as more than it is. | |
| document_type | Yes |