Returns a collection with a key, ID, and link for each exchange rate line. 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": "85",
- "id": "85",
- "href": "/objects/company-config/exchange-rate-line/85"
}, - {
- "key": "86",
- "id": "86",
- "href": "/objects/company-config/exchange-rate-line/86"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new exchange rate line.
Create an exchange rate line.
effectiveStartDate required | string <date> The date the exchange rate becomes effective. Example: "2021-01-31" | ||||
rate required | number The conversion rate. Example: 2 | ||||
required | object Reference to the exchange rate that this line belongs to. | ||||
| |||||
reciprocalRate | number The reverse of the conversion rate ( Example: 0.5 |
Created
Bad Request
{- "exchangeRate": {
- "key": "40"
}, - "effectiveStartDate": "2024-12-30",
- "rate": 1.555
}
{- "ia::result": {
- "key": "87",
- "id": "87",
- "href": "/objects/company-config/exchange-rate-line/87"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified exchange rate line.
key required | string System-assigned unique key for an exchange rate line. Example: 87 |
OK
Bad Request
{- "ia::result": {
- "id": "87",
- "key": "87",
- "exchangeRate": {
- "id": "40",
- "key": "40",
- "href": "/objects/company-config/exchange-rate/40"
}, - "effectiveStartDate": "2024-12-30",
- "rate": 1.555,
- "reciprocalRate": 0.64308682,
- "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"
}, - "href": "/objects/company-config/exchange-rate-line/87"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing exchange rate line by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned unique key for an exchange rate line. Example: 87 |
rate | number The conversion rate. Example: 2 |
reciprocalRate | number The reverse of the conversion rate ( Example: 0.5 |
OK
Bad Request
{- "rate": 1,
- "reciprocalRate": 0.5
}
{- "ia::result": {
- "key": "87",
- "id": "87",
- "href": "/objects/company-config/exchange-rate-line/87"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an exchange rate line.
key required | string System-assigned unique key for an exchange rate line. Example: 87 |
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
}
}