GET api/Currencies/{id}
Gets a specific currency by id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Remarks
404 Not found is returned if the specified currency cannot be found.
Example
None.
Response Information
Resource Description
CurrencyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| Name | string |
Required Max length: 50 |
|
| Rate |
decimal(18,10) |
decimal number |
Required |
| RoundingAmount |
The default rounding amount for the currency, decimal(9,2) |
decimal number |
Required |
| CurrencyCode |
Currency code ISO 4217 |
string |
Required |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Rate": 3.0,
"RoundingAmount": 4.0,
"CurrencyCode": "sample string 5"
}
application/xml, text/xml
Sample:
<CurrencyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business"> <CurrencyCode>sample string 5</CurrencyCode> <Id>1</Id> <Name>sample string 2</Name> <Rate>3</Rate> <RoundingAmount>4</RoundingAmount> </CurrencyResponse>