docs
  1. SCAYLE Resource Center
  2. Developer Guides
  3. Authentication & Account Area
  4. Guest login

Guest login

Optionally, customers don't have to create an account to check out. They can use the guest login.

To support this feature, implement a form in the store frontend that has fields for:

  • Gender (m, f, d)
  • First name
  • Last name
  • Email address

Once this information is collected, send the data to your backend and then build a request to the Checkout Authentication API:

curl -X POST --location 'https://{{tenant-space}}.auth.scayle.cloud/v1/auth/login/guest' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {base64Encode({client_id}:{client_secret})}' \
--data-raw '{
  "first_name": "Max",
  "last_name": "Mustermann",
  "email": "[email protected]",
  "gender": "m",
  "shop_id": 1000
}'

This endpoint requires the API client authentication.

In the response you receive an access token and a refresh token which can be used for further interaction with our APIs.

Refer to the API Specification for further insights on this endpoint.