Hoppa till innehållet

Ordrar

The signed-in customer's order history and order details, with line level fulfilment status.

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

GET /portal/orders

List orders

Returns a paginated list of orders for the authenticated customer.

Frågeparametrar

Fält Typ
page integer
pageSize integer
status string

Svar

200 PortalOrderListResponse
Fält Typ
items PortalOrder[] · nullable
page integer
pageSize integer
totalCount 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.
  • Retry-After — Seconds to wait before retrying.

Standardfel: 401 403 Felhantering

Exempel

curl
curl "https://api.erp.fluit.cloud/ecom/portal/orders" \
  -H "Authorization: Bearer $SESSION_TOKEN" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web"
Svar 200
{
  "items": [
    {
      "currencyCode": "SEK",
      "customerReference": "PO-2026-042",
      "deliveryStatus": "string",
      "id": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
      "lineCount": 42,
      "orderDate": "string",
      "orderNumber": "SO-2026-1041",
      "requestedDeliveryDate": "string",
      "status": "string",
      "totalAmount": "299.00",
      "totalAmountIncludingTax": "299.00"
    }
  ],
  "page": 1,
  "pageSize": 50,
  "totalCount": 137
}

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

GET /portal/orders/{id}

Get order detail

Returns the full detail of a specific order for the authenticated customer.

Sökvägsparametrar

Fält Typ
id Krävs string(uuid)

Svar

200 PortalOrderDetailResponse
Fält Typ
contactName string · nullable
currencyCode string · nullable
customerReference string · nullable
deliveredPercentage decimal
deliveryStatus string · nullable
externalNotes string · nullable
id string(uuid)
lines PortalOrderLine[] · nullable
orderDate string · nullable
orderNumber string · nullable
plannedDeliveryDate string · nullable
requestedDeliveryDate string · nullable
shippingAddress PortalOrderAddress
status string · nullable
totalAmount decimal
totalAmountIncludingTax decimal
totalVat decimal
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 404 Felhantering

Exempel

curl
curl "https://api.erp.fluit.cloud/ecom/portal/orders/{id}" \
  -H "Authorization: Bearer $SESSION_TOKEN" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web"
Svar 200
{
  "contactName": "Anna Svensson",
  "currencyCode": "SEK",
  "customerReference": "PO-2026-042",
  "deliveredPercentage": "12.50",
  "deliveryStatus": "string",
  "externalNotes": "string",
  "id": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
  "lines": [
    {
      "discountPercent": "12.50",
      "id": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
      "itemName": "Widget A",
      "itemNumber": "WIDGET-A",
      "lineTotal": "299.00",
      "lineTotalIncludingTax": "299.00",
      "quantity": "10",
      "status": "string",
      "unit": "st",
      "unitPrice": "299.00"
    }
  ],
  "orderDate": "string",
  "orderNumber": "SO-2026-1041",
  "plannedDeliveryDate": "string",
  "requestedDeliveryDate": "string",
  "shippingAddress": {
    "city": "Stockholm",
    "country": "string",
    "name": "Acme AB",
    "postalCode": "11122",
    "street": "string"
  },
  "status": "string",
  "totalAmount": "299.00",
  "totalAmountIncludingTax": "299.00",
  "totalVat": "299.00"
}

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.

PortalOrder

PortalOrderListItem
Fält Typ
currencyCode string · nullable
customerReference string · nullable
deliveryStatus string · nullable
id string(uuid)
lineCount integer
orderDate string · nullable
orderNumber string · nullable
requestedDeliveryDate string · nullable
status string · nullable
totalAmount decimal
totalAmountIncludingTax decimal

PortalOrderAddress

PortalOrderAddressResponse
Fält Typ
city string · nullable
country string · nullable
name string · nullable
postalCode string · nullable
street string · nullable

PortalOrderLine

PortalOrderLineResponse
Fält Typ
discountPercent decimal
id string(uuid)
itemName string · nullable
itemNumber string · nullable
lineTotal decimal
lineTotalIncludingTax decimal
quantity decimal
status string · nullable
unit string · nullable
unitPrice decimal