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