A cost basis is a rate that converts one unit of a custom currency into an amount of a fiat currency.
It’s the only conversion mechanism in Metering & Billing.
There is no automatic foreign exchange, and no conversion between two fiat currencies or between two custom currencies.
Each cost basis records the following:
|
Field
|
Description
|
|
Fiat currency
|
The fiat currency that the rate converts into.
|
|
Rate
|
The fiat amount that one unit of the custom currency is worth. The rate must be a positive number. Rate amounts are expressed and formatted in the fiat currency.
|
|
Effective from
|
When the rate starts applying. Defaults to the time you create the cost basis. If you set this field, the date must be in the future. The rate already applies at this exact time.
|
|
Effective to
|
When the rate stops applying. Leave it empty for an open-ended rate. The date must come after the effective from date. The rate no longer applies at this exact time.
|
Cost bases are append-only.
To change a rate, add a new cost basis for the same fiat currency.
Metering & Billing ends the cost basis that’s active at the new cost basis’s effective date by setting its effective-to date to that time.
After that time passes, the Konnect UI shows the earlier cost basis as Superseded.
The rate of the superseded cost basis doesn’t change, so the historical rates stay intact.
A single custom currency can carry cost bases against several fiat currencies at once.
For any one fiat currency, only one cost basis is active at a time, and its successive cost bases cover consecutive time windows.