Auto-extend by order IDs
Endpoint:
Toggles auto-renewal for whole orders — every IP in the specified orders will be automatically extended by rentPeriodDays before they expire. To toggle auto-extend on specific IPs instead, use Auto-extend by IP addresses.
Name | Type | Description |
|---|---|---|
apiKey* | String | Your personal API key. |
Request body
Name | Type | Description |
|---|---|---|
proxyType* | string | One of: |
orderIds* | array | Order IDs to toggle auto-extend on. All IPs in each order will be affected. Get them from Get IP addresses — the |
rentPeriodDays* | number | Extension duration in days for each automatic renewal. Get valid values from Rent period. |
autoExtend* | boolean |
|
Example
Same shape for all proxy types. Switch tabs to see each scenario.
{
"success": true,
"proxyType": "IPv4",
"rentPeriodDays": 30,
"quantity": 1,
"orderIds": ["1112223334283d122"],
"balance": 5,
"currency": "USD",
"error": null
}{
"success": false,
"proxyType": null,
"rentPeriodDays": 0,
"quantity": 0,
"orderIds": [],
"balance": 5,
"currency": "USD",
"error": {
"code": 4,
"message": "Incorrect proxy type"
}
}Response fields
Field | Type | Description |
|---|---|---|
| boolean |
|
| string | null | Echoes the requested type. |
| number | Echoes the requested period. |
| number | Number of IPs the change was applied to. |
| array | Echoes the requested IDs. Empty array on error. |
| number | Account balance in |
| string | ISO currency code (e.g. |
| object | null |
|
The HTTP status is 200 OK for both success and error responses — check success: false to detect failures, not the HTTP code.