Enhancements to API Documentation, Schema & Webhooks
This week, along with the release of our new JS SDK, we are rolling out several important updates to our API Documentation, OpenAPI Schema, and webhook events.
- The
pricing
endpoint now includes details about the selling unit. This makes it easier to render accurate information inside custom pricing tables. - The
subscription cancellation
endpoint now properly supports an array of cancellation reasons. This allows you to capture multiple reasons from customers, and Freemius will notify you via email. - The
subscriptions
endpoint has a newenrich_with_cancellation_discounts
flag. When used, subscriptions will include ahas_subscription_cancellation_discount
property, helping you determine if a cancellation discount has already been applied. You can use this to show a custom UI during the cancellation flow (see our React Starter Kit for examples). - The
license.extended
webhook now includes adata.is_renewal
property, indicating whether the license extension happened due to a subscription renewal. You can hook to this event to provide some entitlement per billing cycle.