Search code examples
paypalexpress-checkoutpaypal-nvp

How can I cancel a PayPal Billing Agreement via an API call


I'm using PayPal NVP API to do reference transactions with express checkout. I create billing agreements and charge using the agreements in sandbox and in a production environment, however when I try to call BAUpdate (METHOD=BillingAgreementUpdate in the NVP API) I get the a response with error code 81002 and description

Method specified is not Supported

I can't find anywhere in PayPal's docs if this method is deprecated or if I need to send something else.


Solution

  • The proper call is BillAgreementUpdate (confusing, I know). That should let you cancel your billing agreement.