扩展代理
本文档详细介绍了如何为各种类型的 IP 地址设置自动续费。请注意,IP 地址必须按时续费才能保持不变。
计算扩展
该终端可帮助您计算成本。批量和租期折扣与我们的服务类似。
终点:
POSThttps://proxy-seller.com/personal/api/v1/{YourApiKey}/prolong/calc/{type}
路径参数
名称 | 价值 | 说明 |
|---|---|---|
授权 |
| 您的个人应用程序接口密钥 (如何获得) |
代理类型 |
| 要扩展的代理类型 |
请求正文
名称 | 类型 | 说明 |
|---|---|---|
ids | 数量 | 单个 ID 或"[ ]"中的 ID 数组,以逗号 (如何获得) |
优惠券 | 字符串 | 您要添加的评论 |
periodId | 字符串 | 您在/reference/list/{type} 要求 |
付款标识 | 字符串 | 支付系统的 ID。'1'表示余额,'43'表示添加到账户中的卡。 |
示例(例如 IPv4)
https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/prolong/calc/ipv4回应
{
"status": "success",
"data": {
"warning": "",
"balance": 40.4,
"total": 35.1,
"quantity": 5,
"currency": "USD",
"discount": 0.22,
"items": [
{
"id": 10,
"order_id": 1000000,
"order_number": "1000000_57471911",
"base_order_number": "1000000_57471911",
"ip": "127.0.0.1",
"port_http": 80,
"port_socks": 443,
"login": "login",
"password": "password",
"auth_ip": "127.0.0.2",
"country": "USA",
"date_start": "d.m.Y H:i:s",
"date_end": "d.m.Y H:i:s",
"comment": "d.m.Y H:i:s",
"status": "ACTIVE",
"rotation": "5",
"link_reboot": "https://proxy-seller.com/api/proxy/reboot?token=12345",
"can_prolong": true
}
],
"orders": 2
},
"errors": []
}{
"status": "error",
"data": {
"warning": "Insufficient funds. Total $2. Not enough $33.10",
"balance": 2,
"total": 35.1,
"quantity": 5,
"currency": "USD",
"discount": 0.22,
"items": [
{
"id": 10,
"order_id": 1000000,
"ip": "127.0.0.1",
"port_http": 80,
"port_socks": 443,
"login": "login",
"password": "password",
"auth_ip": "127.0.0.2",
"country": "USA",
"date_start": "d.m.Y H:i:s",
"date_end": "d.m.Y H:i:s",
"comment": "d.m.Y H:i:s",
"status": "ACTIVE",
"rotation": "5",
"link_reboot": "https://proxy-seller.com/api/proxy/reboot?token=12345",
"can_prolong": true
}
],
"orders": 2
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Set existed [periodId] from reference",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not found",
"code": 0,
"customData": null
}
]
}创建续订订单
在本节中,您将学习如何创建续订订单。
终点:
POSThttps://proxy-seller.com/personal/api/v1/{YourApiKey}/prolong/make/{type}
路径参数
名称 | 价值 | 说明 |
|---|---|---|
授权 |
| 您的个人应用程序接口密钥 (如何获得) |
代理类型 |
| 要延长的代理类型 |
请求正文
名称 | 类型 | 说明 |
|---|---|---|
ids | 数量 | 一个或数组的 ID 为"[ ]",用逗号分隔 |
优惠券 | 字符串 | 您要添加的评论 |
periodId | 字符串 | 您在/reference/list/{type}请求中选择的时间段的 ID |
付款标识 | 字符串 | 支付系统 ID "1"--余额,"43"--您在柜中添加的卡 |
示例(例如 IPv4)
https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/prolong/make/ipv4回应
{
"status": "success",
"data": {
"orderId": 3388536,
"total": 35.1,
"listBaseOrderNumbers": [
"1000000_57471911"
],
"balance": 40.4,
},
"errors": []
}{
"status": "error",
"data": {
"warning": "Insufficient funds. Total $2. Not enough $33.10",
"balance": 2,
"total": 35.1,
"quantity": 5,
"currency": "USD",
"discount": 0.22,
"items": [
{
"id": 10,
"order_id": 1000000,
"ip": "127.0.0.1",
"port_http": 80,
"port_socks": 443,
"login": "login",
"password": "password",
"auth_ip": "127.0.0.2",
"country": "USA",
"date_start": "d.m.Y H:i:s",
"date_end": "d.m.Y H:i:s",
"comment": "d.m.Y H:i:s",
"status": "ACTIVE",
"rotation": "5",
"link_reboot": "https://proxy-seller.com/api/proxy/reboot?token=12345",
"can_prolong": true
}
],
"orders": 2
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Set existed [periodId] from reference",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not found",
"code": 0,
"customData": null
}
]
}