Extending a Contract (POST)
https://core.rock7.com/API3/Contract/{deviceSerial}/Extend
Allows you to extend the line rental of a device by 1 month or more.
Parameter | Type | Description | Example/Possible Values |
---|---|---|---|
PATH PARAMS | |||
deviceSerial | int32 | required The serial number of the device | 50075 |
QUERY PARAMS | |||
months | int32 | The number of months to extend the contract by | 1 |
Example with Parameters
curl --request POST \
--url 'https://core.rock7.com/API3/Contract/50075/Extend?months=1&username=myUsername&password=myPassword' \
--header 'accept: application/json'
Response
{
"result": true,
"serial": "300605",
"active": true,
"deviceId": "PQkYomwxvAZaJWqGbkxBDbdOXgezVKjG",
"stopDate": "2079-10-10T11:59:59Z"
}