Tag: shopify
-
Shopify GraphQL : How To Know Sales Channels ID And Mutaion To Add A New Prodcut
0 I want to create prodcut with sales channel ID using Python and GraphQL API on Shopify. sales channel example But I don’t know how to know sales channel ID for first. So, please tell me how to get to know sales channel ID using GQL query and then if possible, tell me how to…
-
Shopify GraphQL “cartLinesAdd” API
1 When I hit this Shopify GraphQL "cartLinesAdd" API to add product to my shopping cart, in response it says invalid ID. So, can anyone please help me to find out what’s wrong here? graphql postman shopify storefront Share Follow asked Sep 8, 2021 at 14:43 Prãshant SaraswatPrãshant Saraswat 33622 silver badges1414 bronze badges 1…
-
Shopify GraphQL Query to retrieve UTM Parameters from Orders
1 I’m quite new to GraphQL syntax so would love to see why I am getting null back as my result. What I am trying to is query orders in a store and retrieve back the UTM Params associated with that order. This is the query: query { orders(first:10) { edges { node { customerJourney…
-
Difficulty Filtering Nested GraphQL Fields in Shopify
0 Problem: I’m facing challenges filtering results based on nested fields in a Shopify GraphQL query. GraphQL Query: { discountNodes(first: 100) { edges { node { id discount { … on DiscountAutomaticApp { appDiscountType { app { title } } } } } } } } Issue: The query retrieves a list of discounts, but…
-
Shopify GraphQL: How to add variants using Python and GraphQL
0 I’ve been trying to create product with variants using Python and GQL, but lacking something and dosen’t work as I want. it says "Field ‘optionValues’ doesn’t exist on type ‘ProductOption’" but I reffer to a official document and copy it https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/productcreate#examples-Create_a_product_with_options_and_option_values import requests import json # Shopify API credentials shop_url = "ShopURL" access_token =…
-
Shopify API (using Python): File upload failed due to “Processing Error.” Why?
1 I am struggling to figure out why I’m not able to successfully upload images to the Files section of my Shopify store. I followed this code here, except mine is a Python version of this: https://gist.github.com/celsowhite/2e890966620bc781829b5be442bea159 import requests import os # Set up Shopify API credentials shopify_store = ‘url-goes-here.myshopify.com’ // the actual URL is…
-
Shopify Processing Error On File Upload Through JS/GraphQL
0 I am implementing a simple solution that allows the user to select a file (any type of image). Once selected, the user clicks on "Upload Image," and the API call is triggered. I am receiving a status 200 in response, but when I check the Shopify Files directory in the admin panel, it shows…
-
Shopify: Register products with HTML description using GraphQL
0 I’m new to shopify GraphQL and trying to register product through GraphQL and Python. I write a code as below but it returns error. Products with only text can be registerd but product with HTML not registerd. ■Using GCP,Theme:Debut import requests import json # Shopify API credentials shop_url = "ShopURL" access_token = "ACCESS TOKEN"…
-
Retrieving the last billing cycle using shopify graphQL
0 Is there a way in shopify graphQL to determine the total number of a billing cycles the subscription contract has ? I’ve tried the following query but it requires either billingCyclesDateRangeSelector or billingCyclesIndexRangeSelector, since I do not have the value of max billing cycle I do not have idea about the max date range…