> ## Documentation Index
> Fetch the complete documentation index at: https://firmly.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Cart

> Retrieves the current shopping cart

## Overview

Gets the current state of the cart with line items and pricing information. Returns an empty cart if no items have been added yet.

## Authentication

> [card]
>
> **x-firmly-authorization** `string` *required*
>
> Device authentication token from browser session

## Path Parameters

**domain** `string` *required*

Merchant domain (e.g., `staging.luma.gift`)

## Query Parameters

**fast\_mode** `string` (default: false)

Set to `true` for faster response with potentially cached data

## Response

Returns the shopping cart with line items, pricing, and available options.

### Response Fields

**cart\_id** `string`

Unique identifier for the cart

**cart\_status** `string`

Current cart status (`active`, `submitted`, etc.)

**display\_name** `string`

Merchant display name

**platform\_id** `string`

E-commerce platform identifier

**shop\_id** `string`

Merchant identifier

**line\_items** `array`

Array of items in the cart

**Line Item Object**

**line\_item\_id** `string`

Unique identifier for the line item

**sku** `string`

Product SKU

**base\_sku** `string`

Base product SKU (parent product)

**quantity** `number`

Quantity of the item

**description** `string`

Product description

**price** `object`

Unit price

**Price Object**

**currency** `string`

Currency code (e.g., "USD")

**value** `number`

Decimal price value

**number** `number`

Price in cents

**symbol** `string`

Currency symbol

**line\_price** `object`

Total price for this line item (price × quantity)

**image** `object`

Product image

**Image Object**

**url** `string`

Primary image URL

**requires\_shipping** `boolean`

Whether this item requires shipping

**sub\_total** `object`

Subtotal before shipping and tax

**shipping\_total** `object`

Shipping cost (if shipping info has been set)

**tax** `object`

Tax amount

**fees** `array`

Merchant-imposed fees (e.g. recycle, regulatory), if any

**Fee Properties**

**description** `string`

Human-readable label for the fee (e.g., "Recycle fee")

**value** `number`

Decimal fee amount

**currency** `string`

Currency code (e.g., USD)

**number** `number`

Value in smallest currency unit

**symbol** `string`

Currency symbol

**fee\_total** `object`

Total of all fees

**total** `object`

Grand total including all costs

**shipping\_info** `object`

Shipping address (if set)

**shipping\_method** `object`

Selected shipping method (if set)

**shipping\_method\_options** `array`

Available shipping methods (if shipping info has been set)

**payment\_method\_options** `array`

Available payment methods

**notice** `array`

Array of notice messages (Simple Cart API uses string array)

```bash cURL theme={null}
curl --request GET \
  --url https://api.firmly.work/api/v1/domains/staging.luma.gift/cart \
  --header 'x-firmly-authorization: YOUR_TOKEN'
```

```javascript JavaScript theme={null}
const response = await fetch('https://api.firmly.work/api/v1/domains/staging.luma.gift/cart', {
  method: 'GET',
  headers: {
    'x-firmly-authorization': 'YOUR_TOKEN'
  }
});

const cart = await response.json();
```

```python Python theme={null}
import requests

response = requests.get(
    'https://api.firmly.work/api/v1/domains/staging.luma.gift/cart',
    headers={
        'x-firmly-authorization': 'YOUR_TOKEN'
    }
)

cart = response.json()
```

```json Cart with Items theme={null}
{
  "cart_discount": { 
    "currency": "USD", 
    "value": 0, 
    "symbol": "$", 
    "number": 0 
  },
  "line_items": [
    {
      "base_sku": "WS12",
      "description": "Radiant Tee - Orange XS",
      "image": {
        "url": "https://cdn.staging.luma.gift/products/radiant-tee/orange.jpg"
      },
      "line_item_id": "00000000-0000-0000-0000-000000000000",
      "line_price": { 
        "currency": "USD", 
        "value": 22.00, 
        "symbol": "$", 
        "number": 2200 
      },
      "msrp": { 
        "currency": "USD", 
        "value": 22.00, 
        "symbol": "$", 
        "number": 2200 
      },
      "platform_line_item_id": "4df9941b-bd06-4495-8759-61c6145dc408",
      "price": { 
        "currency": "USD", 
        "value": 22.00, 
        "symbol": "$", 
        "number": 2200 
      },
      "quantity": 1,
      "requires_shipping": true,
      "sku": "WS12-XS-Orange"
    }
  ],
  "payment_method_options": [
    {
      "type": "CreditCard",
      "wallet": "user"
    }
  ],
  "shipping_total": { 
    "currency": "USD", 
    "value": 0, 
    "symbol": "$", 
    "number": 0 
  },
  "sub_total": { 
    "currency": "USD", 
    "value": 869.99, 
    "symbol": "$", 
    "number": 86999 
  },
  "tax": { 
    "currency": "USD", 
    "value": 2.20, 
    "symbol": "$", 
    "number": 220 
  },
  "fees": [
    {
      "description": "Recycle fee",
      "currency": "USD",
      "value": 2.00,
      "symbol": "$",
      "number": 200
    }
  ],
  "fee_total": {
    "currency": "USD",
    "value": 2.00,
    "symbol": "$",
    "number": 200
  },
  "total": { 
    "currency": "USD", 
    "value": 26.20, 
    "symbol": "$", 
    "number": 2620 
  }
}
```

```json Empty Cart theme={null}
{
  "cart_id": "abc123",
  "cart_status": "active", 
  "display_name": "Luma Store",
  "platform_id": "example",
  "shop_id": "staging.luma.gift",
  "line_items": [],
  "sub_total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "tax": {
    "currency": "USD", 
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "total": {
    "currency": "USD",
    "value": 0, 
    "symbol": "$",
    "number": 0
  },
  "payment_method_options": [
    {
      "type": "CreditCard",
      "wallet": "user"
    }
  ]
}
```

## Error Responses

### 400 Bad Request

Missing or invalid authentication header

### 404 Not Found

Cart was not found

### 503 Service Unavailable

Store temporarily unavailable


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.