The Community Forum will no longer be available starting June 30, 2025. Please note that the forum is now closed for new posts and responses, but previous posts will remain accessible for review until June, 30 2025. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central
If you want to report illegal content under the EU Digital Services Act, please do so here
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!