v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Generate OTP

This page provides you with information on generating OTP.

post/otp/generate

Request body

entityType'mobile' | 'email' required

Specify MOBILE to identify customer by mobile number or EMAIL to identify customer by email id.

entityValuestring required

Specify the registered mobile number or email id of the customer based on the entityType passed.

action'COUPON' | 'POINTS' | 'REGISTRATION' | 'USERGROUP' | 'SUBSCRIPTION' | 'GENERIC' | 'POINTSTRANSFER' | 'CUSTOMER_STATUS_UPDATE' | 'CUSTOMER_IDENTIFIER_CHANGE' | 'CUSTOMER_ISSUE_LINK_CARD.' required

Choose the action for which the OTP has to be issued.

whatsappTemplateNamestring

Approved WhatsApp template name

templatestring

Message template to send OTP through SMS.

zaloTemplateIdentifierstring

ZALO template identifier

Response

200

createdIdinteger

Example response

{
  "createdId": 10
}