Raw
1 type: object
2 description: The shipping option's details.
3 x-schemaName: AdminShippingOption
4 required:
5 - id
6 - name
7 - price_type
8 - service_zone_id
9 - service_zone
10 - provider_id
11 - provider
12 - shipping_option_type_id
13 - type
14 - shipping_profile_id
15 - shipping_profile
16 - rules
17 - prices
18 - data
19 - metadata
20 - created_at
21 - updated_at
22 - deleted_at
23 properties:
24 id:
25 type: string
26 title: id
27 description: The shipping option's ID.
28 name:
29 type: string
30 title: name
31 description: The shipping option's name.
32 price_type:
33 type: string
34 description: >-
35 The shipping option's price type. If it's `flat`, the price is fixed and
36 is set in the `prices` property. If it's `calculated`, the price is
37 calculated on checkout by the associated fulfillment provider.
38 enum:
39 - calculated
40 - flat
41 service_zone_id:
42 type: string
43 title: service_zone_id
44 description: The ID of the service zone this option belongs to.
45 service_zone:
46 type: object
47 provider_id:
48 type: string
49 title: provider_id
50 description: >-
51 The ID of the provider handling fulfillments created from this shipping
52 option.
53 provider:
54 $ref: ./AdminFulfillmentProvider.yaml
55 shipping_option_type_id:
56 type: string
57 title: shipping_option_type_id
58 description: The ID of the associated shipping option type.
59 type:
60 $ref: ./AdminShippingOptionType.yaml
61 shipping_profile_id:
62 type: string
63 title: shipping_profile_id
64 description: The ID of the associated shipping profile.
65 shipping_profile:
66 $ref: ./AdminShippingProfile.yaml
67 rules:
68 type: array
69 description: The shipping option's rules.
70 items:
71 $ref: ./AdminShippingOptionRule.yaml
72 prices:
73 type: array
74 description: >-
75 The shipping option's prices. If the `price_type` is `calculated`, this
76 array will be empty since the price is calculated by the fulfillment
77 provider during checkout.
78 items:
79 $ref: ./AdminShippingOptionPrice.yaml
80 data:
81 type: object
82 description: >-
83 The shipping option's data, useful for the fulfillment provider handling
84 fulfillments created from this option.
85 externalDocs:
86 url: >-
87 https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
88 metadata:
89 type: object
90 description: The shipping option's metadata, can hold custom key-value pairs.
91 externalDocs:
92 url: https://docs.medusajs.com/api/admin#manage-metadata
93 description: Learn how to manage metadata
94 created_at:
95 type: string
96 format: date-time
97 title: created_at
98 description: The date the shipping option was created.
99 updated_at:
100 type: string
101 format: date-time
102 title: updated_at
103 description: The date the shipping option was updated.
104 deleted_at:
105 type: string
106 format: date-time
107 title: deleted_at
108 description: The date the shipping option was deleted.