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
pricingendpoint now includes details about the selling unit. This makes it easier to render accurate information inside custom pricing tables. - The
subscription cancellationendpoint 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
subscriptionsendpoint has a newenrich_with_cancellation_discountsflag. When used, subscriptions will include ahas_subscription_cancellation_discountproperty, 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.extendedwebhook now includes adata.is_renewalproperty, indicating whether the license extension happened due to a subscription renewal. You can hook to this event to provide some entitlement per billing cycle.