1 /**
2 * @schema StoreCreateCart
3 * type: object
4 * description: The details of the cart to be created.
5 * x-schemaName: StoreCreateCart
6 * properties:
7 * region_id:
8 * type: string
9 * title: region_id
10 * description: The ID of the cart's region. This affects the prices and currency of the cart.
11 * shipping_address:
12 * $ref: "#/components/schemas/StoreCartAddress"
13 * billing_address:
14 * $ref: "#/components/schemas/StoreCartAddress"
15 * email:
16 * type: string
17 * title: email
18 * description: The email of the cart's customer.
19 * format: email
20 * currency_code:
21 * type: string
22 * title: currency_code
23 * description: The cart's currency code. If not provided, the region's currency is used. This affects prices in the cart, as well.
24 * example: usd
25 * items:
26 * type: array
27 * description: The cart's items.
28 * items:
29 * $ref: "#/components/schemas/StoreCartLineItem"
30 * sales_channel_id:
31 * type: string
32 * title: sales_channel_id
33 * description: |
34 * The ID of the sales channel that cart is created in. If not provided, the store's default sales channel is associated with the cart instead.
35 *
36 * A product's availability in a sales channel only filters the products you retrieve. Medusa doesn't reject a variant added to the cart when its product isn't available in the cart's sales channel. Refer to the guide in the external documentation to learn how to enforce that validation.
37 * externalDocs:
38 * url: https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability
39 * metadata:
40 * type: object
41 * description: The cart's metadata, can hold custom key-value pairs.
42 * externalDocs:
43 * url: https://docs.medusajs.com/api/store#manage-metadata
44 * description: Learn how to manage metadata
45 *
46 */
47