Raw
1 type: object
2 description: The item's cart.
3 x-schemaName: BaseCart
4 required:
5 - id
6 - currency_code
7 - original_item_total
8 - original_item_subtotal
9 - original_item_tax_total
10 - item_total
11 - item_subtotal
12 - item_tax_total
13 - original_total
14 - original_subtotal
15 - original_tax_total
16 - total
17 - subtotal
18 - tax_total
19 - discount_total
20 - discount_tax_total
21 - gift_card_total
22 - gift_card_tax_total
23 - shipping_total
24 - shipping_subtotal
25 - shipping_tax_total
26 - original_shipping_total
27 - original_shipping_subtotal
28 - original_shipping_tax_total
29 properties:
30 id:
31 type: string
32 title: id
33 description: The cart's ID.
34 region:
35 $ref: ./BaseRegion.yaml
36 region_id:
37 type: string
38 title: region_id
39 description: The cart's region id.
40 customer_id:
41 type: string
42 title: customer_id
43 description: The cart's customer id.
44 sales_channel_id:
45 type: string
46 title: sales_channel_id
47 description: The cart's sales channel id.
48 email:
49 type: string
50 title: email
51 description: The cart's email.
52 format: email
53 currency_code:
54 type: string
55 title: currency_code
56 description: The cart's currency code.
57 shipping_address:
58 $ref: ./BaseCartAddress.yaml
59 billing_address:
60 $ref: ./BaseCartAddress.yaml
61 items:
62 type: array
63 description: The cart's items.
64 items:
65 type: object
66 shipping_methods:
67 type: array
68 description: The cart's shipping methods.
69 items:
70 $ref: ./BaseCartShippingMethod.yaml
71 payment_collection:
72 $ref: ./BasePaymentCollection.yaml
73 metadata:
74 type: object
75 description: The cart's metadata.
76 externalDocs:
77 url: https://docs.medusajs.com/api/store#manage-metadata
78 description: Learn how to manage metadata
79 created_at:
80 type: string
81 format: date-time
82 title: created_at
83 description: The cart's created at.
84 updated_at:
85 type: string
86 format: date-time
87 title: updated_at
88 description: The cart's updated at.
89 original_item_total:
90 type: number
91 title: original_item_total
92 description: >-
93 The sum of all line items' original totals before discounts, including
94 taxes.
95 original_item_subtotal:
96 type: number
97 title: original_item_subtotal
98 description: >-
99 The sum of all line items' original subtotals before discounts, excluding
100 taxes.
101 original_item_tax_total:
102 type: number
103 title: original_item_tax_total
104 description: The sum of all line items' original tax totals before discounts.
105 item_total:
106 type: number
107 title: item_total
108 description: The sum of all line items' totals after discounts, including taxes.
109 item_subtotal:
110 type: number
111 title: item_subtotal
112 description: The sum of all line items' subtotals before discounts, excluding taxes.
113 item_tax_total:
114 type: number
115 title: item_tax_total
116 description: The sum of all line items' tax totals after discounts.
117 original_total:
118 type: number
119 title: original_total
120 description: >-
121 The cart's total before discounts, including taxes. Calculated as the sum
122 of `original_item_total` and `original_shipping_total`.
123 original_subtotal:
124 type: number
125 title: original_subtotal
126 description: >-
127 The cart's subtotal before discounts, excluding taxes. Calculated as the
128 sum of `original_item_subtotal` and `original_shipping_subtotal`.
129 original_tax_total:
130 type: number
131 title: original_tax_total
132 description: >-
133 The cart's tax total before discounts. Calculated as the sum of
134 `original_item_tax_total` and `original_shipping_tax_total`.
135 total:
136 type: number
137 title: total
138 description: The cart's final total after discounts and credit lines, including taxes.
139 subtotal:
140 type: number
141 title: subtotal
142 description: >-
143 The cart's subtotal before discounts, excluding taxes. Calculated as the
144 sum of `item_subtotal` and `shipping_subtotal`.
145 tax_total:
146 type: number
147 title: tax_total
148 description: >-
149 The cart's tax total after discounts. Calculated as the sum of
150 `item_tax_total` and `shipping_tax_total`.
151 discount_total:
152 type: number
153 title: discount_total
154 description: >-
155 The total amount of discounts applied to the cart, including the tax
156 portion of discounts.
157 discount_tax_total:
158 type: number
159 title: discount_tax_total
160 description: >-
161 The total amount of discounts applied to the cart's tax. Represents the
162 tax portion of discounts.
163 gift_card_total:
164 type: number
165 title: gift_card_total
166 description: The cart's gift card total.
167 gift_card_tax_total:
168 type: number
169 title: gift_card_tax_total
170 description: The cart's gift card tax total.
171 shipping_total:
172 type: number
173 title: shipping_total
174 description: The sum of all shipping methods' totals after discounts, including taxes.
175 shipping_subtotal:
176 type: number
177 title: shipping_subtotal
178 description: >-
179 The sum of all shipping methods' subtotals before discounts, excluding
180 taxes.
181 shipping_tax_total:
182 type: number
183 title: shipping_tax_total
184 description: The sum of all shipping methods' tax totals after discounts.
185 original_shipping_total:
186 type: number
187 title: original_shipping_total
188 description: >-
189 The sum of all shipping methods' original totals before discounts,
190 including taxes.
191 original_shipping_subtotal:
192 type: number
193 title: original_shipping_subtotal
194 description: >-
195 The sum of all shipping methods' original subtotals before discounts,
196 excluding taxes.
197 original_shipping_tax_total:
198 type: number
199 title: original_shipping_tax_total
200 description: The sum of all shipping methods' original tax totals before discounts.
201 completed_at:
202 type: string
203 title: completed_at
204 description: The date the cart was completed.
205 format: date-time