quotastack Docs
Docs / API / Errors / bad-request
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_id and external_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

  1. Read detail in the reply. The text names the problem in plain words.
  2. Check the request against the field table for that call.
  3. 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