/auth/login
Login
Authenticates a customer contact using email and password. Associates the session with the customer.
Body krävs
| Fält | Typ |
|---|---|
email
|
string · nullable |
password
|
string · nullable |
Svar
EcomLoginResult
| Fält | Typ |
|---|---|
contactId
|
string(uuid) |
customerId
|
string(uuid) |
email
|
string · nullable |
name
|
string · nullable |
-
Retry-After— Seconds to wait before retrying.
Standardfel:
400
401
Felhantering
Exempel
curl -X POST "https://api.erp.fluit.cloud/ecom/auth/login" \
-H "Authorization: Bearer $SESSION_TOKEN" \
-H "X-Tenant-Id: $FLUIT_TENANT_ID" \
-H "X-Channel: web" \
-H "Content-Type: application/json" \
-d @body.json
{
"contactId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"customerId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"email": "order@acme.se",
"name": "Acme AB"
}
Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.