This endpoint will be used to convert a User’s Card AuthData to a Vault Token which can then be used against the Debit Customer API. For this endpoint, the Auth Data to be sent will be computed using the Payment Method Identifier of the card instead of the Card PAN.
Request Message description
Field
# |
Field name | Data type | Max length | Required | Description |
1 | customerId | String | 50 | true | The Email or Mobile Number of the User. |
2. | authData | String | 512 | true | The AuthData computed from the Card Properties (PAN, CVV, Pin and Expiry). |
3. | providerCode | String | 50 | true | The Code of the Provider making this call. |
Endpoint
POST {{host}}/payments/wallet/token |
Headers
Authorization: Bearer {{token}} |
Sample Request
Sample request
{
“authData”: “NQkmlsofwtUI/h8M9jN8xYjCYRmzdIfM/v2X2q9eVjnuU75E31MPKTYYlinxuzSthjY0C1S2i4+A0vyAAFwth6sJx6p9ekp9H4hsiO3iG+x587KqVwhBY5DC76oArxINzzxP4F09Aw/a527jVb4Agx5aTDQiyAKV8WSTzjHY7KH8XB2/lI+WwUEOhs49yCRPXh+tXJCGdefZgZYFyI09WNp2w8AWDQUZvRpzPFzS09QAeiI4qWuFZ01F/HAF4D09I8Gg+61lWwclw4zcPLXWB17zzb/BrMZcjJvyrouCbbn6n7zaUqyFG4H4r3NTRAcuVxCnDCC2wjRO9ZRq2la4lA==”, “customerId” : “2348030583962”, “providerCode”:”ABC” } |
Response Message field description
Field
# |
Field name | Data type | Max length | Required | Description |
1 | responseCode | Numeric String | 5 | true | The code indicating the result of the processing of this request. |
2 | responseMessage | String | 255 | true | The Description of the responseCode. |
3 | token | string | 20 | true | The Token generated from Vault for the Card. |
Sample Response (success)
{
“responseCode”: “00”, “responseMessage”: “Successful”, “token”: “5123450558220138603” } |
Sample Response (failure)
{
“responseCode” : “5000”, “responseMessage” : “System Error” } |