Get Instant Solutions for Kubernetes, Databases, Docker and more
Braintree Recurring is a powerful tool designed to manage billing and subscriptions for businesses. It allows developers to integrate subscription billing into their applications seamlessly, providing a robust platform for handling recurring payments and managing customer subscriptions.
When working with Braintree Recurring, you might encounter the error code 91522, which indicates an issue with the subscription add-on amount. This error typically manifests when trying to create or update a subscription with an invalid add-on amount.
Developers will notice that the API call fails, and the response includes the error code 91522. This can prevent the subscription from being created or updated successfully, leading to potential disruptions in billing operations.
The error code 91522 signifies that the add-on amount specified in the subscription request is invalid. This could be due to the amount not being a valid number or not aligning with the predefined plan settings in Braintree.
To resolve the 91522 error, follow these actionable steps:
Ensure that the add-on amount is a valid numeric value. It should be formatted correctly, typically with two decimal places. For example, use 10.00
instead of 10
or 10.000
.
Review the plan settings in your Braintree dashboard to ensure that the add-on amount aligns with the configured constraints. You can access your plan settings by logging into your Braintree Dashboard and navigating to the subscriptions section.
Modify your API request to include the correct add-on amount. Ensure that the amount matches the plan's requirements. Here is an example of how your request might look:
{
"subscription": {
"planId": "your_plan_id",
"addOns": [{
"amount": "10.00",
"id": "your_add_on_id"
}]
}
}
For more information on handling subscription errors, refer to the Braintree Error Codes Documentation. If you continue to experience issues, consider reaching out to Braintree Support for further assistance.
(Perfect for DevOps & SREs)
Try Doctor Droid — your AI SRE that auto-triages alerts, debugs issues, and finds the root cause for you.