Files
medusa-store/docs/api/admin/components/schemas/AdminPostOrdersOrderReq.yaml
2023-04-04 21:02:44 +03:00

64 lines
1.6 KiB
YAML

type: object
properties:
email:
description: the email for the order
type: string
billing_address:
description: Billing address
$ref: ./AddressPayload.yaml
shipping_address:
description: Shipping address
$ref: ./AddressPayload.yaml
items:
description: The Line Items for the order
type: array
items:
$ref: ./LineItem.yaml
region:
description: ID of the region where the order belongs
type: string
discounts:
description: Discounts applied to the order
type: array
items:
$ref: ./Discount.yaml
customer_id:
description: ID of the customer
type: string
payment_method:
description: payment method chosen for the order
type: object
properties:
provider_id:
type: string
description: ID of the payment provider
data:
description: Data relevant for the given payment method
type: object
shipping_method:
description: The Shipping Method used for shipping the order.
type: object
properties:
provider_id:
type: string
description: The ID of the shipping provider.
profile_id:
type: string
description: The ID of the shipping profile.
price:
type: integer
description: The price of the shipping.
data:
type: object
description: Data relevant to the specific shipping method.
items:
type: array
items:
$ref: ./LineItem.yaml
description: Items to ship
no_notification:
description: >-
A flag to indicate if no notifications should be emitted related to the
updated order.
type: boolean