What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

"Too Many Messages Sent" updating customer payment methods

"Too Many Messages Sent" updating customer payment methods

Jorge12
Shopify Partner
13 0 4

We are process our declined subscription billing attempts in batches weekly.  We send an explanation email to our customers outside of Shopify, but we also trigger an Update Payment Method email with graphQL mutation customerPaymentMethodCreditCardUpdate.

We proactively pause 2 seconds between each decline that we process, however some weeks  we have a larger number of declines we will hit a rate limit and receive an error back :

 

[{"field":null,"message":"Too many messages sent. Please try again later."}]

 

 

Can anyone share information on what the rate limit is, or can Shopify staff chime in?  We want to stay within the rate limit, but at the same time want to process our renewals/declines as quickly as possible.

 

Thanks!

Reply 1 (1)

ShopNotif-SAPI
Visitor
2 0 0
Hi,

the rate limit for the API is the same rate limit you can find here
https://shopify.dev/concepts/about-apis/rate-limits which is a query cost
of 50 points / second.

Thanks