-
Notifications
You must be signed in to change notification settings - Fork 377
Open
Description
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2025.7.0
What version of Remix are you using?
React Router 7.9.2
Steps to Reproduce
Attempting to augment the product variant with Shop Pay metadata:
const PRODUCT_VARIANT_FRAGMENT = `#graphql
fragment ProductVariant on ProductVariant {
availableForSale
compareAtPrice {
amount
currencyCode
}
id
image {
__typename
id
url
altText
width
height
}
price {
amount
currencyCode
}
product {
title
handle
}
selectedOptions {
name
value
}
sku
title
unitPrice {
amount
currencyCode
}
shopPayInstallmentsPricing {
available
eligible
fullPrice {
amount
currencyCode
}
pricePerTerm {
amount
currencyCode
}
installmentsCount {
count
precision
}
}
}
` as const;Results in the following error
╭─ error ────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ In Hydrogen's `storefront.query`: │
│ │
│ Access denied for shopPayInstallmentsProductVariantPricing field. Required access: │
│ `unauthenticated_read_shop_pay_installments_pricing` access scope. │
│ Request ID: be2707b0-d88e-4323-bff3-cd010be45632-1767134708 │
│ │
│ To debug the query `Product`, try it in │
│ GraphiQL. │
│ │
│ To investigate the issue, examine this stack trace: │
│ at loadCriticalData (app/routes/catalog.$handle.tsx:167) │
│ at loader (app/routes/catalog.$handle.tsx:81) │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
There's no straightforward way to grant the permission in the Shopify admin:
Expected Behavior
The query should likely work out-of-the-box. Failing that, it should be easy to enable using the administrative interface.
Actual Behavior
The query fails, as described above. In attempting to get this to work, it looks like I might have to manage a second token with manually edited permissions, which is additional complexity and possibly increases the surface area for permissions issues.
Metadata
Metadata
Assignees
Labels
No labels