Domain name for API request: ip.tencentcloudapi.com.
This API is used to create a Tencent Cloud account in the International Partner platform for a customer. After registration, the customer will be automatically bound to the partner account.
Notes:
A maximum of 20 requests can be initiated per second for this API.
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: 2021-04-09. |
Region | No | String | Common Params. This parameter is not required for this API. |
AccountType | Yes | String | Account type of a new customer. Valid values: personal , company . |
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 special symbols [!@#$%^&*()]. Spaces are not allowed. |
ConfirmPassword | Yes | String | Confirm the password. It must be the same as 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 | Expanded field, which is left empty by default. |
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. |
POST / HTTP/1.1
Host: ip.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAccount
<Common request parameters>
{
"Extended": "11111111",
"CountryCode": "852",
"Area": "HK",
"PhoneNum": "18888888888",
"AccountType": "business",
"Mail": "account@qq.com",
"Password": "111111",
"ConfirmPassword": "111111"
}
{
"Response": {
"Uin": "200000123456",
"RequestId": "a9e390a7-a1af-42cd-8178-13bd046337a7"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. Please try again later. |
FailedOperation.MailIsRegistered | The email address has already been registered. |
InternalError | Internal error. Please try again later. |
InvalidParameter.AccountTypeContentIncorrect | Incorrect account type. |
InvalidParameter.AreaContentIncorrect | Incorrect region content. |
InvalidParameter.AreaFormatIncorrect | Incorrect region format. |
InvalidParameter.ConfirmPasswordContentIncorrect | Incorrect confirmed password. |
InvalidParameter.CountryCodeContentIncorrect | Incorrect country/region code content. |
InvalidParameter.CountryCodeFormatIncorrect | Incorrect country/region code format. |
InvalidParameter.MailFormatIncorrect | Incorrect email format. |
InvalidParameter.PasswordContentIncorrect | Incorrect password content. |
InvalidParameter.PasswordFormatIncorrect | Incorrect password format. |
InvalidParameter.PhoneNumFormatIncorrect | Incorrect mobile number format. |
InvalidParameterValue.AccountTypeEmpty | The account type is required and cannot be left empty. |
InvalidParameterValue.AreaEmpty | The region is required and cannot be left empty. |
InvalidParameterValue.CountryCodeEmpty | The country/region code is required and cannot be left empty. |
InvalidParameterValue.MailEmpty | The email is required and cannot be left empty. |
InvalidParameterValue.PasswordEmpty | The password is required and cannot be left empty. |
InvalidParameterValue.PhoneNumEmpty | The mobile number is required and cannot be left empty. |
UnauthorizedOperation | The operation is unauthorized. |
本页内容是否解决了您的问题?