# Exchange rate currency code

Source: https://developer.avalara.com/vat-ecom/transactions/certification-requirements/exchange-rate-currency-code/

**Element type:** Conditional

**Endpoints/models used:** [CreateTransactionModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/CreateTransactionModel/)

If your integration allows users to input an exchange rate, then you must allow users to also include the three-character ISO 4217 currency code for the exchange rate. You can do this by specifying an `exchangeRateCurrencyCode` at the document level only. This field represents the reporting currency (the currency the transaction’s tax liability needs to be reported in). Users can leave field this blank if the invoice currency provided in the `currencyCode` field is also the reporting currency.

[![Closed](https://avalara-devdocs-prod.mcoutput.com/vat-ecom/Skins/Default/Stylesheets/Images/transparent.gif)View example](javascript:void\(0\);)

```
 {  "type": "PurchaseInvoice",  "date": "2024-07-24",  "companyCode": "CRUSH",  "customerCode": "userMP",  "code": "userMP",  "isSellerImporterOfRecord": false,  "businessIdentificationNo": "ATU12233456",  "currencyCode":"EUR",  "exchangeRate": 0.85,  "exchangeRateCurrencyCode": "GBP",  "exchangeRateEffectiveDate": "2024-07-24",  ...} 
```