Create renewal order
POST https://geonix.com/personal/api/v1/{apiKey}/prolong/make/{type}
This endpoint allows you to create a renewal order, which extends the service period of your proxies using the same parameters you used to calculate its cost.
Be careful when creating a renewal order, as it will deduct funds from your balance. Before proceeding, it's wise to first calculate the cost using the same parameters through the calculate renewal endpoint. This step ensures you're fully informed about the expense before confirming your renewal.
Headers
Content-Type
application/json
Accept
application/json
Path parameters
apiKey*
string
API key to authorize requests
type*
string
Available values : ipv4, ipv6, mobile, isp, resident
Body parameters
ids*
array of integers
IDs of the proxies you want to renew. Ensure that the proxy type of the provided IDs matches the "type" path parameter.
periodId*
string
How long you want to renew your proxies for, as identified in the reference list (e.g., "30d" for 30 days).
Request examples
curl -X 'POST' \
'https://geonix.com/personal/api/v1/YOUR_API_KEY_HERE/prolong/make/mobile' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"ids": [
105487,
458746,
354841,
845123,
103547
],
"periodId": "30d",
"coupon": "OZGCNK_1"
}'<?php
$apiKey = "YOUR_API_KEY_HERE";
$url = "https://geonix.com/personal/api/v1/$apiKey/prolong/make/mobile";
$data = array(
"ids" => [105487, 458746, 354841, 845123, 103547],
"periodId" => "30d",
"coupon" => "OZGCNK_1"
);
$data_string = json_encode($data);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: application/json',
'Content-Type: application/json'
));
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>
Response examples
Last updated