Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solutionDOCS

      Authentication Verification

      Use this interface to verify the legality of the one-time password (OTP) received by the user. 

      Request parameters

      authenticationTypeEnumRequired

      Indicates the authentication type. Possible value is:

      • OTP: One-time password
      authenticationRequestIdString(64)Required
      The unique ID of an authentication generated by merchants. The value of this field must be identical to that of authenticationRequestId in the Authentication Initiation interface.
      authenticationValueString(256)Required
      Authentication value

      Response parameters

      resultResultRequired

      The request result, which contains information related to the request result, such as status and error codes.

      resultCodeString(16)Required
      Result code
      resultStatusEnumRequired

      Result status. Possible values are: 

      • S: Indicates that the result status is successful. 
      • F: Indicates that the result status is failed. 
      • U: Indicates that the result status is unknown.
      resultMessageString(64)Optional
      Result message
      isPassedBooleanOptional
      Indicates whether the authentication is passed.

      Result/Error codes

      CodeValueMessage
      SUCCESSSSuccess
      PARAM_ILLEGALFIllegal parameters exist. For example, a non-numeric input, or an invalid date.
      PROCESS_FAILFA general business failure occurred. Do not retry.
      UNKNOWN_EXCEPTIONUAn API calling is failed, which is caused by unknown reasons.
      KEY_NOT_FOUNDFThe key is not found.
      API_INVALIDFAPI is invalid or not active.
      CLIENT_INVALIDFThe client is invalid.
      SIGNATURE_INVALIDFThe signature is invalid.
      METHOD_NOT_SUPPORTEDFThe server does not implement the requested HTTP method.
      REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.
      ACCESS_DENIEDFAccess denied
      USER_NOT_EXISTFThe user does not exist.
      USER_STATUS_ABNORMALFThe user status is abnormal.
      INVALID_ACCESS_TOKENFThe access token is invalid.
      VERIFY_TIMES_EXCEED_LIMITFThe verification code was failed too many times. The user must get a new verification.
      VERIFY_UNMATCHEDFThe verification code is invalid.
      AUTHENTICATION_REQUEST_ID_INVALIDThe value of authenticationRequestId is invalid
      Request/Response Code

      Request

      Method

      POST

      Endpoint

      v1/users/verifyAuthentication

      Header

      Accept: application/json

      URL

      Domain name

      Request Body
      Request parameters
      Response Body
      Body content