|
1
|
type: object |
|
2
|
description: The shipping option's details. |
|
3
|
x-schemaName: StoreShippingOption |
|
4
|
required: |
|
5
|
- id |
|
6
|
- name |
|
7
|
- price_type |
|
8
|
- service_zone_id |
|
9
|
- provider_id |
|
10
|
- provider |
|
11
|
- shipping_option_type_id |
|
12
|
- type |
|
13
|
- shipping_profile_id |
|
14
|
- amount |
|
15
|
- is_tax_inclusive |
|
16
|
- data |
|
17
|
- metadata |
|
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
|
$ref: ./BaseFulfillmentProvider.yaml |
|
46
|
shipping_option_type_id: |
|
47
|
type: string |
|
48
|
title: shipping_option_type_id |
|
49
|
description: The ID of the shipping option's type. |
|
50
|
type: |
|
51
|
$ref: ./StoreShippingOptionType.yaml |
|
52
|
shipping_profile_id: |
|
53
|
type: string |
|
54
|
title: shipping_profile_id |
|
55
|
description: The ID of the associated shipping profile. |
|
56
|
amount: |
|
57
|
type: number |
|
58
|
title: amount |
|
59
|
description: >- |
|
60
|
The shipping option's amount. For a shipping option whose `price_type` is |
|
61
|
`calculated`, this amount isn't reliable until it's computed by the |
|
62
|
fulfillment provider using the [Calculate Shipping Option Price API |
|
63
|
route](https://docs.medusajs.com/api/store#shipping-options_postshippingoptionsidcalculate). |
|
64
|
is_tax_inclusive: |
|
65
|
type: boolean |
|
66
|
title: is_tax_inclusive |
|
67
|
description: Whether the amount includes taxes. |
|
68
|
data: |
|
69
|
type: object |
|
70
|
description: The shipping option's data, useful for the provider handling fulfillment. |
|
71
|
externalDocs: |
|
72
|
url: >- |
|
73
|
https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property |
|
74
|
metadata: |
|
75
|
type: object |
|
76
|
description: The shipping option's metadata, can hold custom key-value pairs. |
|
77
|
externalDocs: |
|
78
|
url: https://docs.medusajs.com/api/store#manage-metadata |
|
79
|
description: Learn how to manage metadata |