POSTSend OTP Checkout API
Use Case
To send OTP to the customer’s mobile number for login into Paytm ecosystem. This OTP is valid for 2 minutes.
Request Attributes
Head
Attribute | Description |
---|---|
version string optional | Version of the API. Example: v1 |
requestTimestamp string optional | EPOCH timestamp of the time at which request is being sent. |
channelId string optional | The parameter value identifies the Channel for which API call is initiated. Possible values:
WEB
,
For websites, the value to be passed should be "WEB"
WAP
For Mobile websites/App, the value to be passed should be "WAP"
|
txnToken string mandatory | This is the unique transaction token received in the response of Initiate Transaction API or Initiate Subscription API. It is valid for 15 minutes. Example:f0bed899539742309eebd8XXXX7edcf61588842333227 |
Body
Attribute | Description |
---|---|
mobileNo string mandatory | 10 digit user mobile No Example: 7777777777 |
Response Attributes
Head
Attribute | Description |
---|---|
version string | Version of the API passed in the request. |
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
Body
Attribute | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of the API response | ||||||||
ResultInfo +
| |||||||||
extraParamsMap object | Map for any extra information (in case of error). |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
01 | S | Success |
02 | F | Otp sent to phone |
202 | F | HTTP Response Code other than 200 received in Generate OTP |
431 | F | Invalid Mobile |
433 | F | Account Blocked |
434 | F | Please try again after sometime. |
517 | F | Your account is temporarily blocked. Please contact customer care. |
531 | F | Oops ! You have reached OTP limit, please raise a query at paytm.com/care. |
827 | F | There was some issue in processing this request. |
1006 | F | Your Session has expired. |
2013 | F | Mid in the query param doesn't match with the Mid send in the request. |
2014 | F | OrderId in the query param doesn't match with the OrderId send in the request. |
00000900 | U | System error |
curl -X POST 'https://securestage.paytmpayments.com/login/sendOtp?mid={mid}&orderId=ORDER_123456' \
--header 'Content-Type: application/json' \
--data '{"head":{"txnToken":"f0bed899539742309eebd8XXXX7edcf61588842333227"},"body":{"mobileNumber":"7777777777"}}'