Skip to main content

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.

ParameterTypeDescriptionExample/Possible Values
PATH PARAMS
deviceSerialint32required
The serial number of the device
50075
QUERY PARAMS
monthsint32The number of months to extend the contract by1

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"
}