Help Center/ Cognitive Engagement Center/ API Reference/ Other Interfaces Reference/ Generating a Verification Code for One-Click Trial Use
Updated on 2023-09-27 GMT+08:00

Generating a Verification Code for One-Click Trial Use

Scenario

This interface is invoked to generate a verification code for one-click trial use. It is opened to the Huawei Cloud website.

Method

POST

URI

https://Domain name/apiaccess/rest/ipccprovision/v1/applyTry/generateverifycode (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request body parameters

No.

Parameter

Type

Mandatory or Not

Description

1

requestBody

Object

Yes

-

1.1

phone

String

Yes

Mobile number

Response Description

  • Status code: 200
    Table 2 Response body parameters

    No.

    Parameter

    Type

    Mandatory or Not

    Description

    1

    schema

    Object

    Yes

    -

    1.1

    retCode

    String

    No

    Return code

    • 200: The verification code is sent successfully.
    • 201: The verification code already exists. Send it later.
    • 202: The SMS verification code fails to be sent. Contact operations personnel.
    • 204: The SMS message fails to be sent. Contact operations personnel.
    • 205: The number of emails sent today has reached the threshold. Contact operations personnel to change the threshold.

    1.2

    retMsg

    String

    No

    Return description

  • Status code: 400

    Incorrect request. Check the request path and parameters.

  • Status code: 401

    Unauthorized operation. 1. Check whether you have purchased related services. 2. Contact customer service to check the status of your account.

  • Status code: 403

    Authentication fails.

  • Status code: 404

    The requested content is not found. Check the request path.

  • Status code: 500

    Business failure. Check the values of parameters in the request.

Error Codes

None

Example

Request header: none

Request parameters:

{
    "phone":"1667328xxxx"
  }

Response parameters:

retCode: "200"
retMsg: "The short message is sent successfully."