1 type: object
2 description: The details to update in a cart.
3 x-schemaName: UpdateCartData
4 properties:
5 region_id:
6 type: string
7 title: region_id
8 description: >-
9 The ID of the associated region. This can affect the prices and currency
10 code of the cart.
11 customer_id:
12 type: string
13 title: customer_id
14 description: The ID of the customer that the cart belongs to.
15 sales_channel_id:
16 type: string
17 title: sales_channel_id
18 description: >
19 The ID of the associated sales channel.
20
21
22 A product's availability in a sales channel only filters the products you
23 retrieve. Medusa doesn't reject a variant added to the cart when its
24 product isn't available in the cart's sales channel. Refer to the guide in
25 the external documentation to learn how to enforce that validation.
26 externalDocs:
27 url: >-
28 https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability
29 email:
30 type: string
31 title: email
32 description: The email of the customer that the cart belongs to.
33 format: email
34 currency_code:
35 type: string
36 title: currency_code
37 description: The cart's currency code.
38 example: usd
39 shipping_address_id:
40 type: string
41 title: shipping_address_id
42 description: The ID of the cart's shipping address.
43 billing_address_id:
44 type: string
45 title: billing_address_id
46 description: The ID of the cart's billing address.
47 billing_address:
48 oneOf:
49 - $ref: ./CreateAddress.yaml
50 - $ref: ./UpdateAddress.yaml
51 shipping_address:
52 oneOf:
53 - $ref: ./CreateAddress.yaml
54 - $ref: ./UpdateAddress.yaml
55 metadata:
56 type: object
57 description: The cart's metadata, ca hold custom key-value pairs.
58 externalDocs:
59 url: https://docs.medusajs.com/api/store#manage-metadata
60 description: Learn how to manage metadata