扩展代理
Updated:
本文档详细介绍了如何为各类IP地址设置自动续期。请注意,必须按时续期IP地址,才能保留原有的地址。
计算扩展名
此端点可帮助您计算费用。批量折扣和租赁期限折扣与我们服务提供的类似。
最终目标:
路径参数
名称 | 价值 | 描述 |
|---|---|---|
授权 |
| 您的个人 API 密钥 (如何获取) |
代理类型 |
| 您要扩展的代理类型 |
请求正文
名称 | 类型 | 描述 |
|---|---|---|
ids | 字符串 | 单个 ID 或用逗号分隔、用 '[ ]' 括起的 ID 数组 |
优惠券 | 字符串 | 您要添加的评论 |
periodId | 字符串 | 您在 /reference/list/{type} 请求中选择的时间段 ID 或固定时间段代码,例如 1m |
paymentId | 字符串 | 支付系统的标识符。“balance”对应“余额”,“card”对应“已添加至账户的卡片”。 |
名称 | 类型 | 描述 |
|---|---|---|
orderIds | 字符串 | 单个 ID 或用逗号分隔、用 '[ ]' 括起的 orderID 数组 |
优惠券 | 字符串 | 您要添加的评论 |
periodId | 字符串 | 您在 /reference/list/{type} 请求中选择的时间段 ID 或固定时间段代码,例如 1m |
paymentId | 字符串 | 支付系统的标识符。将“balance”译为“余额”,将“card”译为“已添加至账户的卡片”。 |
示例(例如:ipv4)
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/prolong/calc/ipv4
{
"ids": ["10"],
"periodId": "1m",
"coupon": "",
"paymentId": "balance"
}回复
{
"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,
"uptime": false
}
],
"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,
"uptime": false
}
],
"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
}
]
}创建续订订单
在本节中,您将学习如何创建续订订单。
最终目标:
路径参数
名称 | 价值 | 描述 |
|---|---|---|
授权 |
| 您的个人 API 密钥(如何获取) |
代理类型 |
| 您希望延期的代理类型 |
请求正文
名称 | 类型 | 描述 |
|---|---|---|
ids | 字符串 | 单个ID或用逗号分隔、用“[ ]”括起的ID数组 |
优惠券 | 字符串 | 您要添加的评论 |
periodId | 字符串 | 您在 /reference/list/{type} 请求中选择的时间段 ID 或固定时间段代码,例如 1m |
paymentId | 字符串 | 支付系统的标识符。将“balance”译为“余额”,将“card”译为“已添加至您账户的卡片”。 |
名称 | 类型 | 描述 |
|---|---|---|
orderIds | 字符串 | 单个 ID 或用逗号分隔、用 '[ ]' 括起的 orderID 数组 |
优惠券 | 字符串 | 您要添加的评论 |
periodId | 字符串 | 您在 /reference/list/{type} 请求中选择的时间段 ID 或固定时间段代码,例如 1m |
paymentId | 字符串 | 支付系统的标识符。“balance”指余额,“card”指添加到您账户中的卡片。 |
示例(例如:ipv4)
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/prolong/make/ipv4
{
"ids": ["10"],
"periodId": "1m",
"coupon": "",
"paymentId": "balance"
}回复
{
"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
}
]
}