Files
medusa-store/www/apps/api-reference/specs/admin/components/schemas/AdminPostOrdersOrderReq.yaml
2023-11-10 14:27:17 +02:00

64 lines
1.7 KiB
YAML

type: object
properties:
email:
description: The email associated with the order
type: string
billing_address:
description: The order's billing address
$ref: ./AddressPayload.yaml
shipping_address:
description: The order's shipping address
$ref: ./AddressPayload.yaml
items:
description: The line items of the order
type: array
items:
$ref: ./LineItem.yaml
region:
description: ID of the region that the order is associated with.
type: string
discounts:
description: The discounts applied to the order
type: array
items:
$ref: ./Discount.yaml
customer_id:
description: The ID of the customer associated with the order.
type: string
payment_method:
description: The payment method chosen for the order.
type: object
properties:
provider_id:
type: string
description: The ID of the payment provider.
data:
description: Any 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: Any data relevant to the specific shipping method.
items:
type: array
items:
$ref: ./LineItem.yaml
description: Items to ship
no_notification:
description: >-
If set to `true`, no notification will be sent to the customer related to
this order.
type: boolean