1 type: object
2 description: A cart's shipping method.
3 x-schemaName: StoreCartShippingMethod
4 required:
5 - id
6 - cart_id
7 - name
8 - amount
9 - is_tax_inclusive
10 - created_at
11 - updated_at
12 properties:
13 id:
14 type: string
15 title: id
16 description: The shipping method's ID.
17 cart_id:
18 type: string
19 title: cart_id
20 description: The ID of the cart this shipping method belongs to.
21 name:
22 type: string
23 title: name
24 description: The shipping method's name.
25 description:
26 type: string
27 title: description
28 description: The shipping method's description.
29 amount:
30 type: number
31 title: amount
32 description: The shipping method's amount.
33 is_tax_inclusive:
34 type: boolean
35 title: is_tax_inclusive
36 description: Whether the shipping method's amount is tax inclusive.
37 shipping_option_id:
38 type: string
39 title: shipping_option_id
40 description: The ID of the shipping option this method was created from.
41 data:
42 type: object
43 description: >-
44 The shipping method's data, useful for fulfillment handling by third-party
45 services.
46 externalDocs:
47 url: >-
48 https://docs.medusajs.com/resources/commerce-modules/cart/concepts#data-property
49 metadata:
50 type: object
51 description: The shipping method's metadata, can hold custom key-value pairs.
52 externalDocs:
53 url: https://docs.medusajs.com/api/store#manage-metadata
54 description: Learn how to manage metadata
55 tax_lines:
56 type: array
57 description: The shipping method's tax lines.
58 items:
59 allOf:
60 - $ref: ./BaseShippingMethodTaxLine.yaml
61 - type: object
62 description: The tax line's details.
63 required:
64 - shipping_method
65 properties:
66 shipping_method:
67 type: object
68 title: shipping_method
69 description: The details of the method that the tax line belongs to.
70 description: The tax line's details.
71 adjustments:
72 type: array
73 description: The shipping method's adjustments, such as applied promotions.
74 items:
75 allOf:
76 - $ref: ./BaseShippingMethodAdjustment.yaml
77 - type: object
78 description: The adjustment's details.
79 required:
80 - shipping_method
81 properties:
82 shipping_method:
83 type: object
84 title: shipping_method
85 description: The details of the method that the adjustment belongs to.
86 description: The adjustment's details.
87 created_at:
88 type: string
89 format: date-time
90 title: created_at
91 description: The date the shipping method was created.
92 updated_at:
93 type: string
94 format: date-time
95 title: updated_at
96 description: The date the shipping method was updated.
97 original_total:
98 type: number
99 title: original_total
100 description: >-
101 The shipping method's original total before discounts, including taxes.
102 This field is only available if you expand the `shipping_methods.*`
103 relation. Learn more in the [Cart
104 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
105 guide.
106 original_subtotal:
107 type: number
108 title: original_subtotal
109 description: >-
110 The shipping method's original subtotal before discounts, excluding taxes.
111 This field is only available if you expand the `shipping_methods.*`
112 relation. Learn more in the [Cart
113 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
114 guide.
115 original_tax_total:
116 type: number
117 title: original_tax_total
118 description: >-
119 The shipping method's original tax total before discounts. This field is
120 only available if you expand the `shipping_methods.*` relation. Learn more
121 in the [Cart
122 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
123 guide.
124 total:
125 type: number
126 title: total
127 description: >-
128 The shipping method's total after discounts, including taxes. This field
129 is only available if you expand the `shipping_methods.*` relation. Learn
130 more in the [Cart
131 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
132 guide.
133 subtotal:
134 type: number
135 title: subtotal
136 description: >-
137 The shipping method's subtotal before discounts, excluding taxes. This
138 field is only available if you expand the `shipping_methods.*` relation.
139 Learn more in the [Cart
140 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
141 guide.
142 tax_total:
143 type: number
144 title: tax_total
145 description: >-
146 The shipping method's tax total after discounts. This field is only
147 available if you expand the `shipping_methods.*` relation. Learn more in
148 the [Cart
149 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
150 guide.
151 discount_total:
152 type: number
153 title: discount_total
154 description: >-
155 The total amount of discounts applied to the shipping method, including
156 the tax portion of discounts. This field is only available if you expand
157 the `shipping_methods.*` relation. Learn more in the [Cart
158 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
159 guide.
160 discount_tax_total:
161 type: number
162 title: discount_tax_total
163 description: >-
164 The total amount of discounts applied to the shipping method's tax.
165 Represents the tax portion of discounts. This field is only available if
166 you expand the `shipping_methods.*` relation. Learn more in the [Cart
167 Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals)
168 guide.