-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Expand file tree
/
Copy pathUpdateCartData.yaml
More file actions
60 lines (58 loc) · 1.85 KB
/
Copy pathUpdateCartData.yaml
File metadata and controls
60 lines (58 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
type: object
description: The details to update in a cart.
x-schemaName: UpdateCartData
properties:
region_id:
type: string
title: region_id
description: >-
The ID of the associated region. This can affect the prices and currency
code of the cart.
customer_id:
type: string
title: customer_id
description: The ID of the customer that the cart belongs to.
sales_channel_id:
type: string
title: sales_channel_id
description: >
The ID of the associated sales channel.
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.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability
email:
type: string
title: email
description: The email of the customer that the cart belongs to.
format: email
currency_code:
type: string
title: currency_code
description: The cart's currency code.
example: usd
shipping_address_id:
type: string
title: shipping_address_id
description: The ID of the cart's shipping address.
billing_address_id:
type: string
title: billing_address_id
description: The ID of the cart's billing address.
billing_address:
oneOf:
- $ref: ./CreateAddress.yaml
- $ref: ./UpdateAddress.yaml
shipping_address:
oneOf:
- $ref: ./CreateAddress.yaml
- $ref: ./UpdateAddress.yaml
metadata:
type: object
description: The cart's metadata, ca hold custom key-value pairs.
externalDocs:
url: https://docs.medusajs.com/api/store#manage-metadata
description: Learn how to manage metadata