Inventory Level Update - Webhook

Highlighted
Shopify Staff
Shopify Staff
478 37 101

I believe you can respond to the email to contact the reviewer!

Developer Experience @ Shopify
0 Likes
Highlighted
Shopify Partner
14 0 0

Hi Ryan!

 

Thank you for patiently answering our questions. The app is now available on Shopify!

 

I'll be sure to reach out if I have any questions.

 

Best,

Aditya

0 Likes
Highlighted
Shopify Partner
14 0 0

Hi Ryan,

 
We have a query and I was hoping you could help us with this.
 
We have noticed that the limit to call an API every second is two times. Is there a solution available to call more than 2 times per second or is this a blanket rule set by Shopify?
 
Thanks very much !
 
Best,
Aditya
0 Likes
Highlighted
Shopify Partner
14 0 0
Hi Ryan,

Apologies, the other issue we have been facing is the below. Essentially the app is getting installed on some stores and not in some other stores.

In our public app, some of the user access tokens work and some of them don't. For those invalid, we will get the below result. All the token issuing process are using the same code, using offline access mode, and requesting the same scopes. Furthermore, all these token were nearly issued at the same time.

We have no idea why some of them work and some of them don't.

Example:
https://domain/admin/shop.json resulted in a 401 Unauthorized response.
```
{
"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"
}

Any help would be much appreciated!

Best,
0 Likes
Shopify Staff
Shopify Staff
478 37 101

Yes that is the static API call limit for all apps platform wide, plus stores get it doubled.  As for the access token, my guess is that those shops are uninstalling the app, if it fails - check that you are still installed.

Developer Experience @ Shopify
0 Likes
Highlighted
Shopify Partner
14 0 0

Hi Ryan, 

 

We have run into an issue while performing a product and inventory sync from a Shopify Store.

 

The Shopify store has 1004 products, however, we are seeing only 930 products synced to our platform. The code that we are using is below:

 


$keepGoing = true;
$sinceId = null;
$config['limit'] = 250;

do {
if (!is_null($sinceId)) {
$config['since_id'] = $sinceId;
}

// 'https://{myshopify-domain}/admin/api/2020-01/products.json'
$response = $shopify->products($config);

if (count($response['products']) < $config['limit']) {
$keepGoing = false;
}

foreach ($response['products'] as $product) {
$sinceId = $product['id'];

$products->add($product);
}
} while ($keepGoing);

 

 

The below api is giving us the correct number of products which is 1004

 

// 'https://{myshopify-domain}/admin/api/2020-01/products/count.json'

 

I was hoping you could assist us with this.

 

Best,

Aditya

0 Likes
Highlighted
Shopify Partner
14 0 0

Wondering if anyone can help here?

0 Likes