Cash In

Deposit money to customer wallet

CashIn

POST

Cash In

 

 

Description

 

Cash In API will be used to deposit money to customer mobile wallet account.

 

 

Version


V0


Resource URL

https://sandbox.jsbl.com/cashin/v0 /payment


Header


Name Type Values Description Length

Authorization

String Bearer
Example: Bearer xxxxxxxxxxxxx
Access Token will be generated through OAuth API NA

Content-Type

String Example:
application/json
Only “application/json” Content-Type is supported. NA


Request Parameters

 

Name O/M Type Values Description Length

MobileNo

M String 03454040652 Customer Mobile Number  NA

Total Amount

M String 1000.0 Total Cash In Amount NA

 

 

 

Sample  Request

 

{
 "MobileNo":"03454040652"
 "TotalAmount":"1000.0"
}
 
Response Parameters

 

Name Type Values Description Length

ResponseCode

String 00 ResponseCode NA

ResponseDescription

String Successful  ResponseDescription NA

TransactionAmount

String 1000.0  Transaction Amount NA

 

       

 

 

 

Sample  Response

 

SUCCESS

 

 

{

         

            "ResponseCode":"00"

            ,"ResponseDescription":"Successful"

           ,"Transaction Amount":"1000.0"

}

 

 

FAILURE

 

 

{

           

           "requestId":"20124548796",
           "errorCode": "01",
          "errorMessage": "Invalid Authorization Header"

          

 

}

 

 

Response Code Details


{
"requestId": "20124548796",
"errorCode": "01",
"errorMessage": "Bad Request - Invalid Authorization Header"
}



{
"requestId": "456544712",
"errorCode": "02",
"errorMessage": "Bad Request - Invalid Request Payload"
}



{
"requestId": "556633584",
"errorCode": "03",
"errorMessage": "Bad Request - Resource not found"
}



{
"requestId": "259965774",
"errorCode": "04",
"errorMessage": "Bad Request - Invalid Access Token"
}

{
"requestId": "55879845",
"errorCode": "05",
"errorMessage": "Bad Request - Invalid Mobile No."
}

{
"requestId": "558798547",
"errorCode": "06",
"errorMessage": "Bad Request - Invalid Total Amount"
}

{
     "ResponseCode": "00",
    "ResponseDescription": "Successful",
    "Rrn": "",
    "MobileNumber": "03464991719",
    "Cnic": "3520214402765",
     
}


Try-out yourself

Header Parameters


Name Values Description
Authorization
(required)

Auth2.0 verification. "Bearer" keyword followed by a space and generated Access Token from OAuth API.Like "Bearer xxxxxxx"

Content-Type
(required)

Content Type applciation/json is supported

Body Parameters


Name Values Description
Request Body
(required)

Add values in JSON Body

Request Body

HTTP Basic

OAuth 2.0

API Key

Clear Request

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

{
    "requestId": "848624438861",
    "errorCode": "01",
    "errorMessage": "Invalid Authorization Header"
}


{ "requestId": "848624438861", "errorCode": "02", "errorMessage": "Bad Request - Invalid Cnic" }
{ "requestId": "3091624162362", "errorCode": "02", "errorMessage": "Bad Request - Invalid MobileNumber" }
{ "requestId": "3091626060511", "errorCode": "02", "errorMessage": "Bad Request - Invalid ConsumerName" }
{ "requestId": "3091726063961", "errorCode": "02", "errorMessage": "Bad Request - Invalid AccountTitle" }
{ "requestId": "848726338311", "errorCode": "02", "errorMessage": "Bad Request - Invalid BirthPlace" }
{ "requestId": "848726338312", "errorCode": "02", "errorMessage": "Bad Request - Invalid PresentAddress" }
{ "requestId": "848726341341", "errorCode": "02", "errorMessage": "Bad Request - Invalid CnicStatus" }
{ "requestId": "848726341342", "errorCode": "02", "errorMessage": "Bad Request - Invalid CnicExpiry" }
{ "requestId": "848626346341", "errorCode": "02", "errorMessage": "Bad Request - Invalid DOB" }
{ "requestId": "848626346342", "errorCode": "02", "errorMessage": "Bad Request - Invalid FatherHusbandName" }
{ "requestId": "848726349851", "errorCode": "02", "errorMessage": "Bad Request - Invalid MotherMaiden" }
{ "requestId": "848726349852", "errorCode": "02", "errorMessage": "Bad Request - Invalid Gender" }
{ "requestId": "3091726083901", "errorCode": "02", "errorMessage": "Bad Request - Invalid AccountType" }
{ "requestId": "3091726083901", "errorCode": "06", "errorMessage": "Bad Request - Invalid OTP" }
{ "requestId": "3091726083901", "errorCode": "03", "errorMessage": "Invalid Request Payload" }
{ "requestId": "3091726083901", "errorCode": "04", "errorMessage": "Resource not found" }
{ "requestId": "3091726083901", "errorCode": "05", "errorMessage": "Invalid Access Token" }
{
    "ResponseCode": "00",
    "ResponseDescription": "Successful",
    "Rrn": "3091723912433",
    "MobileNumber": "03354522607",
    "Cnic": "3578414402451"
    
}

FAQs

You need to go through the section "How it Works".

Prerequisite(s)

1. Authentication Bear OAuth access token

Resource Summary

Security

Authentication

Content Type

application/json

Working...