Shared Traffic Package Inquiry
Updated at:2025-10-16
Description
Query information for shared traffic packages.
Request structure
Plain Text
1 POST /v{version}/eiptp/price?clientToken={clientToken} HTTP/1.1
2 Host: eip.bj.baidubce.com
3 Authorization: authorization string
4 {
5 "reservationLength": reservationLength,
6 "capacity": capacity,
7 "deductPolicy": deductPolicy,
8 "packageType": packageType
9 }
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number |
| clientToken | String | No | Query | Idempotency Token |
| reservationLength | int | Yes | RequestBody | Validity period of the shared traffic package (in months): 1/6/12 |
| capacity | String | Yes | RequestBody | Capacity of the shared traffic package: For 1 validity: optional specifications include "10 G"/"50 G"/"100 G"/"500 G"/"1 T"/"5 T"/"10 T"/"50 T"; for 6 validity: "60 G"/"300 G"/"600 G"/"3 T"/"6 T"/"30 T"/"60 T"/"300 T"; for 12 validity: "1 T"/"10 T"/"50 T"/"100 T"/"500 T"/"1 P". Select the capacity according to corresponding specifications. |
| deductPolicy | String | No | RequestBody | Shared traffic package billing policies, including "FullTimeDurationPackage" (full-time) or "TimeDurationPackage" (off-peak), defaulted as "FullTimeDurationPackage. |
| packageType | String | No | RequestBody | Internet connection type of the shared traffic package, currently supporting "WebOutBytes" dynamic, defaulted as "WebOutBytes” |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| price | String | Price of shared traffic package |
Request example
Plain Text
1 POST /v1/eiptp/price HTTP/1.1
2 Host: eip.bj.baidubce.com
3 Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2021-08-17T08:26:52Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4 {
5 "reservationLength": 1,
6 "capacity": "10G",
7 "deductPolicy": "FullTimeDurationPackage",
8 "packageType": "WebOutBytes"
9 }
Response example
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3 Date: Tue, 17 Aug 2021 08:26:53 GMT
4 Content-Type: application/json;charset=UTF-8
5 Server: BWS
6 {
7 "price": "7.20000"
8 }
