Check if usage is allowed for a customer and product

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
externalCustomerIdstringRequired
External customer ID
externalProductIdstringRequired

External product ID (the external ID of the product/agent)

Response

Usage check response
allowedboolean or null
Whether usage is allowed
messagestring or null

Human-readable message about the usage check result

eventNamestring or null

Event name (only present when usage is not allowed)

availabledouble or null

Available credits (only present for PrepaidCredits when insufficient)

eventsQuantitydouble or null

Current events quantity (only present when usage exceeds limit)

limitdouble or null

Usage limit (only present when usage exceeds limit)

Errors