An exchange rate type enables an organization to process foreign currency transactions, such as foreign currency invoices and bills, using exchange rates specific to the business requirements. You can use a custom exchange rate type for global consolidation, or to override the standard Intacct daily rate type. See Exchange rate types for more information.
Returns a collection with a key, ID, and link for each exchange rate type. 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": "1",
- "id": "1",
- "href": "/objects/company-config/exchange-rate-type/1"
}, - {
- "key": "2",
- "id": "2",
- "href": "/objects/company-config/exchange-rate-type/2"
}, - {
- "key": "3",
- "id": "3",
- "href": "/objects/company-config/exchange-rate-type/3"
}, - {
- "key": "4",
- "id": "4",
- "href": "/objects/company-config/exchange-rate-type/4"
}
], - "ia::meta": {
- "totalCount": 4,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new exchange rate type.
Create an exchange rate type.
name required | string Name or other unique identifier for the exchange rate type. Example: "GBP-Rate" |
isDefault | boolean Default: false Indicates whether the system should use the exchange rate type as the default. Setting Example: false |
Created
Bad Request
{- "name": "CUS-Rate",
- "isDefault": true
}
{- "ia::result": {
- "key": "5",
- "id": "5",
- "href": "/objects/company-config/exchange-rate-type/5"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified exchange rate type.
key required | string System-assigned unique key for an exchange rate type. Example: 5 |
OK
Bad Request
{- "ia::result": {
- "key": "5",
- "id": "5",
- "name": "CUS-Rate",
- "isDefault": false,
- "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-type/5"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing exchange rate type by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned unique key for an exchange rate type. Example: 5 |
name | string Name or other unique identifier for the exchange rate type. Example: "GBP-Rate" |
isDefault | boolean Default: false Indicates whether the system should use the exchange rate type as the default. Setting Example: false |
OK
Bad Request
{- "isDefault": true
}
{- "ia::result": {
- "key": "5",
- "id": "5",
- "href": "/objects/company-config/exchange-rate-type/5"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an exchange rate type.
key required | string System-assigned unique key for an exchange rate type. Example: 5 |
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
}
}