Recharge Callback
Recharge Callback
Postman Collection
URL
POST : /v1/api/callbacks/recharge/doopayHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
circleId (String) Required
Circle Id (You will get circleId from the Get Circle API) (Max Length: 5)
Circle Id (You will get circleId from the Get Circle API) (Max Length: 5)
rechargeTypeId (String) Required
rechargeType Id (You will get rechargeTypeId from Recharge Type Api) (Max Length: 3)
rechargeType Id (You will get rechargeTypeId from Recharge Type Api) (Max Length: 3)
operatorId (String) Required
operator Id (You will get operatorId from Get Operator API ) (Max Length: 3)
operator Id (You will get operatorId from Get Operator API ) (Max Length: 3)
phone (String) Required
Customer Phone Number Or Customer Id (for DTH) (Max Length: 10)
Customer Phone Number Or Customer Id (for DTH) (Max Length: 10)
amount (String) Required
Recharge Amount (Max Length: 5)
Recharge Amount (Max Length: 5)
clientRefId (Number) Required
Unique Reference number (Max Length: 30)
Unique Reference number (Max Length: 30)
Request
Example Request
curl --location '/api/callbacks/recharge/doopay' \
--header 'Content-Type: application/json' \
--data '{
"circleId" : "20",
"rechargeTypeId" : "17",
"operatorId" : "6",
"phone" : "9651XXXX86",
"amount" : "1",
"clientRefId" : "RECH_7433783XXXX80308"
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Operator fetched successfully.",
"status": "SUCCESS",
"data": ""
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "Customer Not Found",
"data": ""
}
Response Code
Status Code | Status | Message |
---|---|---|
0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
0x0202 | FAILURE | FAILURE USER |
0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
0x0206 | PENDING | TRANSACTION PENDING |