---
title: "Reads the customer's live cart, or null when they have none."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo customer API › cart

`GET /v1/stores/{store}/cart`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `read`

## Path parameters

- `store` (`getCart.path.store`; string, required) — A hostname of the store.

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/customer/v1/stores/<store>/cart' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/cart';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/customer/v1/stores/<store>/cart"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Reads the customer's live cart, or null when they have none.

#### Example

```json
{
  "status": "string",
  "order": {
    "id": "string",
    "number": 0
  },
  "under_minimum": {
    "processor": "stripe",
    "amount": 0,
    "minimum": 0
  },
  "refund_consent": "string",
  "refund_consent_key": "string",
  "card_required": {
    "reason": "string"
  },
  "items": [
    {
      "availability": "string",
      "availability_reason": "string",
      "current": {
        "amount": 0,
        "discount": 0
      },
      "product": {
        "id": "string",
        "slug": "string",
        "path": "string",
        "url": "string",
        "title": "string",
        "category": "string",
        "deleted": true
      },
      "price": {
        "title": "string",
        "kind": "string",
        "period_unit": "string",
        "period_multiplier": 0,
        "tier": {
          "id": "string",
          "title": "string",
          "rank": 0
        }
      },
      "autorenew": true,
      "first_charge_at": "string",
      "refund_policy": "string",
      "refund_basis": "string",
      "refund_until": "string",
      "refund_consent": true,
      "refund_consent_key": "string",
      "refund_waived": true,
      "id": "string",
      "product_id": "string",
      "price_id": "string",
      "quantity": 0,
      "amount": 0,
      "discount": 0,
      "discount_id": "string",
      "total": 0,
      "mode": "string",
      "display_name": "string",
      "message": "string",
      "guests": [
        {
          "email": "string",
          "name": "string"
        }
      ],
      "starts_at": "string"
    }
  ],
  "totals": {
    "amount": 0,
    "discount": 0,
    "total": 0
  },
  "id": "string",
  "currency": "string",
  "exponent": 0,
  "cart": true,
  "coupon": "string",
  "refund_waiver": {
    "policy": "string",
    "until": "string",
    "key": "string",
    "accepted_at": "string"
  },
  "expires_at": "string",
  "created_at": "string",
  "updated_at": "string"
}
```

Any of:

- `object`
- `null`

### default

A problem; see https://api.sherpo.io/customer/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`getCart.response.default.type`; string, required)
  - format `uri`
- `title` (`getCart.response.default.title`; string, required)
- `status` (`getCart.response.default.status`; integer, required)
- `detail` (`getCart.response.default.detail`; string, required)
- `code` (`getCart.response.default.code`; string, optional)
- `context` (`getCart.response.default.context`; object, optional)
- `reached_core` (`getCart.response.default.reached_core`; boolean, optional)
- `core_answer` (`getCart.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/customer-api/reference/get-cart/index.md
