improvement(shopify): pin Admin API to supported 2025-10 via shared constant#5895
Conversation
…onstant Every Shopify tool and the credential validator hardcoded the retired 2024-10 Admin API version. Retired versions still work (Shopify forward-falls to the oldest supported version) but the served version drifts silently and emits deprecation signals. - Add apps/sim/tools/shopify/constants.ts exporting SHOPIFY_API_VERSION as the single source of truth; bump to the supported 2025-10. - Wire all 21 Shopify tools, the token-service-account validator, and the OAuth store route to the shared constant (no more per-file inline version). - Derive the validator test's expected URL from the constant so it can't drift. Our operations already use modern 2024-10+ shapes (ProductCreateInput / ProductUpdateInput new product model, orderCancel new signature, CustomerInput, InventoryAdjustQuantitiesInput, fulfillmentCreate), none of the removed inline ProductInput.variants pattern — so the bump is a small, explicit step forward from the version Shopify already forward-serves.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview All Shopify GraphQL tools, the token-service-account validator, and the OAuth store route ( Reviewed by Cursor Bugbot for commit 4247286. Configure here. |
Greptile SummaryCentralizes Shopify Admin API versioning and pins all affected integrations to 2025-10.
Confidence Score: 5/5The PR appears safe to merge, with the Shopify API-version centralization consistently applied and no concrete regressions identified. The shared constant is dependency-free, resolves in route, validator, test, and tool build contexts, and all changed request paths preserve their prior host, method, payload, and response behavior while updating only the API version segment. Important Files Changed
Reviews (1): Last reviewed commit: "improvement(shopify): pin Admin API to s..." | Re-trigger Greptile |
Surfaced by /validate-integration: unexported, unused (no set_inventory tool).
Summary
2024-10Admin API version. Retired versions still function (Shopify forward-falls to the oldest supported version) but the served version drifts silently each quarter and emits deprecation signals.apps/sim/tools/shopify/constants.tsexportingSHOPIFY_API_VERSIONas the single source of truth, pinned to the supported2025-10(supported through Oct 2026).Compatibility
Our operations already use modern
2024-10+ shapes —ProductCreateInput/ProductUpdateInput(new product model;variantsis output-only, not the removed inlineProductInput.variants),orderCancelnew signature,CustomerInput,InventoryAdjustQuantitiesInput,fulfillmentCreate. Because2024-10is retired, Shopify already forward-serves us ~2025-07in production today, so this is a small, explicit step from what's effectively already live.Type of Change
Testing
check:api-validationpass.list_productsread post-merge to close the loop.Checklist