---
title: "Returns the shopping cart"
method: GET
path: "/api/v1/carts/{customerId}"
tags: ["cart"]
---

# Returns the shopping cart

`GET /api/v1/carts/{customerId}`

Returns the shopping cart of given customer

## Path parameters

- `customerId` string, required

## Response `200`

successful operation

- Cart — Shopping Cart of the user
  - `id` string — Cart Identifier
  - `customerId` string — Id of the customer who possesses the cart
  - `items` Item[] — Collection of items in cart.
    - `id` string — Item Identifier
    - `quantity` integer — The item quantity
    - `unitPrice` unknown

## Other responses

- `404` — Given customer ID doesn't exist

---

[API](https://skmtc.dev/packtpublishing/apis/sample-ecommerce-app.md) · [All operations](https://skmtc.dev/packtpublishing/apis/sample-ecommerce-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/packtpublishing/sample-ecommerce-app/revisions/51a26ae44206/schema)
