Download OpenAPI specification:Download
Top-level APIs that allow you to retrieve Tenant and Company information.
Specify the ID of the tenant in the URL for the GET request to indicate the tenant you would like to retrieve information for. The security key passed in the HTTP headers must be valid for that tenant ID. If the tenant ID is not recognised or the security key is invalid for that tenant, an HTTP 401 will be returned.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to retrieve information for. The account requesting the data must have access to this tenant Id. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
{- "Id": "d025eedc-5ea0-4de8-be9f-f8873545add9",
- "Name": "Example",
- "Active": true,
- "AccountType": "DirectCustomer",
- "FreeTrialEndDate": null,
- "DateAdded": "2017-10-11T12:57:29.1",
- "BillingDayOfMonth": 7,
- "BillingMonthOfYear": 3,
- "LastPaymentDate": "2018-08-07T00:00:00",
- "NextPaymentDate": "2020-05-07T00:00:00",
- "CreditBalance": 14100,
- "VatNumber": "",
- "RegisteredCountryCode": "GBR",
- "ConfirmedNotVatRegistered": false,
- "LicensedUsers": 20,
- "PaymentFrequency": "Monthly",
- "OwesPayment": false,
- "InCreditControl": false,
- "CultureCode": "en-GB",
- "Modules": [
- "INVOICES",
- "ORDERS"
], - "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Specify the ID of the tenant in the URL for the GET request to indicate the tenant you would like to retrieve shard information for. The security key passed in the HTTP headers must be valid for that tenant ID. If the tenant ID is not recognised or the security key is invalid for that tenant, an HTTP 401 will be returned.
This API can be called on any shard, and will return shard level information for that tenant. All other API calls must be made to the shard that the tenant is registered on. So this call exists to allow a third party to determine which URL endpoint to direct all further communications with for a given tenant, if they do not know in advance.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to retrieve information for. The account requesting the data must have access to this tenant Id. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
{- "Shard": "EU1",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to retrieve company information. Every tenant has one or more companies associated with it. This will retrieve summary information on all companies created under a tenant's account.
Specify the ID of the tenant in the URL for the GET request to indicate the tenant you would like to retrieve a list of companies for. The security key passed in the HTTP headers must be valid for that tenant ID. If the tenant ID is not recognised, an HTTP 401 will be returned.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to retrieve information for. The account requesting the data must have access to this tenant Id. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
{- "Companies": [
- {
- "Id": "01ba820e-1ed0-4ade-8e62-43c5606908c1",
- "Name": "Company 1",
- "Active": true
}, - {
- "Id": "42210aac-b6d3-4eeb-bcec-583dab5c0ddf",
- "Name": "Company 2",
- "Active": true
}, - {
- "Id": "4a7f92c7-a1ce-41eb-ae21-64c71843921a",
- "Name": "Inactive company 3",
- "Active": false
}
], - "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to retrieve detailed information on a specific company.
Specify the ID of the tenant in the URL for the GET request, followed by the company ID that you wish to retrieve information for. The security key passed in the HTTP headers must be valid for that tenant ID. If the tenant ID is not recognised, an HTTP 401 will be returned.
If the company ID specified is not found for the tenant ID specified, then a 400 error will be returned, with a MetaData error code of 2 (Unknown Company).
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to retrieve information for. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: fccaeb17-ec8e-4cf7-8f56-2204a76d5eb8 Id of the company to retrieve information for. Must be a valid company within the tenant. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
{- "Id": "fccaeb17-ec8e-4cf7-8f56-2204a76d5eb8",
- "Name": "Company 1",
- "Active": true,
- "DateAdded": "2018-08-07T10:20:30.563",
- "InvoiceEmail": "company1@compleatsoftware.com",
- "TestCompany": false,
- "Standalone": false,
- "FinanceSystem": "AccountsIQ",
- "FinanceId": "ABC123",
- "ConnectorHeartbeat": "2999-01-01T00:00:00",
- "CultureCode": "en-GB",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}