Files
medusa-store/docs/api/admin/components/schemas/AdminPostShippingOptionsOptionReq.yaml
2022-12-22 17:09:49 +02:00

42 lines
1.1 KiB
YAML

type: object
required:
- requirements
properties:
name:
description: The name of the Shipping Option
type: string
amount:
description: The amount to charge for the Shipping Option.
type: integer
admin_only:
description: If true, the option can be used for draft orders
type: boolean
metadata:
description: An optional set of key-value pairs with additional information.
type: object
requirements:
description: >-
The requirements that must be satisfied for the Shipping Option to be
available.
type: array
items:
required:
- type
- amount
properties:
id:
description: The ID of the requirement
type: string
type:
description: The type of the requirement
type: string
enum:
- max_subtotal
- min_subtotal
amount:
description: The amount to compare with.
type: integer
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of shipping option'
type: boolean