Skip to main content

Queries

See Types for further information regarding complex objects specified in any of our interfaces.

customers​

Returns the customers corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String!]!A list of customer IDs.

Output​

TypeDescription
[Customer]The customers corresponding to the provided IDs.

Example​

{
customers(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
emailAddress
firstName
lastName
}
}

globalPropertyConfigurations​

Returns the global property configurations corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]!A list of global property configuration IDs.

Output​

TypeDescription
[GlobalPropertyConfiguration]The global property configurations corresponding to the provided IDs.

Example​

{
globalPropertyConfigurations(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
aspects {
name
type
}
}
}

globalPropertyConfigurationsFeed​

Returns a feed object that contains global property configurations.

Output​

TypeDescription
GlobalPropertyConfigurationsFeedThe feed object.

Example​

{
globalPropertyConfigurationsFeed {
items {
id
aspects {
name
type
}
}
}
}

globalPropertyState​

Returns the global property state corresponding to the given ID of an object with shared state.

Arguments​

NameTypeDescription
bundleIdGlobalPropertyStateID of a bundle.

Output​

TypeDescription
GlobalPropertyStateThe corresponding global property state.

Example​

{
globalPropertyState(bundleId: "00000000-0000-0000-0000-000000000000") {
id
aspects {
name
value
}
}
}

integrations​

Returns the integrations corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String!]!A list of integration IDs.

Output​

TypeDescription
[Integration]The integrations corresponding to the provided IDs.

Example​

{
integrations(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
type
enabled
}
}

metafieldConfigurationsFeed​

Returns the metafield configurations corresponding to the given entity type.

Arguments​

NameTypeDescription
entityTypeString!The type of entity to get metafields for. Supported types: Asset, Integration, Product, Variant, Workflow, WorkflowStep

Output​

TypeDescription
MetafieldConfigurationsFeedThe metafield configurations corresponding to the given entity type.

Example​

{
metafieldConfigurationsFeed(entityType: "Asset") {
items {
id
}
}
}

metafields​

Returns the metafields belonging to the given entity.

Arguments​

NameTypeDescription
entityIdString!The ID of the entity to get metafields for.
note

IDs for entities of type WorkflowStep must be formed by combining the ID of the workflow and the step name with an underscore, e.g. for a step aaaabbbb-aaaa-aaaa-aaaa-aaaabbbbcccc inside workflow ddddeeee-dddd-dddd-dddd-ddddeeeeffff the entity ID would be ddddeeee-dddd-dddd-dddd-ddddeeeeffff_aaaabbbb-aaaa-aaaa-aaaa-aaaabbbbcccc.

Output​

TypeDescription
[Metafield]The metafields belonging to the given entity.

Example​

{
metafields(entityId: "00000000-0000-0000-0000-000000000000") {
id
}
}

orders​

Returns the orders corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]A list of order IDs.

Output​

TypeDescription
[Order]The orders corresponding to the provided IDs.

Example​

{
orders(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
createdAt
externalId
lineItems {
id
}
}
}

orderStatusesFeed​

Returns a feed of the authenticated partner's order statuses.

Output​

TypeDescription
OrderStatusesFeedThe feed for the authenticated partner.

Example​

{
orderStatusesFeed {
items {
id
name
}
total
}
}

outputData​

Returns the output data corresponding to the given transaction IDs.

Arguments​

NameTypeDescription
transactionIds[String]A list of transaction IDs.

Output​

TypeDescription
[OutputData]The output data corresponding to the provided IDs.

Example​

{
outputData(transactionIds: ["00000000-0000-0000-0000-000000000000"]) {
transactionId
sku
variantSelection {
stepTitle
variantName
}
}
}

processExecutions​

Returns the flows in flight corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]!A list of IDs of flows in flight.

Output​

TypeDescription
[ProcessExecution]The corresponding flows in flight.

Example​

{
processExecutions(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
createdAt
}
}

processExecutionsFeed​

Returns a feed object that contains flows in flight matching the given criteria.

Arguments​

NameTypeDescription
endDateString!The latest date that a returned item may have been created.
limitInt!The maximum amount of items to return.
offsetInt!The amount of pages by which to offset the returned items.
startDateString!The earliest date that a returned item may have been created.

Output​

TypeDescription
ProcessExecutionsFeedThe corresponding feed object.

Example​

{
processExecutionsFeed(limit: 10, offset: 0, startDate: "2023-01-01", endDate: "2023-01-31") {
items {
id
createdAt
}
total
}
}

processFlowContexts​

Returns the flow contexts corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]A list of IDs of flow contexts.

Output​

TypeDescription
[ProcessFlow]The corresponding flow contexts.

Example​

{
processFlowContexts(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
name
description
}
}

processFlowContextsFeed​

Returns a feed object that contains flow contexts.

Output​

TypeDescription
ProcessFlowContextsFeedThe feed object.

Example​

{
processFlowContextsFeed {
items {
id
name
description
}
}
}

processFlows​

Returns the flows corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]!A list of IDs of flows.

Output​

TypeDescription
[ProcessFlow]The corresponding flows.

Example​

{
processFlows(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
name
}
}

processFlowsFeed​

Returns a feed object that contains flows matching the given criteria.

Arguments​

NameTypeDescription
limitInt!The maximum amount of items to return.
offsetInt!The amount of pages by which to offset the returned items.
processFlowContextIdStringAn optional flow context ID to filter by.

Output​

TypeDescription
ProcessFlowsFeedThe corresponding feed object.

Example​

{
processFlowsFeed(limit: 10, offset: 0) {
items {
id
name
}
total
}
}

products​

Returns the products corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]A list of product IDs.

Output​

TypeDescription
[Product]The products corresponding to the provided IDs.

Example​

{
products(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
name
profanities {
word
}
}
}

tags​

Returns the tags belonging to the given entity.

Arguments​

NameTypeDescription
entityIdString!The ID of the entity to get tags for.
note

IDs for entities of type WorkflowStep must be formed by combining the ID of the workflow and the step name with an underscore, e.g. for a step aaaabbbb-aaaa-aaaa-aaaa-aaaabbbbcccc inside workflow ddddeeee-dddd-dddd-dddd-ddddeeeeffff the entity ID would be ddddeeee-dddd-dddd-dddd-ddddeeeeffff_aaaabbbb-aaaa-aaaa-aaaa-aaaabbbbcccc.

Output​

TypeDescription
[Tag]The tags belonging to the entity.

Example​

{
tags(id: "00000000-0000-0000-0000-000000000000") {
id
}
}

tagsFeed​

Returns all existing tags for the given type of entity.

Arguments​

NameTypeDescription
entityTypeString!The type of entity to get tags for. Supported types: Asset, Integration, Product, Variant, Workflow, WorkflowStep

Output​

TypeDescription
TagsFeedThe tags corresponding to the given entity type.

Example​

{
tagsFeed(entityType: "Asset") {
items {
id
}
}
}

transactions​

Returns the transactions corresponding to the given IDs.

Arguments​

NameTypeDescription
ids[String]A list of transaction IDs.

Output​

TypeDescription
[Transaction]The transactions corresponding to the provided IDs.

Example​

{
transactions(ids: ["00000000-0000-0000-0000-000000000000"]) {
id
createdAt
isOrdered
}
}