Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Elastic Path Cart Management API

A Cart contains the product and custom cart items that a user intends to purchase. After a Cart is ready for Checkout, you can use the [Checkout endpoint](/docs/api/carts/checkout) to convert the cart to an order.:::note- Adding, modifying, or removing any cart items, custom items, or promotions always returns the cart meta, calculated using the calculation method. This is useful to update the client with up-to-date totals.- We will automatically delete carts 7 days after they were last updated.- If you do not pass a `X-MOLTIN-CURRENCY` header specifying what currency you would like the cart to use, the products in the cart are converted to your default currency.:::

Elastic Path Cart Management API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

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

This API exposes 5 operations across 2 paths, and defines 22 schemas. It is described by OpenAPI 3.1.0, at version 25.1126.6886238.

Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.

5 operations 2 paths 22 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
25.1126.6886238
Base URL
https://useast.api.elasticpath.com
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

Elastic Path Cart Management API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerToken). By default, every request must be authenticated.

Paths & Operations 5

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

Cart Management 5

A Cart contains the product and custom cart items that a user intends to purchase. After a Cart is ready for Checkout, you can use the [Checkout endpoint](/docs/api/carts/checkout…

GET
/v2/carts
Get Carts
getCarts 6 params → 200400403
POST
/v2/carts
Create a Cart
createACart 2 params body → 201400403
GET
/v2/carts/{cartID}
Get a Cart
getACart 2 params → 200400
PUT
/v2/carts/{cartID}
Update a Cart
updateACart 1 param body → 200403422
DELETE
/v2/carts/{cartID}
Delete a Cart
deleteACart 1 param → 204400

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are BaseCartResponse (13 properties), CondensedPromotionResponse (9 properties), CustomDiscountResponse (8 properties), Response.PageLinks (5 properties). Each schema is shown below with its type and property counts.

CartCollectionResponse
object
3 properties 1 required
CustomDiscountResponse
object
8 properties
CartResponse
CartsRequest
object
1 property
FormattedPriceData
object
3 properties
Response.ErrorItem
object
5 properties 2 required
CondensedPromotionResponse
object
9 properties
CartContact
object
1 property
BaseCartResponse
object
13 properties
CartEntityResponse
object
4 properties
RelationshipItem
object
Relationship data entry
2 properties 2 required
CartTimestamps
object
3 properties
Response.PaginationPage
object
4 properties
DiscountSettings
object
2 properties
Response.ErrorResponse
object
1 property 1 required
CustomAttributes
object
Specifies custom attributes for cart or order objects. Each attribute includes a top-level key, as well as corresponding type and value entries. Attribute valu…
Response.Meta.Carts
object
2 properties
ItemSettings
object
1 property
Response.PaginationResults
object
1 property
InventorySettings
object
1 property
Response.PageLinks
object
5 properties
RelationshipArray
object
Array of relationships
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

elastic-path-cart-management-api-openapi.yml Raw ↑

Other APIs Elastic Path publishes across the network.

Elastic Path GraphQL API
Elastic Path Account Addresses API
Elastic Path Account Authentication Settings API
Elastic Path Account Cart Associations API
Elastic Path Account Management Authentication API
Elastic Path Account Members API
Elastic Path Account Membership API
Elastic Path Account Membership Settings API
Elastic Path Account Tags API
Elastic Path Accounts API
Elastic Path Administrator Latest Releases Catalog API API
Elastic Path Application Keys API