Queries
Products
Fields
Retrieve a product
Retrieves the details of a product.
Arguments
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
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
Retrieve a group
Retrieves the details of a group.
Arguments
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
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
Retrieve a bundle
Retrieves the details of a bundle.
Arguments
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
}
}
}
}
}
}
}
}
Last updated