All Products
Search
Document Center

Phone Number Verification Service:CheckVerification

Last Updated:Apr 07, 2024

Verifies a verification code.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceSidstringNo

The service ID that is displayed in the Phone Number Verification Service console.

FA00000000000001
TostringNo

The mobile phone number of the recipient. You must add the country code to the beginning of the mobile phone number.

6212345****01
CodestringYes

The verification code.

1234
VerificationIdstringYes

The unique authentication ID that is returned by calling the StartVerification operation.

rJXlaR2q5LpKfREtpRPMBfDVQvELZwmBbK5yVR7gr3nLbNAcolLGPYCJaVHt/i+I

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request. An ID is a unique identifier that Alibaba Cloud generates for a request.

HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62
Messagestring

The message that was returned.

OK
Modelobject

The data that was returned for the successful request.

{ "phoneNumber": "", "channel": "", "verificationId": "", "status": "approved" }
Codestring

The HTTP status code that was returned.

OK
Successstring

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62",
  "Message": "OK",
  "Model": {
    "phoneNumber": "",
    "channel": "",
    "verificationId": "",
    "status": "approved"
  },
  "Code": "OK",
  "Success": "true"
}

Error codes

HTTP status codeError codeError message
400Invalid.ParametersThe parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-03The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400