Authorizations
API key for your store
Headers
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
Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/pos/auth/login/phone \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"location_id": "<string>",
"phone": "<string>",
"country_code": "+91"
}'
{
"message": "<string>",
"success": true,
"content": {
"otp_token": "<string>",
"otp_action": "<string>"
}
}
Login to POS device using phone. The endpoint requires authentication with an API key that has the scope set to โstorefrontโ for a particular store, ensuring secure access for user login operation.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/pos/auth/login/phone \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"location_id": "<string>",
"phone": "<string>",
"country_code": "+91"
}'
{
"message": "<string>",
"success": true,
"content": {
"otp_token": "<string>",
"otp_action": "<string>"
}
}
API key for your store
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.
Was this page helpful?