Create a new currency rate that does not overlap with any existing rates

post/currency-rates
SecuritybearerAuth
Request
Request Body schema: application/json

New currency rate

sourceCurrencyId
required
integer <int64>

Identifier of currency that is being converted from

targetCurrencyId
required
integer <int64>

Identifier of currency that is being converted to

exchangeRate
required
number

Exchange rate from source currency to target currency in major currency (e.g pounds/dollars/euros) unit. For example, from Argentina Peso to GBP is 446.2497.

startDate
required
string <date>

Start date

endDate
string <date>

End date

Responses
201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

Request samples
application/json
{
  • "sourceCurrencyId": 1,
  • "targetCurrencyId": 1,
  • "exchangeRate": 446.2497,
  • "startDate": "2019-08-24",
  • "endDate": "2019-08-24"
}
Response samples
application/json
{
  • "id": 1,
  • "sourceCurrencyId": 1,
  • "targetCurrencyId": 1,
  • "exchangeRate": 446.2497,
  • "startDate": "2019-08-24",
  • "endDate": "2019-08-24"
}