Skip to main content

orders

Get a list of filtered orders. This query allows you to retrieve a list of orders based on various filters.

Filters

FilterDescriptionTypeRequired
brand_idsFilter orders by brand IDs.Array of IntegersNo
keywordSearch orders by keyword.StringNo
start_dateFilter orders created after this date.String (YYYY-MM-DD)No
end_dateFilter orders created before this date.String (YYYY-MM-DD)No
statusFilter orders by status.Array of StringsNo
sales_channel_idsFilter orders by sales channel IDs.Array of IntegersNo
fulfillableFilter orders by fulfillability.BooleanNo
created_by_idFilter orders by the ID of the user who created them.IntegerNo
responsible_idFilter orders by the ID of the responsible user.IntegerNo
sort_fieldField to sort the orders by.StringNo
sort_typeType of sort (ASC or DESC).StringNo

Returns

Returns a list of orders that match the provided filters. Each order includes its associated data.

Errors

  • BrandNotSelectedError: Raised when no brand is specified and the current user is not a super admin.
  • BadRequest: Raised when the provided filters are not valid.
orders(
after: String
before: String
filters: OrderFilterInput
first: Int
last: Int
): OrderConnection

Arguments

orders.after ● String scalar

Returns the elements in the list that come after the specified cursor.

orders.before ● String scalar

Returns the elements in the list that come before the specified cursor.

orders.filters ● OrderFilterInput input

Filtering options for orders.

orders.first ● Int scalar

Returns the first _n_ elements from the list.

orders.last ● Int scalar

Returns the last _n_ elements from the list.

Type

OrderConnection object

The connection type for Order.