POST
/
auth
/
generate-otp
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/generate-otp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "channel": "sms",
  "country_code": "<string>",
  "phone": "<string>",
  "email": "<string>",
  "otp_action": "login"
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "otp_token": "<string>",
    "otp_action": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Access token

Body

application/json

The body is of type object.

Response

200 - application/json
OK

The response is of type object.