API Document Model
API Document Model
Version 3.0
Table Of Contents:
Table Of Contents:
1. Initiate Intent Transaction API
Method
Headers
Request Body
Response
2. Transaction status API
Method
Headers
Request Body
Response - Pending status
Response - Success status
Response - Failed status
3. Webhook/Callback Format
.
1. Initiate Intent Transaction API
Using this API, we can create the QR Intent string. Once we get the success
response in the API then using that link the customer can make the payment.
Method
POST
Headers
1. secret-key
2. client-id
3. Content-Type: application/json
Request Body
"orderId": "21563343766145268653363",
"amount": 1.00,
}
Key Value Mandatory
Response
{
"timestamp": "2023-08-04T17:25:42.574Z",
"statusCode": 200,
"status": "OK",
"message": "Order Created Successfully",
"success": true,
"data": {
"paymentUrl": "upi://pay?pa=is1.kames-
lp@finobank&pn=klfgames&mc=6012&tr=537073754266935296&tn=app&am
=1.00&mode=04&tid=537073754266935296",
"phonepe_link": "phonepe://pay?pa=is1.kames-
lp@finobank&pn=klfgames&mc=6012&tr=537073754266935296&tn=app&am
=1.00&mode=04&tid=537073754266935296”,
"paytm_link": "paytmmp://pay?pa=is1.kames-
lp@finobank&pn=klfgames&mc=6012&tr=537073754266935296&tn=app&am
=1.00&mode=04&tid=537073754266935296,
"gpay_link": "tez://pay?pa=is1.kames-
lp@finobank&pn=klfgames&mc=6012&tr=537073754266935296&tn=app&am
=1.00&mode=04&tid=537073754266935296",
"txnId": "C41AAXN95V0B",
"orderId": "21563343766145268653363",
"txnStatus": "INITIATED",
}
Method
GET
Headers
1. secret-key
2. client-id
3. Content-Type: application/json
4. order-id
"timestamp": "2023-08-04T17:27:36.170Z",
"statusCode": 200,
"status": "OK",
"message": "Txn details fetched successfully",
"success": true,
"data": {
"txnId": "C41AAXN95V0B",
"amount": “1.0”,
"orderId": "21563343766145268653363",
"txnStatus": "Initiated"
}
}
Response - Failed status
{
"timestamp": "2023-08-04T17:27:36.170Z",
"statusCode": 200,
"status": "OK",
"message": " Txn details fetched successfully ",
"success": true,
"data": {
"orderId": "2156253343766145268653363",
" txnStatus ": "Failed",
"amount": “1.0”,
"txnId": " C41AAXN95V0BB "
}
}
3. Webhook/Callback Format
Merchants need to provide Webhook url to us. We will configure from our
end.
Once the transaction status gets updated, we will update the status through
this Callback. Whatever status we got from the bank. We will update the same to
merchants.
{
"txnId": "C41AAXN95V0BB",
"amount": 733,
"orderId": "2156253343766145268653363",
"txnStatus": " Success / Failed"
}
Key Value Mandatory
Note: In webhook responses, the amount parameter is given in paisas (1INR = 100paisa).
*********END**********