1. Home
  2. ...
  3. Traffic Interceptors
  4. Billing Hits

Billing Hits

Identification of the requests that returned the configured status code, for usage charging.

If you need to charge for the use of some API resources, you can manage this with the Billing Hits interceptor. When inserted in the flow, this interceptor will identify all requests made and which returned the configured HTTP status code.

NOTE

To use this interceptor, you need to have at least one client validator (such as Client ID, for instance) enabled.

TIP

The easiest way to use Billing Hits is by registering a Plan β€” which is a set of interceptors to be used in the Gateway β€” with the Billing Quota option active. Click here to know more.

As of the request, the apps and/or access tokens linked to a Plan will be identified, and, based on them, the billing and cache storing processes are going to take place. In case the apps and/or access tokens are not identified in the request, the interceptor will consider the request as "billing" and will assign the value "1" as default.

You will be able to verify all the requests made by each app in a specified period via a report, and can, therefore, charge for these requests.

NOTE

The Billing Hits interceptor can be placed only in the response flow.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more