Informace o requestu

Metoda vrátí kurz dle Id

Příklad URL:
v2.0/ExchangeRates/{id}
JménoPopisTypDoplňující informace
id

Id kurzu

integer

Required

id

Id kurzu

integer

Required

Žádné.

Informace o response

ExchangeRateApiModel
JménoPopisTypDoplňující informace
Amount

Množství cizí měny

decimal number

Žádné.

Currency

Informace o měně

CurrencyApiModel

Žádné.

CurrencyId

Id měny

integer

Žádné.

Date

Datum vystavení kurzu

date

Žádné.

DateLastChange

Datum poslední změny záznamu

date

Žádné.

ExchangeListId

Id kurzovního lístku. 1 = ČNB, 2 = ECB

integer

Žádné.

ExchangeRateValue

Kurz pro převod měny

decimal number

Žádné.

Id

Identifikace resource

integer

Readonly

Ukážka:
{
  "Amount": 1.0,
  "Currency": {
    "Code": "sample string 1",
    "Country": "sample string 2",
    "Name": "sample string 3",
    "Priority": 4,
    "Symbol": "sample string 5",
    "Id": 6
  },
  "CurrencyId": 2,
  "Date": "2024-04-24T05:33:08.2754569+00:00",
  "DateLastChange": "2024-04-24T05:33:08.2754569+00:00",
  "ExchangeListId": 5,
  "ExchangeRateValue": 6.0,
  "Id": 7
}
Ukážka:
<ExchangeRateApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.ReadOnlyEntites">
  <Id xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">7</Id>
  <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Links>
  <Amount>1</Amount>
  <Currency>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">6</Id>
    <Links xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Links>
    <Code>sample string 1</Code>
    <Country>sample string 2</Country>
    <Name>sample string 3</Name>
    <Priority>4</Priority>
    <Symbol>sample string 5</Symbol>
  </Currency>
  <CurrencyId>2</CurrencyId>
  <Date>2024-04-24T05:33:08.2754569+00:00</Date>
  <DateLastChange>2024-04-24T05:33:08.2754569+00:00</DateLastChange>
  <ExchangeListId>5</ExchangeListId>
  <ExchangeRateValue>6</ExchangeRateValue>
</ExchangeRateApiModel>