Raw
1 type: object
2 description: The shipping option's details.
3 x-schemaName: StoreCartShippingOption
4 required:
5 - id
6 - name
7 - price_type
8 - service_zone_id
9 - shipping_profile_id
10 - provider_id
11 - data
12 - type
13 - provider
14 - amount
15 - prices
16 - calculated_price
17 - insufficient_inventory
18 properties:
19 id:
20 type: string
21 title: id
22 description: The shipping option's ID.
23 name:
24 type: string
25 title: name
26 description: The shipping option's name.
27 price_type:
28 type: string
29 description: >-
30 The shipping option's price type. If it's `flat`, the price is fixed and
31 is set in the `prices` property. If it's `calculated`, the price is
32 calculated on checkout by the associated fulfillment provider.
33 enum:
34 - flat
35 - calculated
36 service_zone_id:
37 type: string
38 title: service_zone_id
39 description: The ID of the service zone the shipping option belongs to.
40 provider_id:
41 type: string
42 title: provider_id
43 description: The ID of the fulfillment provider handling this option.
44 provider:
45 type: object
46 description: The fulfillment provider's details.
47 required:
48 - id
49 - is_enabled
50 properties:
51 id:
52 type: string
53 title: id
54 description: The provider's ID.
55 is_enabled:
56 type: boolean
57 title: is_enabled
58 description: Whether the provider is enabled.
59 type:
60 type: object
61 description: The shipping option type's details.
62 required:
63 - id
64 - label
65 - description
66 - code
67 properties:
68 id:
69 type: string
70 title: id
71 description: The type's ID.
72 label:
73 type: string
74 title: label
75 description: The type's label.
76 description:
77 type: string
78 title: description
79 description: The type's description.
80 code:
81 type: string
82 title: code
83 description: The type's code.
84 shipping_profile_id:
85 type: string
86 title: shipping_profile_id
87 description: The ID of the associated shipping profile.
88 amount:
89 type: number
90 title: amount
91 description: >-
92 The shipping option's amount for the cart. For a shipping option whose
93 `price_type` is `calculated`, this amount is computed on the fly by the
94 fulfillment provider against the cart.
95 data:
96 type: object
97 description: The shipping option's data, useful for the provider handling fulfillment.
98 externalDocs:
99 url: >-
100 https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
101 prices:
102 type: array
103 description: The shipping option's prices.
104 items:
105 $ref: ./StorePrice.yaml
106 calculated_price:
107 $ref: ./StoreCalculatedPrice.yaml
108 insufficient_inventory:
109 type: boolean
110 title: insufficient_inventory
111 description: >-
112 Whether the shipping option's location doesn't have sufficient quantity
113 for any of the cart's items.