GET {{baseUrl}}/{{stage}}/external/businesses/{{businessId}}/invoices/{{invoiceIrn}}/qr| Header | Value | Required |
|---|---|---|
Content-Type | application/json or */* | Yes |
Accept | application/json or */* | Yes |
X-Business-Key | businessKey | Yes |
| Parameter | Type | Required | Description |
|---|---|---|---|
businessId | string (UUID) | Yes | Your business FIRS ID |
invoiceIrn | string | Yes | Invoice Reference Number |
INV237-1070ECE8-20250826{
"responseCode": "00",
"responseMessage": "QR code retrieved successfully",
"data": {
"irn": "INV237-1070ECE8-20250826",
"qrCodeBase64": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEA...",
"encryptedDataBase64": "eyJpbnZvaWNlSWQiOiIxMjMi...",
"timestamp": 1693046835000
}
}| Field | Type | Description |
|---|---|---|
qrCodeBase64 | string | Base64-encoded PNG image of QR code |
encryptedDataBase64 | string | Encrypted invoice data (for verification) |
irn | string | Invoice Reference Number (confirmation) |
timestamp | number | Unix timestamp of generation |
{
"responseCode": "404",
"responseMessage": "Invoice not found with IRN: INV999-INVALID"
}invoiceIrn exists and belongs to businessId{
"responseCode": "403",
"responseMessage": "QR code generation disabled for this business"
}{
"responseCode": "422",
"responseMessage": "Invoice not eligible for QR code generation"
}/businesses/{businessId}/settings with qrCodePublicKey and qrCodeCertificatecurl --location --globoff '{{baseUrl}}/{{stage}}/external/businesses/{{businessId}}/invoices/{{invoiceIrn}}/qr' \
--header 'X-Business-Key: BK-26EDE24BAC50475FAACC5EA6339F0863-DEV-B2Z6QCEHI3X9' \
--header 'Accept: */*'{
"data": {
"encryptedDataBase64": "string",
"irn": "string",
"qrCodeBase64": "string",
"timestamp": 1083
},
"responseCode": "string",
"responseMessage": "string"
}