Search code examples
braintree

How to create a plan programmatically?


Is there a way to create plans programmatically? It's a bit strange to read

To create a subscription, you only need a stored paymentMethodToken and a planId, which must be created via the Control Panel.

in the documentation. Why wouldn't there be a way to create a payment plan using the API?


Solution

  • Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.

    Currently there is no way to create a Plan programmatically.

    Plans cannot be created, updated, or deleted via the API

    Plans serve as templates for Subscriptions, which can be created through the Braintree API.