Error codes · The request itself

Validation failed

Codevalidation_failed
Status422
If this was an orderThis request bought nothing
Send it again unchanged?No — change something first
.NET SDKValidationFailedException

What it means

The request broke a rule of the API. The answer never names the field, on purpose, so it cannot be used to probe for valid ids or prices.

What to do

  • Prices must be decimal strings with exactly three decimals, and the total must be the unit price times the quantity, exactly.
  • externalReference must be 1 to 100 characters: Latin letters and digits, space and - _ . : / #.
  • Pass a paging cursor back exactly as received.
  • A reveal takes no body at all; the signature self-check takes exactly {}.

Where you can meet it

Example

The body of the refusal. Its type is the address of this page.

{
  "type": "https://developers.anis.ly/errors/validation-failed",
  "title": "Validation failed",
  "status": 422,
  "code": "validation_failed",
  "requestId": "01J9R2K8T4V6XQ0M3B7C5D9E1F"
}