OrderCreate mutation error after 5 imports

Hi there,
I’m trying to import some orders using the OrderCreate mutation.
After 5 orders I get this error on the userErrors array Too many attempts. Please try again later.

Is there any limitation for this mutation?

That’s the API response I get:

{"data"=>{"orderCreate"=>{"userErrors"=>[], "order"=>{"id"=>"gid://shopify/Order/6140782379330"}}}, "extensions"=>{"cost"=>{"requestedQueryCost"=>10, "actualQueryCost"=>10, "throttleStatus"=>{"maximumAvailable"=>2000.0, "currentlyAvailable"=>1990, "restoreRate"=>87.0}}}}

Hi Baggio,

How quickly are you making these mutations? We have info on avoiding rate limit errors here: Shopify API rate limits

Hi Liam,

I’ve found out that for development stores order creation is limited by 5 orders/minute

This warning is written on the rest API docs and not on the admin GraphQL one!

Glad you figured this out - will connect with the relevant team to have this noted on the GraphQL doc.

Thanks for raising this, @baggio_giacomo! We really value your feedback on the docs, and recently updated the orderCreate reference to address your feedback.

We included a note about the limit of five new orders per minute for trial or development stores. Additionally, we’ve enhanced many of the descriptions on that page to share more context about how the mutation works and highlight other related mutations that you can use.

Hope you find the info helpful! Let us know if you have more feedback or questions about the page.

1 Like