POSTVAN List API
Use Case
This API is used to fetch VANs basis various parameters such as mid and VAN status created between a specific date range.
Request Attributes
Head
Attribute | Description |
---|---|
requestTimestamp string(15) optional | EPOCH timestamp of the time at which request is being sent. |
tokenType string(10) mandatory | This parameter identifies whether the API works on checksum authentication. Possible Values: CHECKSUM, JWT |
token string mandatory |
Example: 16Xm7DXbvNqhaLw+HMj4XB6XTQKCoM= |
channelId string(6) optional | The parameter value identifies the Channel for which API call is initiated. Possible Values: WEB/WAP/SYSTEM |
clientId string(3) optional | Paytm use the merchant key on the basis of clientId parameter value. It requires only if the merchant has more than one key. Example: C11 |
version string optional | Version of the API. Example: v1 |
Body
Attribute | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mid string(20) mandatory | Paytm provides MID as a unique identifier to each merchant. For your staging MID, click here. You get the production MID post the account activation. Example: INTEGR7769XXXXXX9383 | ||||||||||
requestId string(64) mandatory | Unique reference ID which is given in request payload | ||||||||||
searchParams object mandatory | Search parameters to filter data | ||||||||||
SearchParams +
| |||||||||||
pageInfo object mandatory | Consists of pagination info for the VAN list. Example: If there are 100 records, if the offset is 2, and the limit is 100, you will get records from 2 to 100 in response. | ||||||||||
PageInfo +
|
Response Attributes
Head
Attribute | Description |
---|---|
responseTimestamp string(15) | EPOCH timestamp of the time at which response is being sent. |
clientId string(3) | Paytm use the merchant key on the basis of clientId parameter value. It requires only if the merchant has more than one key. Example: C11 |
signature string | You should validate the parameter values by verifying the signature comes in the response. It ensures that parameter values not tempered. Signature string can be verified by using Paytm checksum library. |
Body
Attribute | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of the API response. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResultInfo +
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
vanDetails object | List of VAN details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
VanDetails +
|
Response Codes & Messages
resultCode | resultStatus | resultMessage |
---|---|---|
0000 | S | Success |
0001 | F | Mandatory parameter missing |
3015 | F | Invalid date format |
3016 | F | start date should be less than end date |
3017 | F | invalid status, should be true/false |
3018 | F | Van not found - case where searchParams mid mismatch happens with parent level mid |
Error codes and messages
Below error codes will be sent if downstream service sends a failure response to VAN service during search/query filter response. The error codes are different as it will be easy to track the failure reason from downstream. Merchants may not need to handle each below error.
errorCode | responseStatus | errorMessage |
---|---|---|
6000 | F | Process Fail |
6001 | F | Process Fail |
6002 | F | Process Fail |
6003 | F | Process Fail |
6004 | F | Process Fail |
6005 | F | Process Fail |
curl -X POST 'https://securestage.paytmpayments.com/vanproxy/api/v1/van/search?mid=INTEGR77698636129383' \
--header 'Content-Type: application/json' \
--data '{"body":{"mid":"INTEGR77698636129383","requestId":"1607417598","searchParams":{"mid":"INTEGR77698636129383","startDate":"1603082659000","endDate":"1603090554000"},"pageInfo":{"limit":2,"offset":1}},"head":{"channelId":"SYSTEM","tokenType":"CHECKSUM","token":"PPMg/0d4YqSvt97b2bnZc0153QsB8e3VVXHGd5ANcDhdkgAE1U/fxlzsPpx627Dx4zQNI1NZGBG7Bw+0hws6lot8o+RTAyyrHtwApgUuBes="}}'