Skip to main content
POST
Request login code

Authorizations

X-Channel-Id
string
header
required

Merchant storefront identifier. Provided during onboarding.

X-Session-Id
string
header
required

Diner session identifier from the Storefront API's GET /channel. Log in returns a new one.

Body

application/json
mobile_number
string

The diner's mobile number in international format. Send this or email.

Example:

"+6581000001"

email
string<email>

The diner's email. Send this or mobile_number.

delivery_mode
enum<string>

How to send the code. Leave it out to send it by WhatsApp.

Available options:
whatsapp,
email
is_resend
boolean

Set to true when the diner asks for the code again.

Response

Code sent

Who the code went to, with the email and number masked.

is_mobile_verified
boolean
last_otp_delivery_mode
enum<string>

How the code was sent. Tell the diner where to look.

Available options:
whatsapp,
email
masked_email
string
masked_mobile_number
string