POST
/
auth
/
login
/
whatsapp
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/login/whatsapp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "country_code": "<any>",
  "phone": "<string>",
  "register_if_not_exists": true
}'
{
  "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.