Autional Autional
API Reference GitHub autional.com →

POST /internal/billing/quota/check

Internal service call: Check if a tenant's resource quota is exceeded (e.g., user count, storage, API calls), for quota validation before resource operations by other microservices

Billing Service - Internal None application/json

Request Body

Schema: dto.QuotaCheckInternalRequest

FieldTypeRequiredExampleConstraintsDescription
requested_amount integer Yes 100
resource_type string Yes api_calls
app_id string No app_001

Responses

StatusDescriptionSchema
200Quota check successfuldto.QuotaCheckDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
500Internal server errorobject

Referenced Schemas

dto.QuotaCheckDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.QuotaCheckResponse No
message string No
timestamp string No

dto.QuotaCheckResponse

FieldTypeRequiredExampleConstraintsDescription
allowed boolean No True
current integer No 5000
limit integer No 10000
message string No
remaining integer No 5000
resource_type string No api_calls