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

Applying for One-Click Trial Use of a Tenant

Scenario

This interface is invoked to apply for one-click trial use of a tenant. It is opened to the Huawei Cloud website.

Method

POST

URI

https://Domain name/apiaccess/rest/ipccprovision/v1/applyTry/applyTenant (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

companyName

String

Yes

Company name

1.2

phone

String

Yes

Mobile number

1.3

phoneVerifyCode

String

Yes

SMS verification code

1.4

email

String

Yes

Email address

Response Description

  • Status code: 200
    Table 2 Response body parameters

    No.

    Parameter

    Type

    Mandatory or Not

    Description

    1

    schema

    Object

    Yes

    Returned message

    1.1

    returnCode

    String

    Yes

    Return code

    • 000: The application is successful. Check the email to obtain the account information. If no email is received, contact operations personnel.
    • 001: The verification code does not exist or has expired. Obtain a new one.
    • 002: Incorrect verification code.
    • 003: An exception occurs during the verification of the verification code. Contact operations personnel.
    • 004: The trial use application fails because a tenant in trial commercial use or commercial use already exists. Contact operations personnel.
    • 005: Resource conflict. Try again 1 minute later.
    • 006: The trial use application fails because there is no voice or multimedia access code for trial use. Contact operations personnel.
    • 205: The number of emails sent today has reached the threshold. Contact operations personnel to change the threshold.

    1.2

    returnMsg

    String

    No

    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:

{
   "companyName":"Company that applies for one-click trial use",
    "phone":"1667328xxxx",
    "phoneVerifyCode":"123456",
    "email":"zhangxxxx@******.com"

  }

Response parameters:

retCode: "000"
retMsg: "success"