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

Registration

To register a new customer (create a new customer account), create a form in the storefront frontend that has fields for:

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

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

curl -X POST --location 'https://{{tenant-space}}.auth.scayle.cloud/v1/auth/register' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {base64Encode({client_id}:{client_secret})}' \
--data-raw '{
    "first_name": "Max",
    "last_name": "Mustermann",
    "email": "[email protected]",
    "password": "test!123",
    "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 details on create a new customer account endpoint.