Documentation

OGS Setting


Request Example:

curl -X POST "https://api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/aml/ogs/setting" \
-H "X-ACCESS-TOKEN: {Your Access Token}" \
-H "Content-Type: application/json" \
-d '{

    "userId": "user723229497519527000",
    "enableOgs": "true"
}'

Request Url

https://api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/aml/ogs/setting
POST (application/json)
https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/aml/ogs/setting
POST (application/json)
https://th-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/aml/ogs/setting
POST (application/json)
https://ph-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/aml/ogs/setting
POST (application/json)

Request Header Parameters

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

Request Parameters

Parameter)Description
userIdstring The unique business identifier for the user.
enableOgsboolean Whether to enable OGS (On-going Screening) feature.

Response Description

ParameterDescription
codeenum Response's Status Code.
transactionIdstring The request id, the max length is 64.
messagestring Status Code Explanation.
dataobject The result of the comparison.
extraobject Extra response info (Exception Message).

Response.code

Status CodeMessage
SUCCESSOK
PARAMETER_ERRORUser ID can not be empty
OgsSetting can not be empty
AML_CASE_NOT_FOUND_FOR_USERCase not found for userId
AML_SAME_STATE_CANNOT_REPEATThe same state cannot be changed repeatedly
ERRORServer error.

Response.data

FieldDescription
profileMonitoringRecordDatelong The time when OGS was first enabled (if OGS was interrupted and re-enabled after 365 days, this time will be refreshed)
lastOgsTaskDatelong The start time of the ongoing 365-day OGS task (this date will not refresh upon toggling OGS on/off repeatedly)
ogsTaskDaysCountdowninteger The remaining number of days in the 365-day countdown
autoRenewTaskbooleanWhether the OGS task will automatically renew after countdown completion

Response Examples

SUCCESS

{
    "code": "SUCCESS",
    "message": "OK",
    "data": {
        "profileMonitoringRecordDate": 1761534086081,
        "lastOgsTaskDate": 1761534086000,
        "ogsTaskDaysCountdown": 364,
        "autoRenewTask": true
    },
    "extra": null,
    "transactionId": "70e9d6211473af0f",
    "pricingStrategy": "FREE"
}

PARAMETER_ERROR (Missing userId)

{
  "code": "PARAMETER_ERROR",
  "message": "User ID can not be empty",
  "data": null,
  "transactionId": "b203e5f74d9abf11",
  "pricingStrategy":"FREE"
}

AML_CASE_NOT_FOUND_FOR_USER

{
  "code": "AML_CASE_NOT_FOUND_FOR_USER",
  "message": "Case not found for userId",
  "data": null,
  "transactionId": "f123c5a6d89a72f1",
  "pricingStrategy":"FREE"
}

AML_SAME_STATE_CANNOT_REPEAT

{
  "code": "PARAMETER_ERROR",
  "message": "The same state cannot be changed repeatedly",
  "data": null,
  "transactionId": "c762ad19fe8d1a77",
  "pricingStrategy":"FREE"
}

ERROR

{
    "code":"ERROR",
    "message":"Server error",
    "data":null,
    "extra":null,
    "transactionId":"1deae5a13ef2bd5e",
    "pricingStrategy":"FREE"

}