Error codes · The request itself
Validation failed
Code
validation_failedStatus422
If this was an orderThis request bought nothing
Send it again unchanged?No — change something first
.NET SDK
ValidationFailedExceptionWhat 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.
externalReferencemust 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
- GETList wallets
/v1/wallets - GETList catalogue categories
/v1/wallets/{walletId}/catalog/categories - GETList subcategories of a category
/v1/wallets/{walletId}/catalog/categories/{categoryId}/subcategories - GETList cards for sale
/v1/wallets/{walletId}/catalog/subcategories/{subcategoryId}/cards - POSTPlace an order
/v1/wallets/{walletId}/orders - GETList owned cards
/v1/wallets/{walletId}/cards - POSTReveal a card
/v1/wallets/{walletId}/cards/{soldCardId}/reveal - POSTReveal an invoice
/v1/wallets/{walletId}/invoices/{invoiceId}/cards/reveal - POSTCheck your signature
/v1/diagnostics/signature - POSTSubmit a public key
/v1/enrollments/{invitationId}/keys - POSTProve you hold the key
/v1/enrollments/{invitationId}/proof
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"
}