tencent cloud

ApproveSubAgentApply
Last updated: 2025-10-30 21:45:28
ApproveSubAgentApply
Last updated: 2025-10-30 21:45:28

1. API Description

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

This API is used to approve applications for second-level resellers.
Invocation Role: Distributor.

A maximum of 20 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: ApproveSubAgentApply.
Version Yes String Common Params. The value used for this API: 2022-09-28.
Region No String Common Params. This parameter is not required.
SubAgentUin Yes Integer Second-level reseller UIN.
ApproveType Yes String Approval type. Only pass and reject are supported.
RejectReason No String Reason for rejection. Fill in only when ApproveType is reject.

3. Output Parameters

Parameter Name Type Description
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.

4. Example

Example1 Approval Passed

Input Example

POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ApproveSubAgentApply
<Common request parameters>

{
    "SubAgentUin": 100000,
    "ApproveType": "pass"
}

Output Example

{
    "Response": {
        "RequestId": "91158930-****-496f-****-8f32f5edabcc"
    }
}

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
FailedOperation.AccountTypeNotCompany The account type is not a corporate account.
FailedOperation.BindOrganizationAccount The account is a group account and cannot be bound as a sub-customer.
FailedOperation.ClientBalanceIsLessOrEqualZero The sub-customer balance is less than zero.
FailedOperation.ClientBuySP The sub-customer has purchased an sp package.
FailedOperation.ClientCreateShareUnit The sub-customer has created a shared unit.
FailedOperation.ClientJoinShareUnit The sub-customer has joined a shared unit.
FailedOperation.ExceedMaxBindCount The maximum number of bindable sub-accounts has been exceeded.
FailedOperation.RealNameInApproval Real-Name pending approval.
FailedOperation.RealNameNotCompleted User has not completed enterprise identity verification.
FailedOperation.RealNameReject Identity audit was rejected.
FailedOperation.RealNameTypeIllegal Illegal real-name type.
FailedOperation.ResellerNotApply Unsubmitted application for second-level reseller.
FailedOperation.UinAlreadyKA Tencent cloud ka account cannot become a sub-customer.
FailedOperation.UinAppliedAgent The uin has already applied to become a reseller.
FailedOperation.UinNotReseller UIN is a non-reseller (master reseller, reseller, sub-reseller) account.
InvalidParameterValue.UinAlreadyAppliedClient The user has already applied to become a sub - customer of another reseller.
InvalidParameterValue.UinAlreadyClient The user has become a sub-customer of another reseller.
InvalidParameterValue.UinAlreadyReseller The user has become a second - level reseller of another partner.
InvalidParameterValue.UinIsSubAccount The user is a sub-account.
OperationDenied.ServiceBusy System busy. Please try again later.
UnauthorizedOperation.UinNoAuth The current user doesn’t have permission for the operation.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback