Create an Exchange Rate
post
/primeapi/restapi/exchangeRate
Send a request to this endpoint to create an exchange rate. An application object will be created using the JSON data provided in the request body.
Request
Supported Media Types
- application/json
ExchangeRate to be created.
Root Schema : ApiEntityExchangeRate
Type:
Show Source
object
-
baseExchangeRate(optional):
number
The rate used to convert the value of a record to the base currency.
-
currencyId(optional):
integer(int64)
-
effectiveEndDate(optional):
string(date-time)
The date the exchange rate ends.
-
effectiveStartDate(optional):
string(date-time)
The date the exchange rate goes into effect.
-
exchangeRateId:
integer(int64)
-
link(optional):
string(url)
Read Only:
true
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response.
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : ApiEntityExchangeRate
Type:
Show Source
object
-
baseExchangeRate(optional):
number
The rate used to convert the value of a record to the base currency.
-
currencyId(optional):
integer(int64)
-
effectiveEndDate(optional):
string(date-time)
The date the exchange rate ends.
-
effectiveStartDate(optional):
string(date-time)
The date the exchange rate goes into effect.
-
exchangeRateId:
integer(int64)
-
link(optional):
string(url)
Read Only:
true
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response.
400 Response
Invalid input for the Exchange Rate service. Verify the request contains valid data, then resubmit the request.