Skip to main content
POST
/
pos
/
auth
/
login
/
email
Login with email
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/pos/auth/login/email \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "location_id": "<string>",
  "email": "<string>"
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "otp_token": "<string>",
    "otp_action": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

API key for your store

Headers

x-debug-mode
boolean

This param is used to enable debug mode. If debug mode is enabled, the API will return OTP as well. This is only for development and testing purposes.

Body

application/json
location_id
string
required
email
string
required

Response

OK

message
string
required
success
boolean
required
content
object
required
โŒ˜I