Create renewal order
Headers
Name
Value
Path parameters
Name
Type
Description
Body parameters
Name
Type
Description
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