A custom exchange rate to convert one currency to another, if a company does not want to use the Intacct Daily Rate. An exchange rate contains an array of lines that each contain an effective start date, rate, and reciprocal rate to be used for transactions.
Returns a collection with a key, ID, and link for each exchange rate. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "40",
- "id": "40",
- "href": "/objects/company-config/exchange-rate/40"
}, - {
- "key": "41",
- "id": "41",
- "href": "/objects/company-config/exchange-rate/41"
}, - {
- "key": "42",
- "id": "42",
- "href": "/objects/company-config/exchange-rate/42"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new exchange rate.
Exchange rate to create
fromCurrency required | string The transaction currency to convert from. Example: "USD" | ||||||||
toCurrency required | string The transaction currency to convert to. Example: "GBP" | ||||||||
required | object Exchange rate type. | ||||||||
| |||||||||
Array of objects Exchange rate lines in this exchange rate. Each line represents a rate and an effective starting date. | |||||||||
Array
|
Created
Bad Request
{- "exchangeRateType": {
- "key": "4"
}, - "fromCurrency": "USD",
- "toCurrency": "CAD",
- "lines": [
- {
- "effectiveStartDate": "2023-08-15",
- "rate": 2
}, - {
- "effectiveStartDate": "2021-09-16",
- "rate": 3,
- "reciprocalRate": 0.55
}
]
}
{- "ia::result": {
- "id": "40",
- "key": "40",
- "href": "/objects/company-config/exchange-rate/40"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified exchange rate.
key required | string Key for an exchange rate. Example: 40 |
OK
Bad Request
{- "ia::result": {
- "id": "40",
- "key": "40",
- "exchangeRateType": {
- "key": "4",
- "id": "4",
- "name": "GBP-Rate",
- "href": "/objects/company-config/exchange-rate-type/4"
}, - "fromCurrency": "USD",
- "toCurrency": "CAD",
- "audit": {
- "createdDateTime": "2022-04-20T16:20:00Z",
- "modifiedDateTime": "2022-04-20T16:20:00Z",
- "createdByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}, - "createdBy": "1",
- "modifiedByUser": {
- "key": "95",
- "href": "/objects/company-config/user/95"
}, - "modifiedBy": "95"
}, - "lines": [
- {
- "id": "84",
- "key": "84",
- "exchangeRate": {
- "id": "40",
- "key": "40",
- "href": "/objects/company-config/exchange-rate/40"
}, - "effectiveStartDate": "2023-08-15",
- "rate": 2,
- "reciprocalRate": 0.5,
- "audit": {
- "createdDateTime": "2023-11-08T12:30:38Z",
- "modifiedDateTime": "2023-11-08T12:30:38Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/company-config/exchange-rate-line/84"
}, - {
- "id": "85",
- "key": "85",
- "exchangeRate": {
- "id": "40",
- "key": "40",
- "href": "/objects/company-config/exchange-rate/40"
}, - "effectiveStartDate": "2021-09-16",
- "rate": 3,
- "reciprocalRate": 0.55,
- "audit": {
- "createdDateTime": "2023-11-08T12:30:38Z",
- "modifiedDateTime": "2023-11-08T12:30:38Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/company-config/exchange-rate-line/85"
}
], - "href": "/objects/company-config/exchange-rate/40"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing exchange rate by setting field values. Any fields not provided remain unchanged.
key required | string Key for an exchange rate. Example: 40 |
fromCurrency | string The transaction currency to convert from. Example: "USD" | ||||||||
Array of objects Exchange rate lines in this exchange rate. Each line represents a rate and an effective starting date. | |||||||||
Array
|
OK
Bad Request
{- "fromCurrency": "INR",
- "lines": [
- {
- "key": "85",
- "rate": 4,
- "reciprocalRate": 2.5555
}, - {
- "effectiveStartDate": "2023-11-18",
- "rate": 5.5
}
]
}
{- "ia::result": {
- "id": "40",
- "key": "40",
- "href": "/objects/company-config/exchange-rate/40"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an exchange rate.
key required | string Key for an exchange rate. Example: 40 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}