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 \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"user_pin": 123,
"device_token": "<string>"
}'
{
"message": "<string>",
"success": "<string>",
"content": {
"user": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"email": "[email protected]",
"device": {
"id": "<string>",
"name": "<string>"
},
"location": {
"id": "<string>",
"name": "<string>"
},
"role": {
"id": "<string>",
"name": "<string>"
}
},
"access_token": "<string>",
"refresh_token": "<string>"
}
}
Login to POS device
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/pos/auth/login \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"user_pin": 123,
"device_token": "<string>"
}'
{
"message": "<string>",
"success": "<string>",
"content": {
"user": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"email": "[email protected]",
"device": {
"id": "<string>",
"name": "<string>"
},
"location": {
"id": "<string>",
"name": "<string>"
},
"role": {
"id": "<string>",
"name": "<string>"
}
},
"access_token": "<string>",
"refresh_token": "<string>"
}
}
API key for your store
OK
The response is of type object
.
Was this page helpful?