Request Example:
Bash
curl -X POST \
https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/customer-profile/update-user-id \
-H 'Content-Type: application/json' \
-H 'X-ACCESS-TOKEN:{Your Access Token}' \
-d '
{
"oldUserId": "old123",
"newUserId": "new123"
}
'
Indonesia Singapore Philippines Thailand Malaysia
https://api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/customer-profile/update-user-id
POST (application/json)https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/customer-profile/update-user-id
POST (application/json)https://ph-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/customer-profile/update-user-id
POST (application/json)https://th-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/customer-profile/update-user-id
POST (application/json)https://my-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/customer-profile/update-user-id
POST (application/json)
Parameter Description oldUserId string the userId from Generate URL API 's requestnewUserId string the new userId. only allows digits and alphabet,and length must between [1,64]
Parameter Description code Response's Status Code transactionId The request id, the max length is 64 pricingStrategy Deprecated, Always return FREEmessage Status Code Explanation data object ,Always return null for this APIextra Extra response info (Exception Message)
Status Code Message SUCCESS OK PARAMETER_ERROR Invalid ID number, please check it ERROR Server error.
pass
{
"code": "SUCCESS",
"message": "OK",
"transactionId": "8bb2fdc4142bdcf3",
"data": null
}
case1 case2
{
"code": "PARAMETER_ERROR",
"message": "The oldExternalUserId does not exists",
"data": null,
"extra": null,
"transactionId": "8bb2fdc4142bdcf3",
"pricingStrategy": "FREE"
}{
"code": "PARAMETER_ERROR",
"message": "The newExternalUserId already exists",
"data": null,
"extra": null,
"transactionId": "8bb2fdc4142bdcf3",
"pricingStrategy": "FREE"
}
JSON
{
"code":"ERROR",
"message":"Server error",
"data":null,
"extra":null,
"transactionId":"1deae5a13ef2bd5e"
}