The currencies API enables you to retrieve the current exchange rates being utilized within Violet. These exchange rates are used when the base currency of an Offer or Bag does not match the source currency of the merchants external store. By directly accessing these exchange rates you are able to perform currency conversion within your application without the need to constantly retrieve Offer data from the Violet catalog. Instead you can use currency property of the Offer object to determine the source currency then use the relevant exchange rate to determine the price that should displayed in a shoppers currency.
Required Query Parameters
base_currency - The three-letter (ISO 4217 Alpha-3) currency code of your preferred base currency.
Optional Query Parameters
symbols - A list of comma-separated three-letter (ISO 4217 Alpha-3) currency codes to limit output currencies. If no symbols are included, the rates for all currencies will be included in the response.
Exchange rates will typically be cached within Violet for 60 minutes.