Currency conversion enrichment - ClaraVista-IT/snowplow GitHub Wiki
HOME > SNOWPLOW SETUP GUIDE > Step 3: Setting up Enrich > Configurable enrichments > IP anonymization enrichment
JSON Schema iglu:com.snowplowanalytics.snowplow/currency_conversion/jsonschema/1-0-0
Compatibility 0.9.6+
Data provider Open Exchange Rates
This enrichment uses Open Exchange Rates to convert the values of all transactions to a specified base currency. To use it, you need an Open Exchange Rates account.
These are the fields which the currency_conversion_config enrichment can populate:
base_currency tr_total_base tr_tax_base tr_shipping_base ti_price_base
{
"schema": "iglu:com.snowplowanalytics.snowplow/currency_conversion_config/jsonschema/1-0-0",
"data": {
"enabled": true,
"vendor": "com.snowplowanalytics.snowplow",
"name": "currency_conversion_config",
"parameters": {
"accountType": "developer",
"apiKey": "{{API_KEY}}",
"baseCurrency": "EUR",
"rateAt": "EOD_PRIOR"
}
}
}
The fields are as follows:
- "accountType": The level of your Open Exchange Rates account. Must be "developer", "enterprise", or "unlimited".
- "apiKey": Your Open Exchange Rates API key.
- "baseCurrency": The currency to convert all transaction values to.
- "rateAt": Determines which exchange rate will be used. Currently only "EOD_PRIOR" is supported, meaning that the enrichment uses the exchange rate from the end of the previous day.