Domain name for API request: intlpartnersmgt.intl.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:
A maximum of 5 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: 2022-09-28. |
Region | No | String | Common Params. This parameter is not required. |
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 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's mobile number. The caller needs to ensure the validity and correctness of the mobile number. A global mobile number within a range of 1-32 digits is allowed. The system will perform binding limit verification of the mobile number you provide, allowing a maximum of 5 accounts per mobile number. |
CountryCode | Yes | String | Customer's country/region code, which can be obtained via the GetCountryCodes API, such as "852".Parameter value is not allowed to be 7,380,86. |
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. |
VerifyCode | No | String | Verification code. It will be used to verify the validity of the mobile number you provide. When the interface is requested for the first time, a null value can be passed in. The interface will send a 6-digit verification code by SMS to the mobile number you provide, and you need to pass it in again together with other parameters after you receive it. |
Parameter Name | Type | Description |
---|---|---|
Uin | String | Account UIN |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Applying to create a customer account
POST / HTTP/1.1
Host: intlpartnersmgt.intl.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"
}
{
"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. |
FailedOperation.ExceedMaxBindCount | |
FailedOperation.MailIsRegistered | FailedOperation.MailIsRegistered |
FailedOperation.PhoneBindUpper | The number of registered accounts for the current mobile number has reached the maximum limit. Please change the phone number and try again. |
FailedOperation.VerificationCodeIllegal | Incorrect verification code. |
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 |
InvalidParameterValue.UnSupportArea | The current region does not support creating a Tencent Cloud International account. |
UnauthorizedOperation | Unauthorized operation. |
Was this page helpful?