GraphQL Admin API - example Throttled request's response

Solved
Highlighted
Shopify Partner
10 0 2

Hello, fellow devs! I'm working on GraphQL Admin API Rate Limit, and the documentation mentions as below:

 

All requests that are made after the limit has been exceeded are throttled and an {errors: [{ message: "Throttled" }]} error is returned.

Does any of you could share an example response from the request that was throttled? It's hard for me to exceed the limits as our dev stores do not have enough data (i.e., orders or customers). I'm especially looking for a response body, and status code returned in case of exceeding API limits.

0 Likes
Highlighted

The status code returned on throttled request should be 429.

0 Likes
Highlighted
Shopify Partner
10 0 2

For sure it's 429 for Admin REST API, but the documentation doesn't mention if it's true for GraphQL API too. Thanks anyway @AddisonApps :-)

0 Likes
Highlighted

This is an accepted solution.

Here is an example of a throttled request:

{
   "errors":[
      {
         "message":"Throttled"
      }
   ],
   "extensions":{
      "cost":{
         "requestedQueryCost":202,
         "actualQueryCost":null,
         "throttleStatus":{
            "maximumAvailable":1000.0,
            "currentlyAvailable":118,
            "restoreRate":50.0
         }
      }
   }
}
Highlighted
Shopify Partner
10 0 2

Thanks a ton, @AddisonApps!

0 Likes
Highlighted
New Member
1 0 0

I am having a throttled error when attempting to add photos to products. Please help.

0 Likes