post https://api.reepay.com/v1/plan/
major update to a plan like price
If you want to update a plans amount and information that has a big effect on the subscriptions you must supersede the old plan, which means Billwerk+Optimize will create a new version of the plan. For this you use "supersede plan" instead of "update plan".
Beside the normal plan features you must decide what will happen with the current subscriptions that uses the plan. For this you use supersede_mode
, that can be set to the following modes:
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
1 | 400 | Invalid request for fixed trial plan |
10 | 404 | Subscription plan not found |
73 | 400 | Invalid reminder emails days |
157 | 404 | Tax policy not found |
169 | 404 | Entitlement not found |