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/static/order/renew" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "order_no": "STA202605260001abc123",
    "duration": 30,
    "unit": 1,
    "cycleTimes": 1
  }'
续费参数会因产品和订单类型而不同。请根据实际产品传入目标订单号或实例标识、续费时长和必要的价格字段。

续费前检查

  1. 使用 /open/app/static/order/list/v2 查询目标订单。
  2. 确认当前用户有权限续费该订单。
  3. 使用 /open/app/dashboard/info/v2/open/app/user/balance/current 确认余额充足。
  4. 使用与静态订单创建一致的时长规则。
如果余额不足或订单不支持续费,接口会返回非 0 code 或 HTTP 错误。