POSTFetch Balance API
Use Case
To get the balance of Paytm Wallet and Paytm Postpaid.
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 | AI 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. | ||||||
payOptions List<PayOptions> mandatory | Payment options for which you need to fetch balance. | ||||||
payOptions +
| |||||||
Response Attributes
Head
| Attribute | Description |
|---|---|
requestTimeStamp string | Request time in mili-seconds. |
Body
| Attribute | Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wallet List<BalanceInfoResponseDetails> | Wallet balance | ||||||||||||||||||||||||||||||||||||||||||
BalanceInfoResponseDetails +
| |||||||||||||||||||||||||||||||||||||||||||
bnpl List<BalanceInfoResponseDetails> | Pay later / Postpaid Instruments balance | ||||||||||||||||||||||||||||||||||||||||||
BalanceInfoResponseDetails +
| |||||||||||||||||||||||||||||||||||||||||||
resultInfo Object | This parameter gives the information about the result of the API response | ||||||||||||||||||||||||||||||||||||||||||
resultInfo +
| |||||||||||||||||||||||||||||||||||||||||||
Response Codes & Messages
| resultCode | resultStatus | resultMsg |
|---|---|---|
| 0000 | S | Success |
| 501 | F | System error |
| 1006 | F | Your Session has expired |
| 2006 | F | Mid is invalid |
| 2012 | F | OrderId is invalid |
| 2222 | F | Invalid request body |
| 1011 | F | Invalid {field name} For example: Invalid tokenType/ issuer/ payMode, etc |
| 2016 | F | We are unable to fetch your balance, kindly try after sometime |
| 2017 | F | Issuer cannot be blank or Null |
| 2018 | F | Invalid sso token |
| 2019 | F | Token type cannot be blank or null |
| 2020 | F | Txn token cannot be blank or null |
curl --location 'https://stage-router.paytm.in/aoa-pay-option-service/v3/fetchBalance' \
--header 'Content-Type: application/json' \
--data '{"head": {"requestTimestamp": "1655466060","channelId": "WEB","token": "59475303-f784-40b1-81c0-23218d7c790a","tokenType": "TXN_TOKEN"},"body": {"mid": "Your_MID_Here","orderId": "STAG_900494","payOptions": [{"payMethod": "WALLET","issuer": "PAYTM"},{"payMethod": "PAYTM_DIGITAL_CREDIT","issuer": "PAYTM"}]}}