Retrieving all Contracts (GET)
https://core.rock7.com/API3/Contract/All
This command returns the list of device contracts available in the account.
Example with Parameters
curl --request GET \
--url 'https://core.rock7.com/API3/Contract/All?username=myUsername&password=myPassword' \
--header 'accept: application/json'
Response
{
"accountName": "myAccount - Joey Trackers",
"credits": 999833,
"contracts": [
{
"serial": 16677,
"active": true,
"deviceId": "YAlRXzwrdjymbEKqLwnKLNxvPkMeqgGJ",
"stopDate": "2079-09-10T11:59:59Z"
},
{
"serial": 300605,
"active": true,
"deviceId": "YAlRXzwrdjymbnKNwJaBKLNxvPkMeqgG",
"stopDate": "2079-09-10T11:59:59Z"
}
]
}