Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all 25503 articles
Browse latest View live

Ryan O commented on Creating customers from API


Ryan O commented on Opening product Directly

$
0
0

Hi Marcus, you will have to be more specific.  Which SDK are you trying to use?
 

Ryan

Joe Zearing commented on Customer Order Query breaks when Product line-item variant is included (Android Mobile Buy SDK 3.1.2)

$
0
0

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
								}
							}
						}
					}
				}
			}
		}
	}
}

 

 

 

Ryan O commented on How to Make Recart Clone

$
0
0

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

 

etrade8899 commented on How I can track affiliate order with shopify API myself without third party APP

$
0
0

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

 

 

 

 

 

 

 

Alex Richter commented on Can modify Shipping zones via API?

$
0
0

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.

marcus0993 commented on Opening product Directly

$
0
0

Hey,

 

Thanks for the reply I’m trying to use the iOS one :-)

 

Thanks

Marcus

Alex Richter commented on Private -> Public (Python)

$
0
0

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.


Luciano Longo commented on get list of unfulfilled orders

$
0
0

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!

Alex Richter commented on Create ApplicationCredit for a Shop that has been uninstalled

$
0
0

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.

Alex Richter commented on Adding additional Price to products other than original price

$
0
0

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.

YouTube API script does not execute our handlers by thealkimist

$
0
0

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();
      }

 

jsaya commented on Private -> Public (Python)

$
0
0

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.  

How get the attribution_app_id for a specific application in Shopify app market ? by Max

$
0
0

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.)

RLSAJ commented on Shopify App Installations Current Installs

$
0
0

Gool call Joel, thanks will do. 


Does an app have to be listed in the app store to have its webhooks called? by Travis' Bad Ass Surf Shop Admin

$
0
0

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? 

 

 

 

RobertPhoenix commented on Payout report

$
0
0

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.

 

Webhook error: unable to get local issuer certificate by Travis' Bad Ass Surf Shop Admin

$
0
0

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 

Requesting read_user, write_user Scopes by SINGLE

$
0
0

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?
 

SINGLE commented on Requesting read_user, write_user Scopes

$
0
0

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?

Viewing all 25503 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>