"priceWithDistance" & "pricePerUserCurrency" parameters in the "Obtain costs" REST API request
Introduction
Sometimes you wonder what the difference is between the "pricePerUserCurrency" and "priceWithDistance" parameters, found in the response for the Obtain costs method in REST API, for users and individual target languages.
This article explains the difference between the two and provides some additional context.
Specifics
The difference between these parameters depends on the use of the Edit distance calculation (EDC) feature (for more information, read this article: Accessing machine translation (MT) performance data/calculating costs based on EDC).
The “priceWithDistance” value will be different from the “pricePerUserCurrency” value if project costs are based on EDC. If EDC is enabled, the value for the first property will be modified to include the EDC discount. If you are not using EDC in costs calculation, the values will be identical. |
|---|
The price WITH or WITHOUT the EDC discount is stored in the “priceWithDistance” parameter. If EDC has not been used in project cost calculation, this parameter will contain the price with no EDC discount.
The “pricePerUserCurrency” parameter value can be different from the general “priceWithDistance” parameter value if the user’s currency is different from the system currency. In that case, the price will first be calculated using the user’s currency (pricePerUserCurrency) and then converted to the system currency, using the configured exchange rate (pricePerSystemCurrency).