This API enables OTP regeneration when the customer is unable to use the previously generated OTP.
1 |
POST /api/v3/purchases/otps/resend |
Sample Request
1 2 3 4 5 |
{ "paymentId":"<em>{{paymentId}}</em>", // the paymentID in the purchase response for the transaction which OTP is required "amount":"2000", // Transaction Amount "currency": "NGN" //ISO Currency code } |
Sample Success Response
1 2 3 4 5 6 7 8 |
{ "transactionRef": "AVA-1607945229-NoOTP", "paymentId": "949941", "message": "Kindly enter the OTP sent to 234703***9855 and opeol*************mail.com", "amount": "295000.00", "responseCode": "T0", "plainTextSupportMessage": "Didn't get the OTP? Dial *322*0# on your phone (MTN, Etisalat, Airtel) Glo, use *805*0#." } |
Sample Failed Response
1 2 3 4 5 6 7 8 9 |
{ "paymentId": "734383", "errors": [ { "code": "E42", "message": "Auth Data error " } ] } |