title: "Queries" weight: 1 date: 2023-06-21T06:23:30.799Z showtoc: true
The active Channel
{{% gql-fields %}}
The active Customer
{{% gql-fields %}}
The active Order. Will be null until an Order is created via addItemToOrder. Once an Order reaches the
state of PaymentAuthorized or PaymentSettled, then that Order is no longer considered "active" and this
query will once again return null.
{{% gql-fields %}}
An array of supported Countries
{{% gql-fields %}}
Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result.
{{% gql-fields %}}
A list of Collections available to the shop
{{% gql-fields %}}
Returns a list of payment methods and their eligibility based on the current active Order
{{% gql-fields %}}
Returns a list of eligible shipping methods based on the current active Order
{{% gql-fields %}}
Returns a Facet by its id
{{% gql-fields %}}
A list of Facets available to the shop
{{% gql-fields %}}
Returns information about the current authenticated User
{{% gql-fields %}}
Returns the possible next states that the activeOrder can transition to
{{% gql-fields %}}
Returns an Order based on the id. Note that in the Shop API, only orders belonging to the currently-authenticated User may be queried.
{{% gql-fields %}}
Returns an Order based on the order code. For guest Orders (i.e. Orders placed by non-authenticated Customers)
this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation
screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing
general anonymous access to Order data.
{{% gql-fields %}}
Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result.
{{% gql-fields %}}
Get a list of Products
{{% gql-fields %}}
Search Products based on the criteria set by the SearchInput
{{% gql-fields %}}