Skip to main content

Update of domestic currency amounts for document line items when exchange rate changes - API

How to update line item amounts in a foreign currency document when the exchange rate changes?

Written by Petr Pech

Amounts are not automatically recalculated correctly by default — a rounding item is added instead.

If you want to recalculate the amounts, use previousValue as shown in the example below:

{
"winstrom": {
"faktura-vydana": [
{
"id": "code:FAKTURA123",
"datVyst": "2024-05-28",
"datVyst@previousValue": "2024-06-18",
"kurz": "24.645",
"kurz@previousValue": "24.70"
}
]
}
}
Did this answer your question?