Every Partner account starts with one Company account. The purpose of the Company account is to provide billing access for your Partner account and to group any Devices you create (e.g. Emergency Plan).
All of the attribute fields are returned from GET (read) operations. Only those attributes not marked as read only may be set via POST (create) or PUT (update) operations.
Name | Type | Notes |
---|---|---|
CompanyId | Integer | Read Only |
PartnerId | Integer | Required on POST, otherwise Read Only |
Partner | Object | See API Partners |
PlanTypeId | Integer | Required on POST, otherwise Read Only |
Plan Type | Object | See API Plan Types |
Name | String 100 | Required |
AddressLine1 | String 50 | |
AddressLine2 | String 50 | |
CityMunicipality | String 50 | |
StateProvidence | String 50 | |
PostalCode | String 50 | |
Country | String 50 | |
Phone | String 50 | |
ExternalId | String 100 | Unique identifier for Partners to identify this Company. |
IsInactive | Boolean | |
AddedOn | DateTime UTC | Read Only |
UpdatedOn | DateTime UTC | Read Only |
Token | String 50 | See API Duplication Prevention |
Returns an array of Companies in descending order.
https://cleverfoxbackup.com/api/companies
{ "data": [ { "CompanyId": 1, "PartnerId": 1, "Partner": { "PartnerId": 1, "PlanTypeId": 1, "PlanType": null, "Name": "Forward Thinking Software, LLC", "ApplicationId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null }, "PlanTypeId": 1, "PlanType": { "PlanTypeId": 1, "Name": "CleverFox Backup", "IsInactive": false }, "Name": "ABC Company, Inc.", "AddressLine1": "1000 Main St", "AddressLine2": null, "CityMunicipality": "Anytown", "StateProvidence": "MI", "PostalCode": "12345", "Country": null, "Phone": null, "ExternalId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null } ], "page_no": 1, "page_size": 25 }
Returns a single Company.
https://cleverfoxbackup.com/api/companies/{CompanyId}
{ "data": { "CompanyId": 1, "PartnerId": 1, "Partner": { "PartnerId": 1, "PlanTypeId": 1, "PlanType": null, "Name": "Forward Thinking Software, LLC", "ApplicationId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null }, "PlanTypeId": 1, "PlanType": { "PlanTypeId": 1, "Name": "CleverFox Backup", "IsInactive": false }, "Name": "ABC Company, Inc.", "AddressLine1": "1000 Main St", "AddressLine2": null, "CityMunicipality": "Anytown", "StateProvidence": "MI", "PostalCode": "12345", "Country": null, "Phone": null, "ExternalId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null } }
Returns a single Company.
https://cleverfoxbackup.com/api/companies/lookup?ExternalId={ExternalId}
{ "data": { "CompanyId": 1, "PartnerId": 1, "Partner": { "PartnerId": 1, "PlanTypeId": 1, "PlanType": null, "Name": "Forward Thinking Software, LLC", "ApplicationId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null }, "PlanTypeId": 1, "PlanType": { "PlanTypeId": 1, "Name": "CleverFox Backup", "IsInactive": false }, "Name": "ABC Company, Inc.", "AddressLine1": "1000 Main St", "AddressLine2": null, "CityMunicipality": "Anytown", "StateProvidence": "MI", "PostalCode": "12345", "Country": null, "Phone": null, "ExternalId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null } }
Updates a Company and returns the updated data.
https://cleverfoxbackup.com/api/companies/{CompanyId}
{ "data": { "Name": "ABC Company, Inc.", "AddressLine1": "1000 Main St", "AddressLine2": null, "CityMunicipality": "Anytown", "StateProvidence": "MI", "PostalCode": "12345", "Country": null, "Phone": null, "ExternalId": null, "IsInactive": false, "Token": null } }