1 type: object
2 description: The shipping method's details.
3 x-schemaName: StoreOrderShippingMethod
4 required:
5 - id
6 - order_id
7 - name
8 - amount
9 - is_tax_inclusive
10 - shipping_option_id
11 - data
12 - metadata
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 - created_at
22 - updated_at
23 properties:
24 tax_lines:
25 type: array
26 description: The shipping method's tax lines.
27 items:
28 allOf:
29 - $ref: ./BaseOrderShippingMethodTaxLine.yaml
30 - type: object
31 description: The tax line's details.
32 required:
33 - shipping_method
34 properties:
35 shipping_method:
36 type: object
37 adjustments:
38 type: array
39 description: The shipping method's adjustments.
40 items:
41 allOf:
42 - $ref: ./BaseOrderShippingMethodAdjustment.yaml
43 - type: object
44 description: The adjustment's details.
45 required:
46 - shipping_method
47 properties:
48 shipping_method:
49 type: object
50 detail:
51 allOf:
52 - $ref: ./BaseOrderShippingDetail.yaml
53 - type: object
54 description: The shipping method's detail.
55 required:
56 - shipping_method
57 properties:
58 shipping_method:
59 type: object
60 id:
61 type: string
62 title: id
63 description: The shipping method's ID.
64 order_id:
65 type: string
66 title: order_id
67 description: The ID of the order the shipping method belongs to.
68 name:
69 type: string
70 title: name
71 description: The shipping method's name.
72 description:
73 type: string
74 title: description
75 description: The shipping method's description.
76 amount:
77 type: number
78 title: amount
79 description: The shipping method's amount.
80 is_tax_inclusive:
81 type: boolean
82 title: is_tax_inclusive
83 description: Whether the shipping method's amount includes applied taxes.
84 shipping_option_id:
85 type: string
86 title: shipping_option_id
87 description: The ID of the shipping option this method was created from.
88 data:
89 type: object
90 description: >-
91 The shipping method's data, useful for fulfillment provider handling its
92 fulfillment.
93 externalDocs:
94 url: >-
95 https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
96 metadata:
97 type: object
98 description: The shipping method's metadata, can hold custom key-value pairs.
99 externalDocs:
100 url: https://docs.medusajs.com/api/store#manage-metadata
101 description: Learn how to manage metadata
102 original_total:
103 type: number
104 title: original_total
105 description: The shipping method's total including taxes, excluding promotions.
106 original_subtotal:
107 type: number
108 title: original_subtotal
109 description: The shipping method's total excluding taxes, including promotions.
110 original_tax_total:
111 type: number
112 title: original_tax_total
113 description: The shipping method's total taxes excluding promotions.
114 total:
115 type: number
116 title: total
117 description: The shipping method's total including taxes and promotions.
118 subtotal:
119 type: number
120 title: subtotal
121 description: The shipping method's total excluding taxes, including promotions.
122 tax_total:
123 type: number
124 title: tax_total
125 description: The shipping method's tax total including promotions.
126 discount_total:
127 type: number
128 title: discount_total
129 description: The total discounts applied on the shipping method.
130 discount_tax_total:
131 type: number
132 title: discount_tax_total
133 description: The taxes applied on the discount amount.
134 created_at:
135 type: string
136 format: date-time
137 title: created_at
138 description: The date the shipping method was created.
139 updated_at:
140 type: string
141 format: date-time
142 title: updated_at
143 description: The date the shipping method was updated.