How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

commercetools Carts API

Manage shopping carts with line items, discounts, shipping, and tax calculations.

commercetools Carts API is one of 19 APIs that commercetools publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Cart. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an AsyncAPI specification.

This API exposes 5 operations across 2 paths, and defines 13 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against a single base URL, https://api.{region}.commercetools.com.

5 operations 2 paths 13 schemas 1 DELETE2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.{region}.commercetools.com
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

commercetools Carts API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — OAuth 2.0 Bearer token obtained from the commercetools authentication service at https://auth.{region}.commercetools.com/oauth/token using client credentials f…

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Carts 5

Manage shopping carts with line items, discounts, shipping, and tax calculations.

GET
/{projectKey}/carts
List carts
listCarts 5 params → 200401
POST
/{projectKey}/carts
Create a cart
createCart 1 param body → 201400
GET
/{projectKey}/carts/{id}
Get a cart by ID
getCartById 3 params → 200404
POST
/{projectKey}/carts/{id}
Update a cart by ID
updateCartById 2 params body → 200
DELETE
/{projectKey}/carts/{id}
Delete a cart by ID
deleteCartById 3 params → 200

Schemas 13

The contract defines 13 schemas that model the data the API accepts and returns. The most detailed are Cart (16 properties), Address (12 properties), CartDraft (10 properties), LineItem (9 properties). Each schema is shown below with its type and property counts.

Address
object
A postal address with country and optional structured fields.
12 properties 1 required
CartPagedQueryResponse
object
Paginated response containing a list of carts.
5 properties 5 required
Reference
object
A reference to another resource by its typeId and id.
2 properties 2 required
Cart
object
A shopping cart resource containing line items, discounts, shipping configuration, and pricing.
16 properties 6 required
Attribute
object
A name-value pair representing a product attribute as defined by the product type.
2 properties 2 required
Price
object
A price entry for a product variant with optional scoping by channel, customer group, country, or validity period.
7 properties 2 required
LocalizedString
object
A map of locale keys to string values used for multilingual content. Keys follow IETF language tag format (e.g., 'en', 'de', 'en-US').
LineItem
object
A product line item in a cart or order with quantity, pricing, and discount information.
9 properties 9 required
Money
object
A monetary value with currency code and amount in the smallest currency unit.
3 properties 2 required
Image
object
A product image with URL, dimensions, and optional label.
3 properties 2 required
CartDraft
object
Request body for creating a new cart.
10 properties 1 required
ProductVariant
object
A product variant with SKU, attributes, prices, and images.
6 properties 1 required
CartUpdate
object
Request body for updating a cart.
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

commercetools-carts-api-openapi.yml Raw ↑

Other APIs commercetools publishes across the network.

Commercetools GraphQL API
Commercetools TypeScript SDK
Commercetools Java SDK
Commercetools Checkout API
Commercetools Merchant Center Customizations API
commercetools Categories API
commercetools ChangeHistory API
commercetools Customers API
commercetools ImportContainers API
commercetools ImportOperations API
commercetools Inventory API
commercetools Orders API
Where this information came from

This is an independent, third-party profile of commercetools Carts API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.