400
Bad request
https://api.quotastack.io/errors/bad-request
QuotaStack could not work with the request you sent. Nothing changed.
Why it happened
- The body was not valid JSON, or a field held the wrong type.
- You sent both
customer_idandexternal_customer_id, or you sent neither. - A path or query value was missing, such as a subscription ID.
- You tried to change a metered billable metric, which this API cannot do.
How to fix it
- Read
detailin the reply. The text names the problem in plain words. - Check the request against the field table for that call.
- Send exactly one customer field when the call takes one.
Example response 400
{
"type": "https://api.quotastack.io/errors/bad-request",
"title": "Bad Request",
"status": 400,
"detail": "Provide exactly one of customer_id or external_customer_id."
} Which calls return this
GET /v1/customersPOST /v1/customersPATCH /v1/customers/{id}PATCH /v1/customer-by-external-id/{external_id}POST /v1/customers/{customer_id}/credits/grantPOST /v1/customers/{customer_id}/credits/adjustGET /v1/entitlements/checkPOST /v1/customers/{id}/entitlements/{billable_metric_key}/incrementPOST /v1/customers/{id}/entitlements/{billable_metric_key}/decrementPOST /v1/entitlements/consumePOST /v1/customer-by-external-id/{external_id}/entitlements/{billable_metric_key}/incrementPOST /v1/customer-by-external-id/{external_id}/entitlements/{billable_metric_key}/decrementPOST /v1/usagePOST /v1/usage/batchPOST /v1/imports/customersPOST /v1/subscriptionsPOST /v1/subscriptions/{id}/upgradePOST /v1/subscriptions/{id}/overridesPATCH /v1/subscriptions/{id}/overrides/{billable_metric_key}POST /v1/reservations
● raw markdown · bad-request.md ↗ — this is exactly what an agent fetches
Loading…