Hoppa till innehållet

Profil

The signed-in customer's own contact details.

2 anrop GET PATCH 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.

GET /portal/profile

Get profile

Returns profile details for the authenticated customer contact.

Svar

200 PortalProfileResponse
Fält Typ
contactId string(uuid)
customerName string · nullable
customerNumber string · nullable
department string · nullable
email string · nullable
firstName string · nullable
lastName string · nullable
mobile string · nullable
name string · nullable
phone string · nullable
role string · nullable
title 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.
  • Retry-After — Seconds to wait before retrying.

Standardfel: 401 403 Felhantering

Exempel

curl
curl "https://api.erp.fluit.cloud/ecom/portal/profile" \
  -H "Authorization: Bearer $SESSION_TOKEN" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web"
Svar 200
{
  "contactId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
  "customerName": "Acme AB",
  "customerNumber": "CUST-001",
  "department": "string",
  "email": "order@acme.se",
  "firstName": "Acme AB",
  "lastName": "Acme AB",
  "mobile": "string",
  "name": "Acme AB",
  "phone": "+46 8 123 45 67",
  "role": "string",
  "title": "string"
}

Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.

PATCH /portal/profile

Update profile

Updates the authenticated contact's profile details.

Body krävs

Fält Typ
department string · nullable
firstName string · nullable
lastName string · nullable
mobile string · nullable
phone string · nullable
title string · nullable

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.
  • Retry-After — Seconds to wait before retrying.

Standardfel: 400 401 Felhantering

Exempel

curl
curl -X PATCH "https://api.erp.fluit.cloud/ecom/portal/profile" \
  -H "Authorization: Bearer $SESSION_TOKEN" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web" \
  -H "Content-Type: application/json" \
  -d @body.json

Bas-URL https://api.erp.fluit.cloud/ecom.