1 type: object
2 description: A cart's shipping method.
3 x-schemaName: BaseCartShippingMethod
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 $ref: ./BaseShippingMethodTaxLine.yaml
60 adjustments:
61 type: array
62 description: The shipping method's adjustments, such as applied promotions.
63 items:
64 $ref: ./BaseShippingMethodAdjustment.yaml
65 created_at:
66 type: string
67 format: date-time
68 title: created_at
69 description: The date the shipping method was created.
70 updated_at:
71 type: string
72 format: date-time
73 title: updated_at
74 description: The date the shipping method was updated.
75 original_total:
76 type: number
77 title: original_total
78 description: The shipping method's original total before discounts, including taxes.
79 original_subtotal:
80 type: number
81 title: original_subtotal
82 description: The shipping method's original subtotal before discounts, excluding taxes.
83 original_tax_total:
84 type: number
85 title: original_tax_total
86 description: The shipping method's original tax total before discounts.
87 total:
88 type: number
89 title: total
90 description: The shipping method's total after discounts, including taxes.
91 subtotal:
92 type: number
93 title: subtotal
94 description: The shipping method's subtotal before discounts, excluding taxes.
95 tax_total:
96 type: number
97 title: tax_total
98 description: The shipping method's tax total after discounts.
99 discount_total:
100 type: number
101 title: discount_total
102 description: >-
103 The total amount of discounts applied to the shipping method, including
104 the tax portion of discounts.
105 discount_tax_total:
106 type: number
107 title: discount_tax_total
108 description: >-
109 The total amount of discounts applied to the shipping method's tax.
110 Represents the tax portion of discounts.