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