Errors

Every error has the same shape:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Unknown field: pan",
    "details": { "unknown": ["pan"], "fields": ["name", "gstin", "bank_ifsc"] }
  }
}
FieldAlways presentMeaning
codeYesStable, machine-readable. Branch on this
messageYesOne sentence a person can read
detailsNoWhat exactly was wrong: the unknown keys, the allowed values, the existing id

Codes

StatusCodeMeaningWhat to do
400VALIDATION_ERRORA value is missing or malformed, or names a field the object doesn't haveFix the request. details names the bad input and, where it helps, what's allowed
400INVALID_JSONThe body isn't valid JSON, or isn't a JSON objectSend a JSON object
401UNAUTHORIZEDMissing, wrong or expired keySee Authentication
403FORBIDDENThe key lacks the permissionUse a key with that scope
404NOT_FOUNDNo such object, field or record in your organizationCheck the id. Ids from another organization also answer 404
409CONFLICTThe slug or key already existsdetails.id is the existing one; use it instead
422FIELD_RETIREDA value was sent for a retired fieldDrop the field from the request. Retired fields keep their history but take no new values

All or nothing

A request that sets several values is checked in full before anything is written. If one key is unknown or retired, nothing is changed.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.