Docs › API Reference › Billing Service › POST /internal/billing/quota/check
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
Field Type Required Example Constraints Description
requested_amount
integer
Yes
100
resource_type
string
Yes
api_calls
app_id
string
No
app_001
Responses
Status Description Schema
200 Quota check successful dto.QuotaCheckDetailResponse400 Invalid request parameters object401 Unauthorized object500 Internal server error object
Referenced Schemas
dto.QuotaCheckDetailResponse
Field Type Required Example Constraints Description
code
integer
No
data
dto.QuotaCheckResponse
No
message
string
No
timestamp
string
No
dto.QuotaCheckResponse
Field Type Required Example Constraints Description
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