Comment on page

Queries

Products

Fields

Field
Type
id
Unique identifier for the object
String!
handle
A unique human-friendly string of the product's title.
String!
data
Synced product data.
ProductData
group
The group the product belongs to.
Group
bundles
The bundles the product is in.
[Bundle]!
variants
A list of variants associated with the product.
[ProductVariant]!

Retrieve a product

Retrieves the details of a product.

Arguments

Argument
Type
id
The unique identifier for the product.
String!
curl -X POST \
-H "Authorization: Bearer <Replace this with your API Key>" \
-H "Content-Type: application/json" \
-d '{"query": "{ product(id:\"<Your product id>\") { id handle } }" }' \
https://app.packdigital.com/graphql
query {
product(id: "<Your product id>") {
id
handle
data {
description
descriptionHtml
productType
title
tags
createdAt
updatedAt
publishedAt
vendor
seo {
description
title
}
options {
id
name
position
values
}
priceRangeV2 {
maxVariantPrice {
amount
currencyCode
}
minVariantPrice {
amount
currencyCode
}
}
images {
id
originalSrc
altText
height
width
}
}
}
}

List all products

Returns a list of products

Arguments

Argument
Type
after
Returns the elements that come after the specified cursor.
String
before
Returns the elements that come before the specified cursor.
String
first
Returns up to the first n elements from the list. Default is 50.
Int
last
Returns up to the last n elements from the list.
Int
curl -X POST \
-H "Authorization: Bearer <Replace this with your API Key>" \
-H "Content-Type: application/json" \
-d '{"query": "{ products { edges { node { id handle } } } }" }' \
https://app.packdigital.com/graphql
query {
products {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
edges {
node {
id
handle
data {
description
descriptionHtml
productType
title
tags
createdAt
updatedAt
publishedAt
vendor
seo {
description
title
}
options {
id
name
position
values
}
priceRangeV2 {
maxVariantPrice {
amount
currencyCode
}
minVariantPrice {
amount
currencyCode
}
}
images {
id
originalSrc
altText
height
width
}
}
}
}
}
}

Groups

Fields

Field
Type
id
Unique identifier for the object.
String!
title
Title of the group.
String!
description
Description of the group.
String
products
Products in the group.
[Product!]!
subgroups
Subgroups in the group.
[Group]!
created_at
The date and time when the group was created.
DateTime
updated_at
The date and time when the group was last modified.
DateTime

Retrieve a group

Retrieves the details of a group.

Arguments

Argument
Type
id
The unique identifier for the group.
String
curl -X POST \
-H "Authorization: Bearer <Replace this with your API Key>" \
-H "Content-Type: application/json" \
-d '{"query": "{ group(id: \"<Your group id>\") { id title } }" }' \
https://app.packdigital.com/graphql
query {
group(id: "<Your group id>") {
id
title
description
products {
id
handle
}
subgroups {
id
title
description
products {
id
handle
}
}
}
}

List all groups

Returns a list of groups.

Arguments

Argument
Type
after
Returns the elements that come after the specified cursor.
String
before
Returns the elements that come before the specified cursor.
String
first
Returns up to the first n elements from the list. Default is 50.
Int
last
Returns up to the last n elements from the list.
Int
curl -X POST \
-H "Authorization: Bearer <Replace this with your API Key>" \
-H "Content-Type: application/json" \
-d '{"query": "{ groups { edges { node { id title } } } }" }' \
https://app.packdigital.com/graphql
query {
groups {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
edges {
node {
id
title
description
products {
id
handle
}
subgroups {
id
title
description
products {
id
handle
}
}
}
}
}
}

Bundles

Fields

Field
Type
id
Unique identifier for the object.
String!
title
Title of the bundle.
String!
description
Description of the bundle.
String
items
List of bundle items, each with an attached product
[BundleItem]!
created_at
The date and time when the bundle was created.
DateTime
updated_at
The date and time when the bundle was last modified.
DateTime

Retrieve a bundle

Retrieves the details of a bundle.

Arguments

Argument
Type
id
The unique identifier for the bundle.
String
curl -X POST \
-H "Authorization: Bearer <Replace this with your API Key>" \
-H "Content-Type: application/json" \
-d '{"query": "{ bundle(id: \"<Your bundle id>\") { id title } }" }' \
https://app.packdigital.com/graphql
query {
bundle(id: "<Your bundle id>") {
id
title
description
items {
edges {
node {
id
quantity
product {
id
handle
}
}
}
}
}
}

List all bundles

Returns a list of bundles.
curl -X POST \
-H "Authorization: Bearer <Replace this with your API Key>" \
-H "Content-Type: application/json" \
-d '{"query": "{ bundles { edges { node { id title } } } }" }' \
https://app.packdigital.com/graphql
query {
bundles {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
edges {
node {
id
title
description
items {
edges {
node {
id
quantity
product {
id
handle
}
}
}
}
}
}
}
}