Authorize OTP to complete validation
To complete the card validation with OTP use this end point
| 1 | POST /api/v3/purchases/validations/otps/auths | 
Sample Request
To complete card validation, supply the following information while making your validation request.
| 1 2 3 4 5 6 7 8 | {  "transactionRef": "ESBDEV10004",                     // Unique transaction reference number.  "authData":"Lisy0gf1qwSgAOR4xNS5jkiLFSh0C6dYqyzQhxopAVHaG0DqTaB8yHYGPfYBAg2ZShyGp2YJRzLsxpquvRuUZe6IO7h   V+DDG1fsfx6bzLL7i6c/UFcw/T+QrsNOUgLjSqqlRNkMFmn1XN3CT0PtYEMwExE38cFHjZN8dX2xZOKhwFJ9CJOs2VXeXCvfExxyZ5   k3q+8dSxyHjYKrP3qfrjxhw7NFgEIvuo2xDlUTP6DLe8C/Z7QrBO3ggF7fo7Uz8t/vTcY7HvWmfX2UfiT7T5rzbOw24ahPZ8/tQg1d   vpsiO81Qaw/lS+8P+GigkNO5+GeTpRjo+CO+n656zrwU8MQ==", // Authentication Data.  "otp":"864923"                                       // OTP sent to the mobile device or email address of the card holder. } | 
Sample Response (success)
After authorize card validation request has been sent, the expected successful validation response is similar to this.
| 1 2 3 4 5 6 7 8 | {   "token": "5123452812351086018",             // Token generated after successful validation, which can be used in making payment in future.   "tokenExpiryDate": "2004",                  // Token expiry date.   "panLast4Digits": "7499",                   // PAN last four digits.   "transactionRef": "ab1cfgh89bvbfgvrt2",     // Transaction reference number.   "balance": "5,208,513.10",                  // Card balance.   "cardType": "Verve"                         // Card type. } | 
Sample Response (failure)
After authorize card validation request has been sent, the expected validation failure response is similar to this.
| 1 2 3 4 5 6 7 8 9 | {   "errors": [     {       "code": "Z5",                                    // Error code.       "message": "PAYMENT_ALREADY_PROCESSED"           // Error message.     }   ],   "paymentId": "66603"                                 // Payment identifier. } | 
| 1 2 3 4 5 6 7 8 9 | {   "errors": [     {       "code": "E42",                  // Error code.       "message": "Auth Data error"    // Error message.     }   ],   "transactionRef": "ESBDEV10004"     // Unique transaction reference number. } |