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
Whether usage is allowed
messagestring

Human-readable message about the usage check result

eventNamestring

Event name (only present when usage is not allowed)

availabledouble

Available credits (only present for PrepaidCredits when insufficient)

eventsQuantitydouble

Current events quantity (only present when usage exceeds limit)

limitdouble

Usage limit (only present when usage exceeds limit)

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error