tencent cloud

OrderFlowPackage

Download
フォーカスモード
フォントサイズ
最終更新日: 2026-05-21 10:26:08

1. API Description

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

Purchase a Prepaid Traffic Package

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: OrderFlowPackage.
Version Yes String Common Params. The value used for this API: 2021-01-19.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
PackageType Yes String Traffic package specification type. Values are as follows:
DEVICE_1_FLOW_20G,DEVICE_2_FLOW_50G,
DEVICE_3_FLOW_100G,
DEVICE_5_FLOW_500G represents traffic packages of 20G, 50G, 100G, and 500G gear selection.
Gear selection also impacts the bandwidth cap of the data transfer plan.
20G: Bind up to 1 device.
50G: Bind up to 2 devices.
100G: Bind up to 3 devices.
500G: Bind up to 5 devices.
DeviceList.N Yes Array of String Device ID list bound to the data transfer plan. Number of bundled instances depends on the specification tiers of the plan.
20G: Bind up to 1 device.
50G: Bind up to 2 devices.
100G: Bind up to 3 devices.
500G: Bind up to 5 devices.
AutoRenewFlag Yes Boolean Whether the service is automatically renewed conflicts with traffic truncation. You can only enable one option.
PackageRegion Yes Integer Region flag. 0: Chinese mainland, 1: outside the Chinese mainland
FlowTruncFlag No Boolean Whether traffic truncation is enabled. This option conflicts with auto renewal.
AutoVoucher No Boolean Whether to automatically select voucher. Default false.
Selection strategy for multiple vouchers: Deduct vouchers by this priority - voucher that can offset the total amount of the Payment Order, voucher with the earliest Expiration, voucher with the maximum deductible amount, voucher with the minimum balance, cash voucher. Only one voucher can be deducted at most.
VoucherIds.N No Array of String Designated voucher ID. This parameter is invalid when selecting voucher automatically. Only one voucher can be input.
Note: If the designated voucher does not meet the order deduction conditions, proceed with normal payment without deducting the voucher.

3. Output Parameters

Parameter Name Type Description
ResourceId String Unique resource ID of the data transfer plan
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 Example 1

Input Example

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

{
    "PackageType": "DEVICE_1_FLOW_20G",
    "DeviceList": [
        "mna-test1",
        "mna-test2"
    ],
    "AutoRenewFlag": true,
    "PackageRegion": 1
}

Output Example

{
    "Response": {
        "RequestId": "1206563f-f13f-4647-aaa8-37fa86954cc4-1",
        "ResourceId": "56d11777-50f7-4c60-9c89-e7076c8529a9-0"
    }
}

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.TransactionException Transaction process exception
InternalError Internal error.
InvalidParameter Parameter error.
LimitExceeded The quota limit is exceeded.
OperationDenied Operation denied.
OperationDenied.InsufficientBalance Insufficient balance
OperationDenied.NotAllowedToPay No Payment Permission
OperationDenied.UnauthorizedUser Not identity verified
ResourceInUse The resource is occupied.
UnauthorizedOperation Unauthorized operation.
UnauthorizedOperation.NoPermission Service permission not verified
UnauthorizedOperation.UnopenedLiveService Live stream service not activated

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック