generate_qr_code_string
Formats invoice confirmation data into the official KRA eTIMS QR code string so receipt details can be encoded and scanned correctly.
Instructions
Formats invoice confirmation data into the official KRA eTIMS QR code string: 'invoice_date(ddmmyyyy)#time(hhmmss)#cu_number#cu_receipt_number#internal_data#receipt_signature'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | Time formatted as HHMMSS (e.g. '123005') | |
| cu_number | Yes | Control Unit ID (sdcId from response, e.g. 'KRAMW010000001') | |
| invoice_date | Yes | Invoice date formatted as DDMMYYYY (e.g. '22102026') or YYYYMMDD | |
| internal_data | Yes | Internal fiscal data returned in intrlData | |
| cu_receipt_number | Yes | Receipt counter number (rcptNo, e.g. 4521) | |
| receipt_signature | Yes | Cryptographic receipt signature returned in rcptSign |