Can you cancel a PayPal automatic payment via API? (Subscription created via Hosted button)

Zack Burt picture Zack Burt · Sep 28, 2010 · Viewed 22.5k times · Source

Can you cancel a PayPal automatic payment via API? It's a "Subscription" created via Hosted button.

I have the "Automatic payment number" and the "Transaction ID".

Answer

Michael Eakins picture Michael Eakins · Sep 28, 2010

Yes.

You can suspend or cancel a profile by using the ManageRecurringPaymentsProfileStatus API. You can also reactivate a suspended profile. If the maximum number of failed payments has already been reached, however, you will need to increase the number of failed payments before reactivating the profile.

Please find this Reference:

Accodring to PAYPAL you can take any of three actions utilizing the ManagerecurringPayments API.

  • Cancel - Only profiles in Active or Suspended state can be canceled.
  • Suspend - Only profiles in Active state can be suspended.-
  • Reactivate - Only profiles in a suspended state can be reactivated.--