POST
/
pos
/
auth
/
login
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>"
  }
}

Authorizations

X-Api-Key
string
header
required

API key for your store

Body

application/json

Response

200 - application/json

OK

The response is of type object.