Skip to main content

Recharge Callback

Recharge Callback

Postman Collection

URL

POST : /v1/api/callbacks/recharge/doopay

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

circleId  (String)   Required
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)
operatorId  (String)   Required
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)
amount  (String)   Required
Recharge Amount (Max Length: 5)
clientRefId  (Number)   Required
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

    {
"code": "0x0200",
"message": "Operator fetched successfully.",
"status": "SUCCESS",
"data": ""
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING