/cart
Get shopping cart
Returns the current shopping cart contents with product details. Pass shippingCountry (ISO 3166-1 alpha-2) once the shopper has chosen where to ship: VAT is then calculated for that country, the same way the order will be. Without it, VAT follows the logged-in customer's country, or the store's own country for a guest.
Query parameters
| Field | Type |
|---|---|
shippingCountry
|
string |
Headers
| Field | Type | Description |
|---|---|---|
X-Language
|
string | Language for translated content, as an ISO 639-1 code ("sv", "en"). Omitting it answers in the channel's default language, and so does a language the channel does not publish — this never fails the request. The channel decides which languages exist; read them from the session response. |
Responses
EcomCartResponse
| Field | Type |
|---|---|
buyerVat
|
CartBuyerVat |
currency
|
string · nullable |
expiresAt
|
string(date-time) |
id
|
string(uuid) |
isTaxEnabled
|
boolean |
items
|
CartItem[] · nullable |
lineDiscountAmount
|
decimal |
orderDiscountAmount
|
decimal |
subTotal
|
decimal |
subTotalBeforeDiscount
|
decimal |
taxAmount
|
decimal |
taxPercent
|
decimal |
taxReduction
|
CartTaxReduction |
totalIncludingTax
|
decimal |
totalItems
|
decimal |
uniqueItemCount
|
integer |
vatTreatment
|
string · nullable |
-
Retry-After— Seconds to wait before retrying.
Standard errors:
401
Errors
Examples
curl "https://api.erp.fluit.cloud/ecom/cart" \
-H "Authorization: Bearer $SESSION_TOKEN" \
-H "X-Tenant-Id: $FLUIT_TENANT_ID" \
-H "X-Channel: web" \
-H "X-Language: …"
{
"buyerVat": {
"checkedAt": "2026-06-11T09:24:13.418",
"registeredName": "Acme AB",
"status": "NoNumber",
"vatNumber": "ABC-001"
},
"currency": "string",
"expiresAt": "2026-06-11T09:24:13.418",
"id": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"isTaxEnabled": true,
"items": [
{
"addedAt": "2026-06-11T09:24:13.418",
"availableQuantity": "10",
"baseQuantity": "10",
"baseUnit": "string",
"cartItemId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"componentAvailability": {
"allInStock": true,
"expectedDate": "2026-06-11"
},
"conversionFactor": "299.00",
"discountAmount": "299.00",
"discountPercent": "12.50",
"imageUrl": "https://cdn.fluit.cloud/assets/widget-a-front.jpg",
"isCustomerSpecific": true,
"isMadeToOrder": true,
"itemId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"itemNumber": "WIDGET-A",
"leadTimeDays": 42,
"lineTotal": "299.00",
"lineTotalIncludingTax": "299.00",
"madeToOrderText": "string",
"mpn": "string",
"name": "Widget A",
"note": "string",
"quantity": "10",
"slug": "string",
"stockStatus": "InStock",
"taxAmount": "299.00",
"unit": "st",
"unitPrice": "299.00"
}
],
"lineDiscountAmount": "299.00",
"orderDiscountAmount": "299.00",
"subTotal": "299.00",
"subTotalBeforeDiscount": "299.00",
"taxAmount": "299.00",
"taxPercent": "12.50",
"taxReduction": {
"requiresProperty": true,
"schemes": [
{
"amount": "299.00",
"basis": "299.00",
"code": "string",
"name": "Acme AB"
}
],
"total": "299.00"
},
"totalIncludingTax": "299.00",
"totalItems": "299.00",
"uniqueItemCount": 42,
"vatTreatment": "string"
}
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.