- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Order - Order Module Data Models Reference
This documentation provides a reference to the Order data model. It belongs to the Order Module.
id
PrimaryKeyModifier<IdProperty>The ID of the order.
display_id
AutoIncrementPropertyThe display ID of the order
version
NumberPropertyThe version of the order
status
EnumProperty<typeof OrderStatus>The status of the order
is_draft_order
BooleanPropertyWhether the order is a draft order.
currency_code
TextPropertyThe currency code of the order.
@example usd
summary
HasMany<any>The associated summary.
items
HasMany<any>The associated items.
shipping_methods
HasMany<any>The associated shipping methods.
transactions
HasMany<any>The associated transactions, which include amounts captured and refunded.
credit_lines
HasMany<any>The associated credit lines, which include additional payment amounts for an order.
returns
HasMany<any>The associated returns.
region_id
TextPropertyOptionalThe ID of the region that the order was purchased in.
customer_id
TextPropertyOptionalThe ID of the customer that placed the order.
sales_channel_id
TextPropertyOptionalThe ID of the sales channel that the order was purchased through.
email
TextPropertyOptionalThe email of the order's customer
no_notification
BooleanPropertyOptionalWhether the customer should receive notifications for order updates.
metadata
JSONPropertyOptionalHolds custom data in key-value pairs.
canceled_at
DateTimePropertyOptionalThe date the order was canceled.
shipping_address
HasOneWithForeignKey<any, undefined>OptionalThe associated shipping_address.
billing_address
HasOneWithForeignKey<any, undefined>OptionalThe associated billing address.
Was this page helpful?