Using API calls to process Automatic Billing agreements

GeneEilebrecht
Contributor
Contributor

Hi everyone,

 

I have set up PayPal buttons to create Automatic Billing agreements.  The user selects their maximum monthly billing amount, and this can be viewed on the PayPal web UI under the "Recurring payments dashboard".  I can use this dashboard to bill the payment agreements as well.  This all works well, but is obviously not a viable solution for a business that may have hundreds of these agreements to bill each month, so I am looking for an API-based solution to take this process over.

 

I have attempted to use the REST API following the documentation for billing agreements.  I can successfully use this API to get the agreement details.  However, if I try to use the API (https://api.paypal.com/v1/payments/billing-agreements/agreement_id/set-balance) to set the outstanding balance, I get 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"}

I want to continue using the buttons I set up, because the Automatic Payments feature does exactly what I need it to do.  However, I need an API-based approach to setting the outstanding balance and then billing it.  Does anyone know if this is possible, and can point me to the risht documentation to get this set up?  Any help is appreciated.  Thanks!

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.