Headers
Publishable API Key created in the Medusa Admin.
Query Parameters
Comma-separated fields that should be included in the returned data. if a field is prefixed with +
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.
Body
The cart's details. The details of the cart to be created.
The ID of the cart's region. This affects the prices and currency of the cart.
The address's details.
The address's details.
The email of the cart's customer.
The cart's currency code. If not provided, the region's currency is used. This affects prices in the cart, as well.
"usd"
The cart's items.
The ID of the sales channel that cart is created in. Only products available in that sales channel can be added to the cart. If not provided, the store's default sales channel is associated with the cart instead.
The cart's metadata, can hold custom key-value pairs.
Pass additional custom data to the API route. This data is passed to the underlying workflow under the additional_data
parameter.
Response
OK
The cart's details.
The cart's details.