Skip to main content

Generate QR code (optional)

base_url: https://firseinvoicedemo.etranzactng.com

Description This endpoint generates a QR code which can be scanned and printed on your invoice. This is an optional step similar to generating an IRN.

To get your certificate:

Login to the NRS portal. On your dashboard, navigate to the "My Account" Tab. Click on "Manage Cryptographic Keys", then download a file named crypto_keys.txt. The crypto_keys.txt file you downloaded contains the public key and Certificate.

You are only required to include this certificate value in the payload together with other parameters: invoice number, service Id, issuance date and business_id.

NB: If certificate is not included, the Seller/Supplier field will display/print "Test Business" by default.

Request Parameters

ParameterTypeDescriptionRequired?
invoice_numberstringTaxpayer’s Invoice/transaction reference value (transaction id)Yes
service_idstringNRS issued/assigned credentialYes
issuance_datedateDate invoice was issuedYes
certificatestringCertificate to be provided by clients from their NRS profile/accountYes
business_idstringUnique alphanumeric ID generated when the business is registered on the e-invoicing platform. It allows the system recognize all invoices generated by the companyYes

Request Parameters

POST {base_url}/api/v1/si/generate-qr-code
curl -X POST `{base_url}/api/v1/si/generate-qr-code`
-H "X-API-Key: {{CLIENT_API_KEY}}"
-H "X-API-Signature: {{HMAC_SHA256_SIGNATURE}}"
-H "X-API-Timestamp: {{ISO_20022_TIMESTAMP}}"
-H "Content-Type: application/json"
-d '{
"invoice_number": "INV285",
"service_id": "94ND90NR",
"issuance_date": "20250412",
"business_id": "6f19a0f0-c8f3-4d2b-8a8b-1b2c45e89d0f",
"certificate": "VmxRamMwR2E5NGRvQW9QQVdGYUdzMzJucVh4azhVYmhabnRhY0k9QmxBcWE="
}
'