Home > Software design >  How to cancel a PayPal reference transaction using api
How to cancel a PayPal reference transaction using api

Time:09-13

I am trying to cancel a PayPal reference transaction (I use PayPal's c# api). I tried using PayPalAPIInterfaceServiceService.DoVoid(), and PayPalAPIInterfaceServiceService.ManageRecurringPaymentsProfileStatus() with profile ID "B-3E365702...", but I get an error: "The profile ID is invalid". What API call can I use to cancel a reference transaction?

CodePudding user response:

You can't cancel a reference transaction, you can only refund transactions.

It appears you actually want to cancel a billing agreement (which is something that's used to create reference transactions). How you cancel one will depend on the API used to create it. If you are using the classic NVP/SOAP API, then you are probably looking for BAUpdate or METHOD=BillingAgreementUpdate.

Since you mention a "c# api" you are likely using some SDK which would include a function that implements this.

  • Related