Nilinde
Using the API

Errors

Nilinde uses standard HTTP status codes. Every error body has this shape:

JSONCode
{ "statusCode": 402, "code": "INSUFFICIENT_FUNDS", "message": "Insufficient wallet balance" }
FieldPresentMeaning
statusCodealwaysThe HTTP status, repeated in the body
messagealwaysA human-readable explanation; may change, so don't parse it
codewhen there is oneA stable, machine-readable code; branch on this
retryableon 502true when retrying the same request later can succeed
requestIdon 502The failed verification's id, to look it up or quote to support
issueson 400One entry per invalid field, each with a path and a message

Status codes

StatusCodeMeaningWhat to do
200Verification completed, including "not found" answersRead result
400The input failed validationFix the fields listed in issues
401Missing, unknown or revoked API keyCheck the Authorization header
402INSUFFICIENT_FUNDSThe wallet can't cover this call (live keys only)Top up in the dashboard
403API_NOT_IN_PLANYour bundle doesn't include this APIContact Nilinde to add it
403NO_ACTIVE_SUBSCRIPTIONYour organization has no active bundleContact Nilinde
404No such verification, or it belongs to another environmentCheck the id and key
409The Idempotency-Key was used for a different request, or is still runningUse a new key, or wait and retry
429QUOTA_EXCEEDEDYour bundle's monthly call quota is used upWait for the next month or upgrade
429Rate limit exceededBack off and retry (see Rate limits and quota)
502PROVIDER_UNAVAILABLE, PROVIDER_ERROR, PROVIDER_BAD_RESPONSE, …The source failed or didn't answer. You are not charged; the charge is refunded automaticallyRetry later if retryable is true

"Not found" is not an error. If a source answers that it has no record, the verification completes with 200, status: "COMPLETED" and result.found: false. It is charged, because the source was queried and answered.

Last modified on