动态流量
动态流量
查询动态流量产品
GET /open-api/v1/dynamic/traffic/products 接口参考。
查询动态流量产品
GET /open-api/v1/dynamic/traffic/products
Base URL:https://api.ipbunker.online/gin。
认证
在请求头传入 X-API-Key。
请求示例
curl --request GET \
--url 'https://api.ipbunker.online/gin/open-api/v1/dynamic/traffic/products' \
--header 'Accept: application/json' \
--header 'X-API-Key: <YOUR_API_KEY>'
成功响应中的 data
接口使用 code、msg、data、next 响应结构。HTTP 200 也可能包含非零业务错误码;先检查 code。
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
data |
object[] |
否 | — | 业务数据;失败时为 null |
data[].product_code |
string |
否 | — | 稳定产品编码,采购时原样传入 |
data[].name |
string |
否 | — | 按 X-LANG 返回的产品名称 |
data[].fixed_traffic_gb |
string |
否 | — | 固定流量产品的流量 GB;自定义数量产品为空 |
data[].allow_custom_quantity |
boolean |
否 | — | 是否允许调用方指定采购流量 |
data[].min_purchase_gb |
string |
否 | — | 最小采购流量 GB |
data[].max_purchase_gb |
string |
否 | — | 最大采购流量 GB |
data[].purchase_step_gb |
string |
否 | — | 采购流量步长 GB |
data[].valid_days |
integer |
否 | format: int32 | 购买后有效天数;空值表示永久有效 |
data[].currency |
string |
否 | — | 结算币种 |
data[].tiers |
object[] |
否 | — | 阶梯价格列表 |
data[].tiers[].min_exclusive |
string |
否 | — | 阶梯流量下界(不含),GB |
data[].tiers[].max_inclusive |
string |
否 | — | 阶梯流量上界(含),GB;空值表示无上限 |
data[].tiers[].unit_price |
string |
否 | — | 本阶梯每 GB 单价,USD 十进制字符串 |
接口说明
查询当前可购买的动态流量产品与阶梯单价;产品编码是采购接口的稳定入参