post https://uat-partner.payu.in//api/v1/otps/send_otp
The Send OTP API is used to:
- Used to send the OTP to verify the merchant’s primary details or bank update details
- Used to generate the user token required for authorization
This is authorised through a client token generated using the client ID and secret.
Note:
The access token is required in the **Bearer **field of the header. For more information on getting the access token, refer to Get Token API.
Environment
Test | <https://uat-accounts.payu.in> |
Production | <https://accounts.payu.in> |
Sample request
curl --location -g --request POST '{{partner_base_url}}/api/v1/otps/send_otp' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'otp[identity]=9044199921' \
--data-urlencode 'otp[scope]=user_profile' \
--data-urlencode 'otp[channels]=sms' \
--data-urlencode 'otp[type]=SignIn'
Sample request
{
"data": {
"id": "11ea-bf84-27aef522-85a0-02f413145cce",
"type": "notifications",
"attributes": {
"status": "sidekiq_queued",
"send-at": "1594038491",
"status-details": {},
"payload": {
"sms": [
"90xxxxxx21"
]
}
}
}
}
Request Parameters
Additional info for request parameters
Parameter | Description |
---|---|
otp[scope] |
Indicates the purpose of the API. The following APIs use different scopes in this field
|