Using API calls to process Automatic Billing agreements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How to integrate PayPal during user signup to avoid re-entering credentials for future payments? in REST APIs
- Getting an error when calling API endpoint for Create Billing Agreement Token V1 in Sandbox Environment
- This merchant account is not permitted to create Merchant Initiated Billing Agreement in PayPal Payments Standard
- Getting METHOD_NOT_SUPPORTED response to billing agreement token request in REST APIs
- Enable "Billing Address Request" for the Sandbox Account. in Sandbox Environment