paypal / PayPal-node-SDK

node.js SDK for PayPal RESTful APIs
Other
1.28k stars 451 forks source link

Cancel thousands of agreements at the same time #435

Closed josepgomes closed 4 years ago

josepgomes commented 4 years ago

Hi,

Paypal has a sample for cancel an agreement: https://github.com/paypal/PayPal-node-SDK/blob/master/samples/subscription/billing_agreements/cancel.js

What happens if i have more than 2000 users, each one with an agreement and i need to cancel all of them?

Is there any alternative? Like, telling paypal to cancel an array of agreements? Will it block me after x requests if i make one at a time?

Many thanks!

prakash-gangadharan commented 4 years ago

Hi @josepgomes, an API to do bulk cancel does not exist for RT/Billing Agreement. You can try writing a script to invoke Cancel API in a batch.