---
title: "customers/{customerId}/carts"
method: POST
path: "/V1/customers/{customerId}/carts"
tags: ["customers/{customerId}/carts"]
---

# customers/{customerId}/carts

`POST /V1/customers/{customerId}/carts`

Creates an empty cart and quote for a specified customer if customer does not have a cart yet.

## Path parameters

- `customerId` integer, required

## Response `200`

200 Success.

- integer — new cart ID if customer did not have a cart or ID of the existing cart otherwise.

## Other responses

- `400` — 400 Bad Request
- `401` — 401 Unauthorized
- `default` — Unexpected error

---

[API](https://skmtc.net/magento/apis/magento.md) · [All operations](https://skmtc.net/magento/apis/magento/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magento/magento/versions/e053988c9845/schema)
