Currency Rate

Hello Team,

To receive the currency rate I use the following endpoint -> CSCurrencyRates

The response has the following structure:

 {
                    "ToCurrency""CAD",
                    "RateType""AV",
                    "FromCurrency""AUD",
                    "RateDate""2020-01-02T00:00:00Z",
                    "Rate"0.9272,
                    "Spread"0.1,
                    "DateMatching""Earlier",
                    "RateOperation""Divide",
                    "PropagateChangesImmediately"true,
                    "UpdateOperation""Unspecified"
                },
Is it required to analyze the RateType?

For example, I received two rates from CAD to AUD. But each rate has a different rate type.
How to detect what rate I should use according to the rate type?
  • 0

    It depends what you are doing. Eg: If it's customer or vendor related, each customer and vendor has a default rate type field which you could use. Generally though, rate types are user-defined and you can use whatever rate type you like. Ask the client what rate type they want to use.