Generate QR

This API can be used to generate QR code for any user against their mobile number. Also, This API can be used to fetch existing QR code created with us.

What is the QR transaction flow?

Eko’s QR Payment API provides an end-to-end solution from QR code generation to payment collection. The transaction flow is as follows:

  1. Activate your service for QR using Activate Service
  2. The user provides their mobile number that is the sender_id against which their QR code is generated.
    NOTE - For each sender_id, only one QR string can be generated.
  3. If any payment is made against the QR code, the amount is reflected in the partner's wallet.
  4. Response and payload is shared with the partner to the callback URL shared by them. As well as they can look at the transaction status in the transaction history of Connect application.

Callback response:

{"tx_status":0,"amount":400.0,"tds":0.0,"txstatus_desc":"Success","fee":0.0,"gst":0.0,"tid":2886142533,"client_ref_id":"cust_MAQHG5z2g0k9FK","old_tx_status":2,"partners_commision":0.0,"service_code":"27","old_tx_status_desc":"Initiated","bank_ref_num":"313196224563","timestamp":"2023-07-06 13:11:45"}

Response Values


Response Codes

403ForbiddenRegenerate your secret key and
timestamp or check if your service is activated or not
500Internal Server ErrorCheck if your request url is correct or
the parameters you're passing is correct
according to the parameters mentioned above
415Unsupported Media TypeRe-check the content/type of the request body.

Error String

1Failed to create a customer ID
2Customer ID is null
3Failed to generate QR


For generation of secret-key and secret-key-timestamp, refer to - Authentication