Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nexalayer.net/llms.txt

Use this file to discover all available pages before exploring further.

动态订单

动态代理订单用于购买按流量使用的动态代理资源。

创建动态订单

curl -X POST "https://api.wanyuagent.com/api/open/app/order/create/v2" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "orderType": "dynamic_proxy",
    "poolId": "<dynamic_product_no>",
    "trafficAmount": 1,
    "unitPrice": 5,
    "totalAmount": 5,
    "remark": "API dynamic order",
    "userId": 1001,
    "ipCount": 1,
    "duration": 30,
    "unit": 1
  }'

字段说明

字段类型必填说明
orderTypestring动态代理使用 dynamic_proxy
poolIdstring动态代理产品编号。
trafficAmountnumber流量数量。
userIdnumber目标用户 ID。
unitPricenumber单价。
totalAmountnumber总金额。
remarkstring订单备注。

流量查询

查询用户所有产品的动态流量:
curl -X GET "https://api.wanyuagent.com/api/user/1001/products-flow" \
  -H "Authorization: Bearer <token>"
查询指定产品剩余流量:
curl -X GET "https://api.wanyuagent.com/api/user/1001/remaining-flow/<dynamic_product_no>" \
  -H "Authorization: Bearer <token>"
更完整的动态代理提取、流量明细和子账户流量查询见 动态流量与提取

查询动态订单列表

curl -X GET "https://api.wanyuagent.com/api/dynamic?page=1&page_size=10&pool_type=<dynamic_product_no>" \
  -H "Authorization: Bearer <token>"
查询参数:
参数说明
page页码,默认 1
page_size每页数量,最大 100
user_id指定用户 ID。代理商只能查询自己和下级用户。
agent_id管理员按代理商查询。
order_no按订单号或应用订单号搜索。
pool_type动态产品编号筛选。

查询动态订单详情

按订单 ID 查询:
curl -X GET "https://api.wanyuagent.com/api/dynamic/123" \
  -H "Authorization: Bearer <token>"
按订单号或应用订单号查询:
curl -X GET "https://api.wanyuagent.com/api/dynamic/order-info/DYN202605260001abc123" \
  -H "Authorization: Bearer <token>"
动态子账户管理见 动态子账户