Send OTP API

Use Case


This API is used to send the OTP to user's mobile. Paytm will send OTP to the mobile number passed in the request.


Request Attributes

API Content format: JSON

ParameterDescriptionRequiredExample Value
EmailEmail id of end userNoabc@gmail.com
PhonePhone number of end userYes5558889990
clientIdClientId by which key checksum is created, required to validate the checksum. Eg C11Nomerchant-ABC
ScopeName of the resource for which token is required(will be shared by Paytm)YesWallet ,Paytm
responseTypeOauth 2 tokenYesToken

Response Attributes

API Content format: JSON

Success:

ParameterDescriptionExample Value
StatusRequest statusSUCCESS/FAILURE
messageMessage of the RequestOtp sent to phone
responseCodeResponse code01 / 02 (Note: 01-login, 02-Register)
stateReference guid to be used while submitting otp65cb6680-29f6-11e4-aad2-3c970ea8b87f

Error Responses:

ParameterDescriptionExample Value
StatusResponse statusFAILURE
responseCodeResponse code434
MessageError reason"Bad Request"

ERROR CODES

430Invalid Authorization
431Invalid Mobile
432Login Failed
433Account Blocked
434Bad Request
465Invalid Email

Endpoints

Staging: https://accounts-uat.paytm.com/signin/otp

Production: https://accounts.paytm.com/signin/otp

Request CodeResponse JSON
curl -X POST 'https://accounts-uat.paytm.com/signin/otp' -H 'Content-Type: application/json' -d '
            {"email":"","phone":"xxxxxxxxxx","clientId":"xxxxxxxx-xxx","scope":"wallet","responseType":"token"}'