POSTValidate VPA API
Use Case
This API returns if the VPA address passed in the request is valid and whether it supports subscription payments.
Request Attributes
Head
Attribute | Description |
---|---|
version string optional | Version of the API. |
channelId Enum mandatory | Channel through which call is initiated. |
requestTimestamp string optional | UNIX timestamp of the time request is being sent |
tokenType string mandatory | Authorization method for this request. Possible values: |
token string mandatory | Authorization string corresponding to the tokenType used. |
Body
Attribute | Description |
---|---|
mid string mandatory | merchant id |
vpa string mandatory | User VPA address |
numericId string mandatory | Unique ID between 8-11 digits mapped to VPA. 10 digit is reserved for mobile number. 8 and 9 digit for custom numbers. |
Response Attributes
Head
Attribute | Description |
---|---|
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
version string | Version of the API. |
Body
Attribute | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of API response | ||||||||
resultInfo +
| |||||||||
vpa string | User VPA address
Example: 7777777777@paytm | ||||||||
valid boolean | Status of the VPA |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
1007 | F | Missing Mandatory Element |
0 | F | System Error, invalid param |
00000900 | F | System error |
1006 | F | Session Expired Exception |
2004 | F | Invalid User Token |
501 | F | Param Missing |
00000004 | F | Parameter ILLEGAL |
613 | F | JWT is invalid |
curl --location 'https://stage-router.paytm.in/theia/api/v1/vpa/validate?mid=YOUR_MID_HERE&orderId=dev1227' \
--header 'Content-Type: application/json' \
--data-raw '{"head": {"version": "v1","requestTimestamp": 1608548094,"requestId": 1608548094,"tokenType":"TXN_TOKEN","token":"8d8c557b-3208-4351-91c8-fa6a6af5e849"},"body": {"vpa": "7777777777@paytm","mid": "YOUR_MID_HERE"}}'