GET api/currency/exchange?bankId={bankId}&fromCode={fromCode}&toCode={toCode}&fromId={fromId}&toId={toId}&date={date}

Returns the exchange rate of currencies.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bankId

ID of the bank publishing the exchange rate.

integer

Required

fromCode

Currency code to convert from.

string

None.

toCode

Currency code to convert to.

string

None.

fromId

Currency ID to convert from.

integer

Default value is -1

toId

Currency ID to convert to.

integer

Default value is -1

date

Date of the exchange rate. By default today.

date

None.

Body Parameters

None.

Response Information

Resource Description

decimal number

Response Formats

application/json, text/json, text/html

Sample:
1.1

application/xml, text/xml

Sample:
<double xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1.1</double>