Magidoc

createFinanceExchangeRate
Mutation

Stores an exchange rate for a currency pair on a day. One rate per pair per day per company: two rates for the same day would make 'the latest rate on or before this date' ambiguous, so the second is refused rather than stored beside the first. Access: 'setupUpdate' in a workspace where finance is enabled. Errors: a currency is missing or the two match; the rate is not a decimal greater than zero; a rate for this pair on this date already exists.

Arguments

#

workspaceId

ID !
Non-null

input

Non-null

Response

#

Returns FinanceExchangeRate !.

Example

#