Hi Kumar, the API allows you to create customers as well. Check out the documentation here: https://help.shopify.com/api/reference/customer#create. If you still have issues can you post the code you are using that is having issues?
Cheers.
Hi Kumar, the API allows you to create customers as well. Check out the documentation here: https://help.shopify.com/api/reference/customer#create. If you still have issues can you post the code you are using that is having issues?
Cheers.
Hi Marcus, you will have to be more specific. Which SDK are you trying to use?
Ryan
Update: The query started working today but the variant is null when returned. The rest of the data is present in the response including the custom attributes. Here is the full query:
{
customer(customerAccessToken: "xxx") {
orders(first: 10) {
edges {
node {
id,
orderNumber,
totalPrice,
processedAt,
shippingAddress {
id,
firstName
},
lineItems(first: 1) {
edges {
node {
variant {
id,
title,
availableForSale,
price,
image {
src
},
product {
id,
options {
id,
name,
values
},
productType,
description,
title,
handle,
images(first: 1) {
edges {
node {
src
}
}
}
}
},
customAttributes {
key,
value
}
}
}
}
}
}
}
}
}
Hi there, I think I understand the question. Here is a potential solution: You could send a webhook when a cart or checkout is created, depending on when you want to trigger an alert, see https://help.shopify.com/api/reference/webhook.
And you can then use the Abandoned Checkouts endpoint to get the info you are looking for on abandoned checkouts. What you do with the info I guess is what the hackathon is about :).
Hope this helps, feel free to reply if you have any other questions.
Ryan
Thanks Ryan for your nice and helpful reply.
As to the link approach (not coupon code), I found there are following related fields in order data I pulled from shopify with order API:
referring_site,
landing_site,
source_url,
source_identifier,
landing_site_ref
let say, if I added query paramter like ?ref=123, will this ref will end up in any above fields. There are some old post, saying ref parameter can be used to fill landing_site_ref. I tested, but landing_site_ref is empty.
Should we write our own javascript, to capture ref value, and save to cookie, and then pull from cookie to fill landing_site_ref on checkout page?
Thanks
Hey Hugo,
As of now, shipping zones are read only through API endpoints. The only way to manipulate them is directly through the admin.
Cheers.
Hey,
Thanks for the reply I’m trying to use the iOS one :-)
Thanks
Marcus
Hey there.
Our example Django app is not currently being maintained as you'll see by the commit history dating back ~3 years as you've observed. At what point exactly are you running into trouble? I'm not a Python developer, but I can maybe offer some advice if you can be more clear about where you're getting stuck.
Cheers.
I too have a related question, I think.
I need to get both unshipped and partial orders, is that done by just querying for `partial` orders? or is it possible to pass both statuses?
Thanks!
Hey Andrew,
At this time, that's not possible. Your feedback is noted however, and your use case makes absolute sense. For the time being you can advise the merchant(s) contacting you for a credit to contact support so a credit/refund can be explored.
Cheers.
Hey Abdur,
What exactly are you trying to do? I don't see how this is any different from changing the product's price by adding $20. Under what circumstances would you want to apply an extra $20? I can see that being confusing for a customer unless there's some context I'm missing here.
Cheers.
Hi all,
First timer on this board. We have been battling a perplexing issue using youtube's iframe embed api. We have tried this simple implementation on another project, and it worked perfectly, except for our shopify project.
You will see below that our script is inserted asychronously, and we can observe the script insertion while inspecting the DOM and looking at our resource list. Our handlers are declared before the script gets injected. There is an oddity where we will see the script execute on occasion, but 49 out of 50 times it does not. Does anyone have any ideas as to why this would occur? Are there configurations that don't allow for certain external resources to execute?
<div id="yt-video-player"></div>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
console.log('API ready');
player = new YT.Player('yt-video-player', {
height: '100%',
width: '100%',
videoId: 'OwkDDfsUscwI', //fake videoId
events: {
'onReady': onYTPlayerReady,
'onStateChange': onYTPlayerStateChange
}
});
}
function onYTPlayerReady(event) {
event.target.playVideo();
}
function onYTPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000);
done = true;
}
}
function stopVideo() {
player.stopVideo();
}
Hi Alex,
Thanks for the response.
I am stuck on the authorization process.
I don't really know where to begin or how to implement this.
I need create a webhook for each order created. Then I will todo something only for a specific application and I see in the documentation we have a attribution_app_id if the order has created by a application.
So how can see this attribution_app_id on the Shopify app market ?
Documentation related : https://help.shopify.com/api/reference/order
attribution_app_id -> (Show orders attributed to a specific app. Valid values are the app ID to filter on (eg. 123) or a value of "current" to only show orders for the app currently consuming the API.)
Gool call Joel, thanks will do.
We have developed an app. We have not yet listed it on the app store.
We have a shopify shop. We have installed the app. I can see that the webhooks the app installs have been installed when I list them. We are using the Python API.
webhooks = shopify.Webhook.find()
Shows all of the webhooks we have installed for the shop. the orders/updated webhook is there.
However, the webhook is not being called when orders are updated.
Does the app have to be listed in the store to have its webhooks called?
Hi Degendra,
Did you ever get a response to this question ?
I'm trying to get a full report of transactions during each day and wonder if I have to get all the orders and then check the day that the transaction was completed. Then I wonder if there is any limit to the delay between order time and transaciton time.
I've been getting this email:
"Your webhook for orders/updated at XX is failing to return a successful response.
This webhook has been attempted 62 times. If your webhook continues to fail, it will be removed and your application will not receive any more notifications."
November 14, 2017 at 16:11pm
Error: unable to get local issuer certificate
Any clues as to what this means? Nginx is not logging any requests to our webhook URL.
Our SSL certificate is good to go, according to SSL Labs
So the User endpoints are special in that they are only available for Shopify Plus users. Thus, it seems that if you ask for the `read_user` or `write_user` scopes in a shop that isn't shopify plus, they'll get redirected to this:
Oauth error invalid_scope: The access scope is invalid: write_users, read_users
Is there any way (programmatically) to check if the account is a shopify plus account before redirecting the user to the authorize endpoint?
As a follow up question, why is access to the User API Limited to Shopify Plus stores? Other plans include the ability to add staff accounts, and our application _really_ needs to be able to query the API to find out who those users are so we can set up stuff for them on our end. And if we have to do that with human intervention it's going to be a large support burden on us. Any way we can talk to someone and get read access to the User API for everyone that has us installed?