submit_invoice
Submit a signed invoice to ZATCA for reporting or clearance. Use reporting for simplified invoices (B2C) and clearance for standard invoices (B2B).
Instructions
Submit a signed invoice to ZATCA for reporting or clearance.
Sends the signed invoice to ZATCA's Fatoora API. Use "reporting" mode for simplified invoices (B2C) and "clearance" mode for standard invoices (B2B).
Args: signed_invoice_xml: Signed UBL 2.1 XML invoice string invoice_hash: Base64-encoded SHA-256 hash of the invoice invoice_uuid: Invoice UUID certificate: Base64-encoded compliance/production certificate secret: API secret from ZATCA mode: "reporting" (simplified) or "clearance" (standard) environment: "sandbox" or "production"
Returns: JSON with ZATCA's response (status, validation results)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | reporting | |
| secret | Yes | ||
| certificate | Yes | ||
| environment | No | sandbox | |
| invoice_hash | Yes | ||
| invoice_uuid | Yes | ||
| signed_invoice_xml | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |