As an action provider, you can enforce limits on the number of times a site owner uses an action. For example, an action provider can limit the number of messages a user can send per billing cycle. You can enforce different quotas on specific features of the app, depending on the user. For example, your app might have a basic plan that allows the user to send 500 emails a month, and a premium plan that lets the user send unlimited emails.
quota: A limit on the number of times a site owner can perform an action. For example, you can set a quota of 500 reminder emails that the user may send.
plan: Allows you to set different quotas for different users.
You are responsible for enforcing quotas for features used by their actions. If the features provided by your service have quotas you can implement the Get Action Quota Info endpoint so that Wix can display your quotas in the user's site dashboard. Wix displays the quotas in the Manage your automations quotas modal. This modal opens when site contributors click the Manage Your Quotas button on the Automations page in the dashboard.
The modal lists the quotas for all the features used by the site's automations. The list is organized by the apps providing the features.
You can define the different elements of each quota display in the responses from your Get Action Quota Info endpoint. In general, each quota display includes a plan, and the plan features associated with it. The current usage and limit for each feature is displayed.
To display one plan with a single feature quota, include the plan and quota data in the same quotaInfo
object in your endpoint’s response.
Sample response body:
The resulting quota display looks like this:
To display one plan with a single feature quota, include the plan and quota data in the same quotaInfo
object in your endpoint’s response.
Sample response body:
The resulting quota display should look something like this:
To display two different plans with different features that are both being used by your action service, include two quotaInfo
objects in your response body.
Sample response body:
The resulting quota display looks like this:
If your service supports a plan where features are unlimited, you can still display the site contributor’s current usage. To do this, provide a quotaInfo
object with the relevant plan details. Include the feature’s name and current usage, but not a usage limit.
Sample response body:
The resulting quota display should look like this:
If your service enforces a quota on a feature that a site contributor hasn’t paid for, you can display this in the dashboard. This lets the site contributor know that your action isn’t running when their automation is triggered. To display this, set both the current usage and limit for the feature to 0
in the relevant quotaInfo
object in your response body.
Sample response body:
You can define a tooltip that provides more details about a feature quota. To display the tooltip, add an additionalInfo
object together with the feature details.
Sample response body:
You should now see a message when you hover over the tooltip icon: