On This Page
REST Example: One-Time Password Generation
Request
{ "clientReferenceInformation":{ "code":"test" }, "orderInformation":{ "billTo":{ "firstName":"Suman", "lastName":"Kumar", "address1":"Bagmane WTC", "address2":"Doddenakundi", "locality":"Bangalore", "country":"IN", "administrativeArea":"KA", "postalCode":"560048", "email":"test@domain.com", "phoneNumber":"7606160717" }, "amountDetails":{ "totalAmount":"100.00", "currency":"INR" } }, "paymentInformation":{ "card":{ "type":"061", "expirationMonth":"12", "expirationYear":"2025", "number":"50823012264085197", "securityCode" :"123" } }, "deviceInformation" :{ "httpAcceptBrowserValue" : "accept", "userAgentBrowserValue" : "user", "ipAddress":"10.0.0.1" } }
Response
{ "clientReferenceInformation": { "code": "test" }, "consumerAuthenticationInformation": { "validityPeriod": "05", "authenticationTransactionContext": "100000000000000000000000025253", "authenticationTransactionId": "00000012345330095100258805", "veresEnrolled": "Y", "authenticationPath": "ENROLLED", "authenticationType": "20", "specificationVersion": "rupay", "token": "AxjzbwSTWc547SrcOWki/989TSoGaw7iyDpxAUxXb2/+xcVYlDjA/AAA+wGp" }, "errorInformation": { "reason": "CONSUMER_AUTHENTICATION_REQUIRED", "message": "The cardholder is enrolled in Payer Authentication. Please authenticate the cardholder before continuing with the transaction." }, "id": "6379004607567152900386", "status": "PENDING_AUTHENTICATION", "submitTimeUtc": "2021-11-26T04:21:01Z" }