generate_qr_code
Generate a ZATCA-compliant TLV-encoded QR code for Saudi e-invoicing. Provide seller name, VAT number, timestamp, total and VAT amounts to get a Base64 encoded payload for scannable QR codes.
Instructions
Generate a ZATCA-compliant TLV-encoded QR code.
Creates a Base64-encoded QR code payload following ZATCA's Tag-Length-Value (TLV) format for Phase 1 and Phase 2 compliance. The resulting string can be used to generate a scannable QR code on printed invoices.
Args: seller_name: Business/taxpayer name (Arabic or English) vat_number: 15-digit Saudi VAT registration number (starts and ends with 3) timestamp: Invoice date/time in ISO 8601 format (e.g., "2024-01-15T10:30:00Z") total_amount: Invoice total including VAT as string (e.g., "1150.00") vat_amount: Total VAT charged as string (e.g., "150.00")
Returns: JSON with qr_base64 (the encoded string) and decoded verification data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timestamp | Yes | ||
| vat_amount | Yes | ||
| vat_number | Yes | ||
| seller_name | Yes | ||
| total_amount | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |