POSTFetch Balance API
Use Case
To get the balance of Paytm Wallet, Paytm Postpaid and Paytm Payments Bank.
Request Attributes
Head
Attribute | Description |
---|---|
requestTimeStamp string optional | Request time in mili-seconds. |
channelId string optional | The parameter value identifies the Channel for which the API call is initiated.Default value will be WEB. Possible values: WEB , WAP, APP, SYSTEM |
token string mandatory | This is the unique transaction token Example: ede0b9a1-e30d-4fa0-89fb-68221c3e9ff6 |
tokenType string mandatory | Token Type, Values that can be selected: TXN_TOKEN |
Body
Attribute | Description |
---|---|
mid string mandatory | Super router provides MID as a unique identifier to each merchant. Example: 216820000002516036253 |
orderId string mandatory | The Unique reference ID of the Order. It is alphanumeric and the max length is 50 characters. Example: AOA001115. |
paymentMode string mandatory | Payment mode for which you need to fetch balance. Possible values: PPBL, PAYMENT_DIGITAL_CREDIT, WALLET |
walletType string conditional | Type of wallet for which balance needs to be fetched Possible values: PAYTM (required only when paymentMode = WALLET) |
Response Attributes
Head
Attribute | Description |
---|---|
version string | Version of the API passed in the request. Example: v1, v2, v5 |
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. Example: 1588402269 |
Body
Attribute | Description | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
balanceInfo Object | Balance information of payment mode. | ||||||||||||||||||||||||||
BalanceInfo +
| |||||||||||||||||||||||||||
passCodeRequired boolean | Denoting if passcode is required for payment through the payment option. | ||||||||||||||||||||||||||
accountStatus string | Account status Possible Values: Active, Inactive | ||||||||||||||||||||||||||
fullTnCDetails Object | TnC Details | ||||||||||||||||||||||||||
fullTnCDetails +
| |||||||||||||||||||||||||||
enable boolean | Pay method is enabled or not. | ||||||||||||||||||||||||||
detailedBalanceInfos List <detailedBalanceInfos> | Detailed Balance Info | ||||||||||||||||||||||||||
DetailedBalanceInfo +
| |||||||||||||||||||||||||||
monthlySanctionLimit BalanceInfo | Monthly Sanction Limit | ||||||||||||||||||||||||||
BalanceInfo +
| |||||||||||||||||||||||||||
monthlyAvailableSanctionLimit BalanceInfo | Monthly Available Sanction Limit | ||||||||||||||||||||||||||
BalanceInfo +
| |||||||||||||||||||||||||||
partnerBankBalances List<BankPartnerDetail> | Partner Bank Detailed | ||||||||||||||||||||||||||
BankPartnerDetail +
| |||||||||||||||||||||||||||
resultInfo Object | This parameter gives the information about the result of the API response | ||||||||||||||||||||||||||
resultInfo +
| |||||||||||||||||||||||||||
extraParamsMap Map<String, String> | Map for any extra information. |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
501 | F | System error |
1006 | F | Invalid token or session expired |
2006 | F | Mid is invalid |
2012 | F | OrderId is invalid |
Wallet
curl --location --request POST 'https://stage-router.paytm.in/aoa-pay-option-service/v2/fetchBalance' \
--header 'Content-Type: application/json' \
--data-raw '{"head": {"requestTimestamp": "1655466060","channelId": "WEB","token": "59475303-f784-40b1-81c0-23218d7c790a","tokenType": "TXN_TOKEN"},"body": {"mid": "YOUR_MID_HERE","orderId": "STAG_900494","paymentMode": "WALLET","walletType":"PAYTM"}}'