Raw
1 type: object
2 description: The calculated shipping option's details.
3 x-schemaName: AdminCreateCalculatedShippingOption
4 required:
5 - price_type
6 - name
7 - service_zone_id
8 - shipping_profile_id
9 - provider_id
10 properties:
11 price_type:
12 type: string
13 title: price_type
14 description: The calculated shipping option's price type.
15 enum:
16 - calculated
17 - flat
18 name:
19 type: string
20 title: name
21 description: The calculated shipping option's name.
22 service_zone_id:
23 type: string
24 title: service_zone_id
25 description: The ID of the associated service zone.
26 shipping_profile_id:
27 type: string
28 title: shipping_profile_id
29 description: The ID of the associated shipping profile.
30 data:
31 type: object
32 description: The calculated shipping option's data.
33 externalDocs:
34 url: >-
35 https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
36 provider_id:
37 type: string
38 title: provider_id
39 description: >-
40 The ID of the fulfillment provider handling this calculated shipping
41 option.
42 type:
43 $ref: ./AdminCreateShippingOptionType.yaml
44 type_id:
45 type: string
46 title: type_id
47 description: The ID of the shipping option type that this shipping option belongs to.
48 rules:
49 type: array
50 description: The calculated shipping option's rules.
51 items:
52 $ref: ./AdminCreateShippingOptionRule.yaml
53 metadata:
54 type: object
55 description: The shipping option's metadata, can hold custom key-value pairs.