762 questions
Tooling
0
votes
0
replies
60
views
How to add a weight-based extra charge to Shopify shipping rates?
Add charge to shipping rate based on weight in Shopify
I want to add an extra charge to the shipping rate based on cart weight.
If the total cart weight exceeds 1 kg, I want to add an additional 20 tk ...
0
votes
0
answers
37
views
Shopify store front api Creating user
/// Mutation to create a customer
const String customerCreateMutation = r'''
mutation MyMutation($firstName: String, $lastName: String, $email: String!, $password: String!, $acceptsMarketing: Boolean, ...
-1
votes
1
answer
222
views
GraphQL Client Unauthorized (401) when using App Proxy route despite valid session
I'm building a Shopify app using the official @shopify/shopify-app-remix framework with PrismaSessionStorage.
In my App Proxy route, I try to send an authenticated Admin GraphQL request using an ...
0
votes
1
answer
168
views
How to add category metafields to products?
I'm trying to add category-specific metafields to products (and their variants) using the Shopify Admin GraphQL API, but the metafields are not being created. Here’s what I’m doing and where I’m stuck:...
1
vote
1
answer
71
views
Shopify API from PHP: problem with linked metafields in a productCreate call
I'm trying to create a productCreate mutation which specifies the available colours for the product, but I'm getting the error 'The 'shopify.color-pattern' metafield has no values and none were passed ...
1
vote
0
answers
56
views
How to properly update product variant metafields with Shopify REST API (sub-collections use case)?
I'm trying to programmatically sync the sub-collections of a Shopify product as a metafield on each of its variants using the Shopify REST Admin API and Node.js (Axios).
Here's what I’m doing:
Fetch ...
0
votes
0
answers
28
views
platform specific discount in custom shopify app
Is there a way to develop a custom Shopify app that generates a discount code that is only accessible in mobile application? The mobile application is developed using flutter. I was able to configure ...
0
votes
0
answers
25
views
Creating a Shopify App for an affiliate platform
I am contracted to create a referral link Shopify app/extension for a client. And I am completely lost. I will start by giving you what my app needs to be able to do:
On the landing page pick up ...
2
votes
0
answers
52
views
Accessing Brand object inside Shop resource in Shopify GraphQL API
I'm trying to access the shop.brand.logo field in the Shop resource, I'm using API version 2025-01.
https://shopify.dev/docs/api/storefront/2025-01/objects/Brand
query ShopData {
shop {
brand {
...
-2
votes
1
answer
76
views
Shopify Import Error When Syncing Products from Rithum (ChannelAdvisor)
I have integrated Shopify with Rithum (formerly ChannelAdvisor), but I'm experiencing an issue where only some product fields are imported correctly. Specifically, while Name and Description sync ...
0
votes
1
answer
55
views
shopify: Requesting more than one of the same type in the same GraphQL request
I don't have a ton of experience with GraphQL, and I'm having trouble finding a straight answer for performing more than one query simultaneously, and whether any GraphQL should support this. My ...
0
votes
1
answer
100
views
shopify: Getting product's current category ID via API
You can easily select a taxonomy category ID via the UI:
However, where can you read this ID via the API? I've retrieved the product before and after a category change, and the only thing that ...
-1
votes
1
answer
79
views
How to determine if a shopify subscription has been charged?
I built a Shopify app using Shopify Billing and encountered an issue at this step.
I offer customers a 3-day free trial. If they remove the app during the trial period, their subscription will be ...
0
votes
1
answer
90
views
GraphQL Admin API: Shipping Address Returns Null for Abandoned Checkouts
I am making API requests from an app (public but not listed yet app) installed via the Shopify Partner Dashboard on a development store, and I am encountering an issue where the shippingAddress field ...
0
votes
0
answers
75
views
Shopify Error: Field 'customerByIdentifier' doesn't exist on type 'QueryRoot'
export const loader = async ({ request }: LoaderFunctionArgs) => {
await authenticate.admin(request);
const admin = await authenticate.admin(request);
const email = "[email protected]"...
0
votes
0
answers
69
views
How to clear local storage cart on headless Shopify store when checkout is completed
I have built a headless Shopify store with Astro, but the only thing I'm missing is the ability to clear my localstorage cart details once the checkout is completed.
There's no parameters or anything ...
2
votes
1
answer
259
views
Shopify GraphQL Admin API - Empty Returns
Apologies for the long question but I wanted to include all of the various things we've tried.
TLDR: for some reasons, no API call lets us access a Shopify store's
returns. The same API calls work ...
1
vote
0
answers
379
views
Shopify GraphQL admin api productCreate input object doesn't have variants
I am trying to create a shopify product as well as multiple variants all in the same productCreate mutation.
This is the query I have:
mutation CreateProductWithOptions($input: ProductInput!) {
...
0
votes
1
answer
125
views
Shopify web hook headers [closed]
I have several web hooks set on Shopify (that use api versione 2024-04).
Until yesterday (10 PM), when a webhook was triggered, I receive headers in this format:
X-Shopify-Topic
Starting from 10PM ...
0
votes
0
answers
73
views
Shopify Graphql - Pending status for image when try to update attributes
I am trying to change the filename and the alt attribute of a file using GraphQL, but Shopify responds that the image is pending.
This is my Ruby code to update a product with id gid://shopify/...
-1
votes
1
answer
251
views
This page is not compatible with the editor on shopify customizer
I'm getting the error on shopify customizer that your theme have refused to connect, I dont know what to do, I have just updated the shopify Cli
This popup i am getting:
This page is not compatible ...
0
votes
0
answers
52
views
Is there a way to get event ID from a webhook in Shopify Admin API
I am trying to get a webhook's event ID (Event - REST).
In the webhook headers I get the following
HeadersList {
cookies: null,
[Symbol(headers map)]: Map(18) {
'accept' => { name: 'accept', ...
0
votes
0
answers
34
views
Using Shopify Bulk Operations API to Validate Product SKUs
I’m working on a project where I need to validate a list of SKUs (stored in a CSV file) against the SKUs present in my Shopify store. My goal is to determine which SKUs from the CSV file are present ...
1
vote
0
answers
224
views
Get Shopify Analytics Data or Reports by API
I manage multiple Shopify stores and I am developing an app to retrieve Shopify reports. My goal is to ensure that the reports generated match exactly with the ones provided by Shopify.
I have already ...
3
votes
0
answers
311
views
How to get the currently logged in customer id using Liquid / JS
Since switching to new Customer Accounts sytem, I can't figure out how to access the currently logged in customer in my theme.
With the old system, the customer id was accessible via {{ customer.id }} ...
-1
votes
1
answer
135
views
Fetch all customers data on shopify store using shopify's API & PHP Laravel
I was trying to get all the customers data from shopify api using following way. But the problem i only get 250 customers data not more than that Though i have 6000+ customers data. What's problem ...
0
votes
0
answers
153
views
Title: How to get accurate product prices in active currency using Shopify Storefront API?
I’m working on a Shopify storefront that supports multiple currencies. My store’s base currency is USD, but customers can view and purchase products in other currencies like INR.
Here’s the issue I’m ...
0
votes
1
answer
185
views
Query in GraphQL for customer account login - The one where customer log in using a one-time 6-dig
I’m trying to implement a customer login flow where customers can log in using a one-time 6-digit code sent to their email. I want to know how I can query Shopify’s GraphQL API to handle this ...
0
votes
0
answers
32
views
MaxRedirectsError on NodeJS API library when doing a simple request
I am struggling with connecting my Shopify Test Store, through the API connection, with my code running on a docker container with the the server running on port 2000 inside Docker on my local machine....
2
votes
0
answers
95
views
Handling External Webhook Payload on Node Shopify App
I am building a Node.js/React Shopify app that needs to update an order's delivery status based on payloads received from an external API's webhook. However, I am facing challenges in handling both ...
0
votes
0
answers
48
views
Is there any way getting proxy url from an installed shop
When you set up a form using an app proxy in Shopify, you need to tell the form where to send the data (the action URL). For example:
import { redirect } from "@remix-run/node";
import { ...
-1
votes
1
answer
588
views
Unable to Fetch Customer Information from Shopify Store - Invalid API Key or Access Token Error
I am trying to fetch customer information from my Shopify store using the REST API and GraphQL API, but I keep encountering errors related to access permissions and authentication.
I am using a ...
0
votes
2
answers
57
views
Retrieve Collections Associated with a Specific Product Using Shopify Storefront API
I’m working on a Shopify project and need to find all the collections associated with a specific product using its Product ID. For example, if "Red T-shirt" is a product that belongs to ...
-1
votes
1
answer
168
views
PHP Shopify Graph API. Error syntax error, unexpected invalid token ("\"") at [33, 2]
I use cURL, not a github library.
I have a next code
$query = <<<GRAPHQL
mutation InventorySet(\$input: [InventorySetQuantitiesInput!]!)
{
inventorySetQuantities(...
0
votes
1
answer
744
views
Dynamic message group id from Eventbridge
Did anyone here manage to set the message group id for SQS to be dynamic?
We are receiving updates from our Shopify stores through the AWS Eventbridge integrations. Whenever there is a peak in sales ...
0
votes
1
answer
151
views
How do I log out of the Shopify API at the same time as my Astro app?
I am trying to implement user auth using the Shopify Headless customer account API in an Astro app with auth-astro. I have set up my Shopify store with the Headless app properly, I can log in, ...
0
votes
1
answer
188
views
Shopify custom app webhooks and metafields
We required replication of an existing Shopify Custom App. We do not have access to the keys and therefore require rebuild/redefinition of
Webhooks
Metafields/MetaObjects
The ability to re-generate ...
2
votes
1
answer
100
views
Inconsistency in metafields in shopify function logs and graphql query
we are adding paymentCustomizations metafields using the Admin GraphQL API for one of our stores. While the data sent in the mutation is successfully retrieved when queried via GraphQL, the Shopify ...
-1
votes
3
answers
448
views
inventoryAdjustQuantities mutation from GraphQL Shopify API is not working properly
This is the query im using:
mutation {
inventoryAdjustQuantities(input: {
changes: [
{
inventoryItemId: "gid://shopify/InventoryItem/...
1
vote
0
answers
238
views
How can I retrieve GIDs for category metafield values when syncing products to Shopify via GraphQL API?
I’m working on a product sync system to upload products from my backend system to Shopify via the Shopify GraphQL API. I can create products with standard metafields, but I’d also like to use category ...
1
vote
1
answer
494
views
How to make a Shopify Function only run at checkout, and not on other cart actions, like add to cart
I have a Shopify function created, as a cart and checkout validation extension. It's attempting to require first name, last name, and phone number input fields. I know there's a native way to do this ...
1
vote
0
answers
131
views
Syncing product images from Shopify to Sanity in a headless Next.js storefront
I'm building a headless storefront with Next.js for my Shopify store, using Sanity as the primary content management system. I've set up the Sanity Connect app in Shopify, and it successfully syncs ...
1
vote
1
answer
285
views
How to add a subscription product to the cart?
I’m trying to set up the Appstle Subscription plugin for Shopify, but I can’t figure out how to add a subscription product to the cart. Regular products get added, but the subscription doesn’t. It’s a ...
0
votes
0
answers
85
views
After creating a product with a tag, I'm unable to filter by that tag immediately
I'm trying to write tests using the @shopify/[email protected] library ()
I've encountered some strange behavior.
For example:
When I try to create a product with tags (one tag) and then request all ...
0
votes
1
answer
207
views
shopify admin graphql query/filter companies
I have a shopify store with thousands of companies which are assigned to staff members. The idea is to retrieve via admin graphql only the companies assigned to a specific staff member.
Via the admin ...
0
votes
0
answers
284
views
Shopify GraphQL: Create a variant with an inventory quanitity of 999
I am creating variants for a Shopify product using productVariantsBulkCreate in the Shopify GraphQL API:
mutation productVariantsBulkCreate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
...
1
vote
0
answers
111
views
Newly and dynamically created product variant temporarily displays a price of zero in the cart
TL;DR
Why can newly created product variants be added to the cart but within the cart show a wrong price (i.e. 0.00), only updating to the correct price after a few seconds and a page reload?
Details:
...
1
vote
0
answers
107
views
Extra variant options (more than 3) on Shopify product page
I am trying to add more variant options on the Shopify product page, as Shopify only allows up to three options by default. I'm sending extra variant options (which have different prices) from the ...
0
votes
1
answer
799
views
Expo AuthSession not closing when receiving redirectUri on Android
I am developing an ecommerce app for a client and I have had trouble with the authentication process for the application, but only on the Android platform as everything already works as expected on ...
1
vote
3
answers
861
views
Shopify GraphQL API Pagination Stuck in Infinite Loop with Same `endCursor`
I am working with Shopify's GraphQL API to paginate through all orders using a cursor-based pagination approach.
The query successfully fetches orders in batches, and I can see the correct endCursor ...