---
title: exchangeRate
framework: externalpurchaseserverapi
role: symbol
role_heading: Type
path: externalpurchaseserverapi/exchangerate
---

# exchangeRate

A decimal value that is the exchange rate you use to convert the pricing currency to the reporting currency, when the two currencies differ.

## Declaration

```data
double exchangeRate
```

## Discussion

Discussion Maximum length: 128. The field must contain a number that can optionally be followed by a “.” and additional digits. The exchangeRate field is required when the pricingCurrency and reportingCurrency fields differ. Use the exchangeRate to convert amounts in the pricing currency to amounts in the reporting currency. The conversion calculation is: (amount in pricing currency) * exchangeRate = (amount in reporting currency) important: To determine an exchange rate for your calculations, use the Bloomberg exchange rate from within 48 hours of the transaction date. If the pricingCurrency and reportingCurrency field values are the same currency, don’t include an exchangeRate in the line item. For more information about determining which reporting currency to use, see reportingCurrency.

## See Also

### Specifying amounts and currency

- [amountTaxExclusive](externalpurchaseserverapi/amounttaxexclusive.md)
- [amountTaxInclusive](externalpurchaseserverapi/amounttaxinclusive.md)
- [netAmountTaxExclusive](externalpurchaseserverapi/netamounttaxexclusive.md)
- [taxAmount](externalpurchaseserverapi/taxamount.md)
- [taxCountry](externalpurchaseserverapi/taxcountry.md)
- [pricingCurrency](externalpurchaseserverapi/pricingcurrency.md)
- [reportingCurrency](externalpurchaseserverapi/reportingcurrency.md)
