Admin API / Queries
orders
Orders of every seller in the marketplace. Requires the ADMIN role or higher. Omits orders whose checkout did not complete: unconfirmed orders, and cancelled buy-now and cart orders (see includeCancelled). Keeps orders awaiting payment. sellerNote and buyerContact keep their acting-set rules on each node. Defaults to CREATED_AT descending; ties sort by ID. A cursor marks a position in the sort. An order whose sort key changes between pages can move across it. The list has no row limit.
Requires a client key with one of these scopes:
admin:orders:readRequires this member role or higher: ADMINorders(
after: String
first: Int
includeCancelled: Boolean! = false
query: String
sort: OrderSortInput
where: OrderWhereInput
): OrderConnection!Arguments
| Argument | Type | Description |
|---|---|---|
after | String | Return orders after this cursor. A cursor continues only the sort that issued it. |
first | Int | Maximum number of orders to return. Defaults to 20, at most 100 (10,000 for Soho). |
includeCancelled | Boolean! | With true, also returns the cancelled orders with checkoutType BUY_NOW or CART that the list omits by default, if the order was confirmed (awaiting payment) before the cancel. Unconfirmed orders stay out, also when they are cancelled. Some earlier orders have no record of their confirmation: they stay out when they are cancelled. A caller below SELLER gets only the orders with open obligations, as without the argument. Default: false. |
query | String | Case-insensitive text anywhere in the receipt code, the buyer or seller username or name, or an item title. With the admin:contactDetails:read scope and the OWNER role, also matches the ship-to street and city. Does not match the order ID. A blank value matches every order. |
sort | OrderSortInput | Sort order. Defaults to CREATED_AT descending. |
where | OrderWhereInput | Filters to narrow the list. |