Nodejs : Too many requests. Blocked due to rate limiting

kirtiaj
Contributor
Contributor

Hello,

I have integrated paypal API's in express nodejs . 

A] Paypal mode: sandbox
B] API's consumed:
1) Create subscription plan: /v1/billing/plans

2) Cancel subscription: /v1/billing/subscriptions/{subscriptionId}/cancel
3) Get access token: 
/v1/oauth2/token (on expiration of stored token)

4) Webhook notification listener in nodejs

I keep getting "Too many requests. Blocked due to rate limiting" error from paypal on any of the above paypal API request.  Though it works sometimes without breaking the flow.
Could you please suggest solution

Login to Me Too
1 REPLY 1

MTS-Aaron
PayPal Employee
PayPal Employee

Hi @kirtiaj 

 

Make sure that you're varying the "Subscription ID" you're using so as to not trip the Rate Limiter for these calls. If you continuously call that API with the same ID during a short period of time, rate limits might go into effect for 24 hours to 48 hours.

 

I hope this helps!

-Aaron

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.