Learn how to check feature access with the check
route
check
method returns the allowed
property to check if a customer should have access to a feature, so you can block access or prompt them to upgrade.
past_due
, by default, Autumn will block access to the feature.required_quantity
parameter. This means you can prevent a user from starting a process that would consume more than their allowance.
By default, required_quantity
is 1, so not passing this parameter will return allowed: true
as long as the customer has a feature balance of 1 or more.
send_event
field. The usage value will be the required_quantity
parameter.
value
if the event fails.