Signing in: password, one-time code by email, and password reset. All of them upgrade the existing session rather than replacing it, so the cart carries over.
7 anrop·
POST
GET
·Bas-URL https://api.erp.fluit.cloud/ecom
Autentisering, felkoder, rate limits, idempotens och paginering gäller alla anrop och står samlade under
Kom igång.
POST
/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
200
EcomLoginResult
Fält
Typ
contactId
string(uuid)
customerId
string(uuid)
email
string
· nullable
name
string
· nullable
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
Bas-URL https://api.erp.fluit.cloud/ecom.
Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.
POST
/auth/logout
Log out
Ends the session behind the bearer token, server-side. The token stops working immediately, for this endpoint and every other one. Idempotent: a token that is already ended, expired or unknown also answers 204, so a retry after a lost response needs no special handling.
Visa hela beskrivningen
Deleting your own cookie or clearing your token store is not a substitute — until this call lands, the token remains valid for the rest of its seven days, including the signed-in customer's orders and invoices. Call it before you drop the token. The cart hangs off the session, so it goes with it — the next session starts empty, signed in or not. That is the intended behaviour on a shared device; carry anything the visitor should keep on your own side before calling this.
Svar
204
Tom body.
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
Authenticates a customer contact using a one-time email code. Associates the session with the customer.
Body
krävs
Fält
Typ
code
string
· nullable
email
string
· nullable
Svar
200
EcomLoginResult
Fält
Typ
contactId
string(uuid)
customerId
string(uuid)
email
string
· nullable
name
string
· nullable
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
Bas-URL https://api.erp.fluit.cloud/ecom.
Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.
POST
/auth/request-code
Request auth code
Sends a 6-digit verification code to the specified email address. Used for password reset and one-time login.
Body
krävs
Fält
Typ
Beskrivning
email
string
· nullable
purpose
enum
PasswordReset
OneTimeLogin
Svar
200
Tom body.
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
Resets the customer password using a verified 6-digit code. Auto-logs in the customer on success.
Body
krävs
Fält
Typ
code
string
· nullable
email
string
· nullable
newPassword
string
· nullable
Svar
200
EcomLoginResult
Fält
Typ
contactId
string(uuid)
customerId
string(uuid)
email
string
· nullable
name
string
· nullable
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
Bas-URL https://api.erp.fluit.cloud/ecom.
Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.
POST
/auth/verify-code
Verify auth code
Validates a 6-digit code without consuming it. Returns validity status and remaining attempts.
Body
krävs
Fält
Typ
Beskrivning
code
string
· nullable
email
string
· nullable
purpose
enum
PasswordReset
OneTimeLogin
Svar
200
VerifyEcomAuthCodeResult
Fält
Typ
isValid
boolean
remainingAttempts
integer
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
429
Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
Bas-URL https://api.erp.fluit.cloud/ecom.
Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.
Scheman
Objekten som gruppens anrop refererar till. Fälttabellerna ovan går ett steg djupt och länkar hit i stället för att upprepa samma schema på varje endpoint.