validation_failed
Request refused
BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog
Last updated
API v2
stoqapp.comAbout STOQContactPrivacy policyHelp center
Request refused
Section titled “Request refused”Code: validation_failed · HTTP status: usually 422
The action refused the request for a reason that is not a single bad field.
How to fix
Section titled “How to fix”Change the request as errors describes and resend; the schema and notes are at help_url.
Example response
Section titled “Example response”{ "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?
Thanks for letting us know.
Still stuck? Ask Quinn or chat with support