Skip to content

Month-end currency revaluation

At month-end Quiddly revalues every open balance in a foreign currency at the current exchange rate and reverses it the next day. By default this runs on a schedule at 23:30 on the last day of the month. If you supply your own month-end rates, you can instead start the revaluation yourself once your rates are in.

  1. Push your month-end rates and wait for the 200 response. The response confirms the rates are stored; there is no webhook for a push. The revaluation uses the exchange rates stored in Quiddly when it starts; a currency you have not pushed for the month-end first gets the Riksbank’s month-end rate, see below.

  2. Start the revaluation. Requires RunBookkeepingRevaluation. bookedDate is the date the revaluation is booked on and must be the latest month-end. Start it from 21:00 on the last day of the month until the end of the 1st: the run revalues balances and rates as they are when it starts, so it starts late enough that few of that day’s payments arrive after it, and as early as you can after that, since every movement before the start counts in the month-end. A start outside that window is refused. Without USE_PUSHED_EXCHANGE_RATES the whole last day is accepted as well.

    Terminal window
    curl -X POST "https://$HOST/bookkeeping-revaluations" \
    -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" \
    -d '{ "bookedDate": "2026-09-30" }'

    The call returns 202 with the taskId that identifies the run:

    { "taskId": "c0ffee00-...", "bookedDate": "2026-09-30", "createdDate": "2026-10-01T00:15:00" }
  3. Wait for the result. Subscribe a webhook of type CURRENCY_REVALUATION to be told when the run finishes (see the event catalogue), or poll GET /celery-task/<taskId> (GetCeleryTaskStatus). The state is SUCCESS with revaluationCount, or FAILED with errorMessage. The webhook also lists the rate used for each currency in rates, with its date and source, so you can check them against your own books.

The created date of the vouchers and transactions is when the run happened; only the booking date is bookedDate. If you start the run on the 1st, the reversal is booked in the same run, unless Quiddly has turned the reversal off for your environment (DISABLE_BOOKKEEPING_REVALUATION_REVERSE); then neither this run nor the scheduled one reverses it.

StatusWhen
400bookedDate is missing, not a date, or not the latest month-end, or it is later than the day after it. With USE_PUSHED_EXCHANGE_RATES on, also before 21:00 on it.
409A revaluation is already running, or one is already booked on bookedDate (a run that found nothing to revalue books nothing, so it does not block another).

A run that fails after it was accepted sends a CURRENCY_REVALUATION webhook with status: FAILED and the reason in errorMessage (an unexpected error reads “Contact Quiddly support”). A run that waited in the queue past the end of the 1st is refused the same way and books nothing. When revaluationCount is null, nothing was booked: fix the cause and start the run again. When it has a value, the revaluation was booked but its reversal failed; contact Quiddly support instead of starting it again.