curl --request POST \
--url https://api.scalev.com/v3/stores/{store_id}/public/auth/login \
--header 'Content-Type: application/json' \
--header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
--data '
{
"email": "jsmith@example.com",
"password": "<string>",
"login_as": "customer"
}
'{
"access": "<string>",
"refresh": "<string>",
"token_type": "Bearer",
"expires_in": 900,
"refresh_expires_in": 2592000,
"store_unique_id": "<string>"
}Public storefront endpoint. If the store can complete login directly, a successful credential check returns customer JWT tokens. If the store requires OTP, a successful credential check sends the one-time code and returns a message object so the frontend can show the OTP entry step.
curl --request POST \
--url https://api.scalev.com/v3/stores/{store_id}/public/auth/login \
--header 'Content-Type: application/json' \
--header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
--data '
{
"email": "jsmith@example.com",
"password": "<string>",
"login_as": "customer"
}
'{
"access": "<string>",
"refresh": "<string>",
"token_type": "Bearer",
"expires_in": 900,
"refresh_expires_in": 2592000,
"store_unique_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.scalev.com/llms.txt
Use this file to discover all available pages before exploring further.
Publishable storefront public API key for the target store.
Store unique_id.
Customer login tokens, or an OTP challenge message when the store requires OTP.
Customer access JWT. Send it as Authorization: Bearer <token> to /v3/stores/{store_id}/customers/me/*.
Refresh token for POST /v3/stores/{store_id}/public/auth/jwt/refresh.
Token type to use in the Authorization header.
Bearer Access token lifetime in seconds.
900
Refresh token lifetime in seconds. Refresh tokens rotate on every refresh and are single-use.
2592000
Public store unique ID returned by some OTP verification responses.
Apakah halaman ini membantu?