Skip to main content
Obtain basic risk control information from the device and environment. Used for security and fraud risk assessment.

Parameters

No input parameters required.

Success Callback

PropertyTypeDescription
successBooleanQuery success status
resultCodeString0 success · 1001 network error · 1002 internal error
resultMessageStringHuman-readable status message
sessionIdStringSession identifier
tokenIdStringDevice security identifier
osTypeStringOperating system type
osVersionStringOperating system version
terminalTypeStringDevice category (e.g. APP, H5)
clientIpStringDevice IP address
envInfoStringJSON string with extended environment metadata

envInfo Fields

FieldDescription
tokenIdDevice security identifier
osTypeOS type
osVersionOS version
terminalTypeDevice category
clientIpDevice IP
clientKeyClient key
cashierSdkVersionCashier SDK version
localeDevice locale
deliveryTokenDelivery token
channelChannel
sourcePlatFormSource platform
networkTypeNetwork type
expandableInfoExtensible metadata map

Code Example

my.call('requestRiskBaseInfo', {
  success: (res) => {
    my.alert({ content: 'success: ' + JSON.stringify(res) });
  },
  fail: (error) => {
    my.alert({ content: error.errorMessage || error.error });
  }
});