Health Status API

Call this API to query the aggregated health status of recent Non-Document Verification traffic for a given numberType. Use it for circuit breaking, degradation, or routing decisions before starting a new verification flow.

This API does not return the result of a specific signatureId. To retrieve a single transaction result, use Get Result API.

Request Example:

curl -X GET \
  'https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/non-doc-health-status?numberType=NG_BVN' \
  -H 'X-ACCESS-TOKEN:{Your Access Token}'

Request Url

https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/non-doc-health-status
GET

Request Header Parameters

ParameterDescription
X-ACCESS-TOKENstring Please use Token Authentication API to get your access token

Request Parameters

ParameterDescription
numberTypestring Required. The health-check identifier. Must be one of the enum names in the table below (case-insensitive). This is not the same value as numberType in Generate URL API (for example, use NG_BVN, not BVN).

numberType values

Health Status API numberTypeGenerate URL numberTypeRegion
NG_BVNBVNNGA
NG_NINNINNGA
ID_NIKNIKIDN
BR_CPFCPFBRA
US_NATIONALIDNATIONALIDUSA
GB_GBGBGBR

Note: AADHAAR-PAN (IND) from Supported Regions & NumberTypes is not supported by this API and returns PARAMETER_ERROR.

Response Description

ParameterDescription
codeResponse Code of this API call
transactionIdThe request id, the max length is 64
pricingStrategyDeprecated, Always return FREE
messageStatus Code Explanation
dataobject Health status result. See Response.data
extraExtra response info (Exception Message)

Response.data

FieldDescription
numberTypestring Echo of the query enum name, for example NG_BVN
statusstring Aggregated health status. See Response.data.status

Response.data.status

statusDescriptionSuggested action
healthRecent sample volume is sufficient and the error rate is lowContinue with Non-Doc verification
unstableElevated error rate (≥ 10% and < 50%, with minimum sample and error thresholds met)Alert or degrade
offlineHigh error rate (≥ 50%, with minimum sample and error thresholds met)Circuit break or switch to a fallback
nodataFewer than 10 samples in the evaluation windowDo not treat as vendor outage; insufficient data

Important

  • When data.status is offline or unstable, HTTP status is still 200 and top-level code is still SUCCESS.
  • data.status describes vendor health; code describes whether this API call succeeded.
  • Status is derived from recent Non-Doc verification traffic (including delayed failure accounting), not from an active probe call.

Response Code

Status CodeMessage
SUCCESSOK
PARAMETER_ERRORParameter error, please check your request whether has illegal parameters
ERRORServer internal error, please retry later

Authentication failures (for example invalid or expired token) follow the same codes as other Identity Risk APIs. Refer to Token Authentication API.

Response Examples

SUCCESS (health)

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "numberType": "NG_BVN",
    "status": "health"
  },
  "extra": null,
  "transactionId": "a1b2c3d4e5f67890",
  "pricingStrategy": "FREE"
}

SUCCESS (nodata)

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "numberType": "NG_BVN",
    "status": "nodata"
  },
  "extra": null,
  "transactionId": "b2c3d4e5f6789012",
  "pricingStrategy": "FREE"
}

PARAMETER_ERROR

{
  "code": "PARAMETER_ERROR",
  "message": "Parameter error, please check your request whether has illegal parameters",
  "data": null,
  "extra": null,
  "transactionId": "c3d4e5f678901234",
  "pricingStrategy": "FREE"
}