tencent cloud

Feedback

CreateAccount

Last updated: 2024-02-18 11:09:54

    1. API Description

    Domain name for API request: intlpartnersmgt.tencentcloudapi.com.

    This API is used to create Tencent Cloud customer accounts for first-level resellers/second-level resellers. After the account is created, it will be automatically bound to the partner account.Note:1. Create a Tencent Cloud account. The entered email address and mobile phone number need to be verified by the partner for validity.2. Customers need to add personal information when logging in for the first time.3. This interface needs to be applied for allowlist usage. Please contact the channel manager to initiate the application process.

    A maximum of 5 requests can be initiated per second for this API.

    We recommend you to use API Explorer
    Try it
    API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

    2. Input Parameters

    The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

    Parameter Name Required Type Description
    Action Yes String Common Params. The value used for this API: CreateAccount.
    Version Yes String Common Params. The value used for this API: 2022-09-28.
    Region Yes String Common Params. For more information, please see the list of regions supported by the product.
    AccountType Yes String Account type of a new customer. Valid values: personal, company.
    Mail Yes String Registered email address, which should be valid and correct.
    For example, account@qq.com.
    Password Yes String Account password
    Length limit: 8-20 characters
    A password must contain numbers, letters, and symbols (!@#$%^&*()). Space is not allowed.
    ConfirmPassword Yes String The confirmed password, which must be the same as that entered in the Password field.
    PhoneNum Yes String Customer mobile number, which should be valid and correct.
    A global mobile number within 1-32 digits is allowed, such as 18888888888.
    CountryCode Yes String Customer's country/region code, which can be obtained via the GetCountryCodes API, such as "852".
    Area Yes String Customer's ISO2 standard country/region code, which can be obtained via the GetCountryCodes API. It should correspond to the CountryCode field, such as HK.
    Extended No String Extension field, which is left empty by default.

    3. Output Parameters

    Parameter Name Type Description
    Uin String Account UIN
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Applying to create a customer account

    Applying to create a customer account

    Input Example

    POST / HTTP/1.1
    Host: intlpartnersmgt.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: CreateAccount
    <Common request parameters>
    
    {
        "Extended": "test",
        "CountryCode": "852",
        "Area": "HK",
        "PhoneNum": "18888888888",
        "AccountType": "business",
        "Mail": "account@qq.com",
        "Password": "ABCabc123!",
        "ConfirmPassword": "ABCabc123"
    }
    

    Output Example

    {
        "Response": {
            "Uin": "200000123456",
            "RequestId": "a9e390a7-a1af-42cd-8178-13bd046337a7"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    AuthFailure CAM signature/authentication error.
    FailedOperation.MailIsRegistered FailedOperation.MailIsRegistered
    InternalError Internal error.
    InvalidParameter.AccountTypeContentIncorrect InvalidParameter.AccountTypeContentIncorrect
    InvalidParameter.AreaContentIncorrect InvalidParameter.AreaContentIncorrect
    InvalidParameter.AreaFormatIncorrect InvalidParameter.AreaFormatIncorrect
    InvalidParameter.ConfirmPasswordContentIncorrect InvalidParameter.ConfirmPasswordContentIncorrect
    InvalidParameter.CountryCodeContentIncorrect InvalidParameter.CountryCodeContentIncorrect
    InvalidParameter.CountryCodeFormatIncorrect InvalidParameter.CountryCodeFormatIncorrect
    InvalidParameter.MailFormatIncorrect InvalidParameter.MailFormatIncorrect
    InvalidParameter.PasswordContentIncorrect InvalidParameter.PasswordContentIncorrect
    InvalidParameter.PasswordFormatIncorrect InvalidParameter.PasswordFormatIncorrect
    InvalidParameter.PhoneNumFormatIncorrect InvalidParameter.PhoneNumFormatIncorrect
    InvalidParameterValue.AccountTypeEmpty InvalidParameterValue.AccountTypeEmpty
    InvalidParameterValue.AreaEmpty InvalidParameterValue.AreaEmpty
    InvalidParameterValue.CountryCodeEmpty InvalidParameterValue.CountryCodeEmpty
    InvalidParameterValue.MailEmpty InvalidParameterValue.MailEmpty
    InvalidParameterValue.PasswordEmpty InvalidParameterValue.PasswordEmpty
    InvalidParameterValue.PhoneNumEmpty InvalidParameterValue.PhoneNumEmpty
    UnauthorizedOperation Unauthorized operation.