Download OpenAPI specification:Download
APIs that allow you to see a summary of analysis fields.
Used to retrieve a list of relevant analysis fields, either for a company, or in relation to a specific transaction.
Specify the tenant and company IDs in the URL. If the company ID is missing or not recognised for this tenant, then HTTP 400 with error code of 2 is returned.
Optionally include a transaction ID, to request analysis fields relevant to a specific transaction. If the transaction ID is not recognised within the tenant and company specified, then an HTTP 400 with error code of 10 is 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. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to retrieve analysis information for. Must be a valid company within the tenant. |
transactionId required | string <guid> Example: 0a722409-9907-4353-afaa-e6bdf5521bb5 Optional transaction Id (insert NULL value if unavailable). If provided, must be a valid transaction under the tenant and company specified. If provided, analysis fields linked to the layout for the transaction will be returned, along with information pertaining to whether they are configured at header or line level for that transaction. If not provided, then all active analysis fields linked to the company are returned. |
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. |
{- "AnalysisFields": [
- {
- "Id": "5EDDC2E9-0AF6-45A3-B8B5-2BA6F1289B37",
- "Name": "Department",
- "Allocation": "HEADER"
}, - {
- "Id": "03757B33-3883-482C-A5D8-477543546EE6",
- "Name": "Currency Code",
- "Allocation": "HEADER"
}, - {
- "Id": "B17A3270-60BA-43EE-8EC8-B40F395F42C8",
- "Name": "Example custom field",
- "Allocation": "HEADER"
}, - {
- "Id": "3BC9E1E0-259D-4A54-9E43-2FB7E697F131",
- "Name": "Account Code",
- "Allocation": "LINE"
}, - {
- "Id": "AE0F8C02-7E53-402C-8E17-189B33E702D8",
- "Name": "Tax Code",
- "Allocation": "LINE"
}
], - "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}