Skip to content

validation_failed

Request refused

BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog

Last updated

Code: validation_failed · HTTP status: usually 422

The action refused the request for a reason that is not a single bad field.

Change the request as errors describes and resend; the schema and notes are at help_url.

{
"code": "validation_failed",
"type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/validation-failed/",
"title": "Request refused",
"status": 422,
"detail": "Too many order_ids: 1200 (max 1000 per request) Change the request as `errors` describes and resend. The request schema and notes are at `help_url`.",
"errors": [
"Too many order_ids: 1200 (max 1000 per request)"
],
"details": [
{
"code": "validation_failed",
"message": "Too many order_ids: 1200 (max 1000 per request)",
"path": null,
"value": null,
"expected": null
}
]
}

Every API v2 and MCP failure carries code and a type link to its page here. See Errors & Responses for the full envelope.

Was this page helpful?

Still stuck? Ask Quinn or chat with support