Download OpenAPI specification:Download
APIs that allow you to to get, create and maintain currency codes.
Used to retrieve all currency codes within a given company for a given user.
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 currency codes for. Must be a valid company within the tenant. |
pageNumber required | integer >= 1 Example: 1 Page number. The API call will return a page of data (page size is 100 records). |
userId required | string <guid> Example: 0a722409-9907-4353-afaa-e6bdf5521bb5 User Id used to filter records based on those available to the user only. |
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. |
{- "CurrencyCodes": [
- {
- "Code": "GBP",
- "Name": "British Pound Sterling",
- "Rate": 1,
- "IsBase": true
}, - {
- "Code": "EUR",
- "Name": "Euro",
- "Rate": 1.134,
- "IsBase": false
}, - {
- "Code": "USD",
- "Name": "US Dollar",
- "Rate": 1.201,
- "IsBase": false
}
], - "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to retrieve all currency codes within a given company for a given user and transaction.
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 currency codes for. Must be a valid company within the tenant. |
pageNumber required | integer >= 1 Example: 1 Page number. The API call will return a page of data (page size is 100 records). |
userId required | string <guid> Example: 0a722409-9907-4353-afaa-e6bdf5521bb5 User Id used to filter records based on those available to the user only. |
transactionId required | string <guid> Example: 0a722409-9907-4353-afaa-e6bdf5521bb5 Transaction Id provided, used to filter records based on those available to the user and transaction only. |
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. |
{- "CurrencyCodes": [
- {
- "Code": "GBP",
- "Name": "British Pound Sterling",
- "Rate": 1,
- "IsBase": true
}, - {
- "Code": "EUR",
- "Name": "Euro",
- "Rate": 1.134,
- "IsBase": false
}, - {
- "Code": "USD",
- "Name": "US Dollar",
- "Rate": 1.201,
- "IsBase": false
}
], - "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to retrieve all currency codes within a given company for a given user.
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 currency codes for. Must be a valid company within the tenant. |
pageNumber required | integer >= 1 Example: 1 Page number. The API call will return a page of data (page size is 100 records). |
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. |
{- "CurrencyCodes": [
- {
- "Code": "GBP",
- "Name": "British Pound Sterling",
- "Rate": 1,
- "IsBase": true
}, - {
- "Code": "EUR",
- "Name": "Euro",
- "Rate": 1.134,
- "IsBase": false
}, - {
- "Code": "USD",
- "Name": "US Dollar",
- "Rate": 1.201,
- "IsBase": false
}
], - "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to refresh the currency codes in a company with a complete new set of values, or append values to a previous new post.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post currency codes into. 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 post currency codes into. 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. |
required | Array of objects The list of currency codes to post into the system |
ContinuationToken | string <guid> Optional continuation token. If provided and is recognised by iCompleat, codes are upserted into the currency code list. If not provided or not recognised, then the list provided replaces any currency codes for the company. |
This will wipe any currency codes for the company, and apply the list provided as a fresh set
{- "CurrencyCodes": [
- {
- "Code": "GBP",
- "Name": "British Pound Sterling",
- "Rate": 1,
- "IsBase": true
}, - {
- "Code": "EUR",
- "Name": "Euro",
- "Rate": 1.134,
- "IsBase": false
}, - {
- "Code": "USD",
- "Name": "US Dollar",
- "Rate": 1.201,
- "IsBase": false
}
]
}
{- "ContinuationToken": "25527ccb-d5fb-4b54-b4f0-738f99d06d17",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to add a single currency code to an existing company, or update a single currency code. A code and name is provided. If the code exists, then it is updated with the new name. If the code does not exist, it is added.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post currency codes into. 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 post currency codes into. Must be a valid company within the tenant. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
Code required | string The code of the currency code to add or update |
Name required | string The descriptive name of the currency code to add/update |
Rate required | number > 0 The exchange rate from the base currency to this currency. The base currency will always have a rate of 1. |
{- "Code": "USD",
- "Name": "US Dollar",
- "Rate": 1.201
}
{- "Result": "Currency Code [USD] matched and updated.",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to remove all currency codes for a company.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post currency codes into. 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 post currency codes into. 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. |
{- "Result": "Currency Codes have been deleted.",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to remove a specific currency code.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post currency codes into. 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 post currency codes into. Must be a valid company within the tenant. |
code required | string Example: C0 The code of the currency code to delete. |
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. |
{- "Result": "Currency Code [USD] has been deleted.",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}