Using API calls to process Automatic Billing agreements

GeneEilebrecht
Contributor
Contributor

Hello,

 

I have set up a button on my site to set up Automatic Billing agreements.  The button works great, and I can view the agreements that have been set up in the PayPal UI using the "Recurring payments dashboard".  I can manually bill the agreements through the UI as well.  While this works, it is obviously not a viable business solution to need to go into the UI and manually process payments each month, so I am attempting to set up API calls to do this.

 

Attempting to make a REST API call to https://api.paypal.com/v1/payments/billing-agreements/<agreement ID>/set-balance results in the following error:

 

{"name":"SUBSCRIPTION_UNMAPPED_ERROR","message":"Subscription Profiles not supported by Recurring Payment APIs.","information_link":"https://developer.paypal.com/docs/api/payments.billing-agreements#errors","debug_id":"4cef37d1b5f90"}

Is there another API-based solution for setting the outstanding balance on these agreements and then billing the outstanding balance?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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