POSTUpdate VAN API
Use Case
- This API is used to disable/enable VAN's. Status of the VAN account. It has two possible values:
- Active - If the VAN is active, money transferred by the customer will be accepted
- Inactive - If the VAN is Inactive, money transferred by the customer will be reversed
- Additionally, this API is used to add bank account numbers to an existing VAN to support third-party validation (TPV).
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 if 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(20) mandatory | Unique request id | ||||||||||||||||||||||||
vanInfo object mandatory | Van info consists of the Virtual Account Number ( VAN) and its status. At least one VAN and max 10 can be activated or inactivated in a single go. | ||||||||||||||||||||||||
VanInfo +
|
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 +
| |||||||||||||||||||||||||||
vanInfo object | Van info consists of Virtual Account Number (VAN) and its status. At least one VAN and max 10 can be activated or inactivated in a single go. | ||||||||||||||||||||||||||
VanInfo +
|
Response Codes & Messages
resultCode | resultStatus | resultMessage |
---|---|---|
200 | SUCCESS | Success |
302 | FAILED | Request Validation Failure |
401 | FAILED | Invalid Request |
404 | FAILED | Data Not Found |
502 | FAILED | Unknown Error Occurred |
Error codes and messages in VanDetails
ERRORCODE | RESPONSESTATUS | ERRORMESSAGE |
---|---|---|
3100 | FAILURE | Internal issue. |
3101 | FAILURE | Internal issue. |
3102 | FAILURE | Internal issue. |
3103 | FAILURE | Internal issue. |
3104 | FAILURE | Internal issue. |
3105 | FAILURE | Internal issue. |
3106 | FAILURE | Internal issue. |
curl - X POST 'https://securestage.paytmpayments.com/vanproxy/api/v1/van/update?mid={mid}'\
--header 'Content-Type: application/json'\
--data '{"body": {"requestId": "1607519443", "mid": "{mid}", "vanInfo": [{"van": "{van}", "active": "true", "tpvList": [{"accountHolderName": "Test Account 1", "accountNumber": "917777777777", "bankName": "Paytm Payments Bank", "ifscCode": "PYTM123456", "nbin": "string", "active": true } ] } ] }, "head": {"clientId": "C11", "version": "v1", "requestTimestamp": "1607519443", "channelId": "WEB", "tokenType": "CHECKSUM", "token": "{checksum}"} }'