🔳Dynamic QR generate
The documentation covers an API designed to dynamically generate QR codes.
To generate QR image, please send POST request to the following endpoint
POST https://{url}.finipay.kg/gen/qr/dynamic
Accessing the API requires passing credentials using Basic Authentication in the HTTP request header.
Request body:
sum*
int
transaction amount in tyiyn (cents)
requisite
String
phone number, name of the enterprise (branch) shall be indicated
callback_url
String
URL for callbacks is not required
Example:
{
"sum": 100,
"requisite": "996555000001",
"callback_url": "https://example.com"
}
Response:
In the response you will receive an PNG image encoded in base64
File format: PNG
Image dimensions: 400x400 pixels
{
"code": "100",
"message": "SUCCESS",
"data": Картинка QR, закодированная в base64
}
To generate QR data, please send POST request to the following endpoint
POST https://{url}.finipay.kg/gen/qr/dynamic/data
Request Body:
sum
int
transaction amount in tyiyn (cents)
requisite
String
phone number, name of the enterprise (branch) shall be indicated
callback_url
String
URL for callbacks is not required
Example:
{
"sum": 100,
"requisite": "996555000001",
"callback_url": "https://example.com"
}
Response:
You will receive QR data in response
{
"code": "100",
"message": "SUCCESS",
"data": qr_data
}
Status
To get status, send GET request to the following endpoint
GET https://{urll}.finipay.kg/gen/qr/transaction/status
Request Param:
transaction_id
FNP89a867313cc34613ac8608ec31b1c
Example: https://{url}.finipay.kg/gen/qr/transaction/status?transaction_id=QPF89a867313bb34613ac8608ec31b1c
Response
// Промежуточный
{
"code": "100",
"message": "Success",
"data": "СREATED"
}
// Финальный
{
"code": "100",
"message": "Success",
"data": "SUCCESSFUL"
}
Last updated