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 calls·
POST
GET
·Base URL https://api.erp.fluit.cloud/ecom
Authentication, error codes, rate limits, idempotency and pagination apply to every call and are documented once under
Getting started.
POST
/auth/login
Login
Authenticates a customer contact using email and password. Associates the session with the customer.
Body
required
Field
Type
email
string
· nullable
password
string
· nullable
Responses
200
EcomLoginResult
Field
Type
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.
Base URL https://api.erp.fluit.cloud/ecom.
The response example is generated from the schema: the shape is right, the values are made up.
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.
Show the full description
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.
Responses
204
Empty 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
required
Field
Type
code
string
· nullable
email
string
· nullable
Responses
200
EcomLoginResult
Field
Type
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.
Base URL https://api.erp.fluit.cloud/ecom.
The response example is generated from the schema: the shape is right, the values are made up.
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
required
Field
Type
Description
email
string
· nullable
purpose
enum
PasswordReset
OneTimeLogin
Responses
200
Empty 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
required
Field
Type
code
string
· nullable
email
string
· nullable
newPassword
string
· nullable
Responses
200
EcomLoginResult
Field
Type
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.
Base URL https://api.erp.fluit.cloud/ecom.
The response example is generated from the schema: the shape is right, the values are made up.
POST
/auth/verify-code
Verify auth code
Validates a 6-digit code without consuming it. Returns validity status and remaining attempts.
Body
required
Field
Type
Description
code
string
· nullable
email
string
· nullable
purpose
enum
PasswordReset
OneTimeLogin
Responses
200
VerifyEcomAuthCodeResult
Field
Type
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.
Base URL https://api.erp.fluit.cloud/ecom.
The response example is generated from the schema: the shape is right, the values are made up.
Schemas
The objects this group's calls refer to. The field tables above go one level deep and link here rather than repeating the same schema on every endpoint.