Menu
TaxTransaction
object
Properties
idstringID of the underlying transaction; its format depends on the type. Trades use the trade ID (tr_), bitcoin deposits de_, bonuses gb_, fiat withdrawals fpu_ and adjustments abj_ or apj_. Bitcoin withdrawals and card deposits use a UUID, which is not the withdrawal_id returned by the transfer endpoints. Bank deposits use the bank's reference.
Example: "tr_01HVXHG9PMDKR3YQV4Z8W5T2BN"
accountIdstringThe bitcoin account the transaction belongs to. Empty for fiat deposits and fiat withdrawals, which are not tied to an account.
Example: "acc_01HQZX3V9KJ4M2P8R6T0W5Y7BC"
typestring · enumValues: TAX_TRANSACTION_TYPE_BTC_BUY, TAX_TRANSACTION_TYPE_BTC_SELL, TAX_TRANSACTION_TYPE_BTC_WITHDRAWAL, TAX_TRANSACTION_TYPE_BTC_DEPOSIT, TAX_TRANSACTION_TYPE_BTC_BONUS, TAX_TRANSACTION_TYPE_FIAT_DEPOSIT, TAX_TRANSACTION_TYPE_FIAT_WITHDRAWAL, TAX_TRANSACTION_TYPE_BTC_ADJUSTMENT, TAX_TRANSACTION_TYPE_FIAT_ADJUSTMENT
subTypestringSub-type of the transaction. Which values apply depends on the type: trades carry the order type, bitcoin transfers the network, fiat deposits the payment method and adjustments the reason. Empty when the transaction has no sub-type.
Values: , market, limit, manual, onchain, lightning, internal, internal-external, lightning-payment-request, lightning-address, lightning-lnurl, bank, card, write_off, correction, unspecified
Example: "market"
createTimestring · date-timeExample: "2024-02-01T10:22:36Z"
finalizeTimestring · date-timeUnset while the transaction is still pending, e.g. a bitcoin deposit that is not yet confirmed.
Example: "2024-02-01T10:41:05Z"
inAmountstringStringified decimal number
Example: "0.1"
inCurrencystringExample: "BTC"
outAmountstringStringified decimal number. Includes trade fees; withdrawal fees are additional.
Example: "65000"
outCurrencystringExample: "NOK"
feeAmountstringStringified decimal number. When the fee is zero, fee_currency may be empty.
Example: "455"
feeCurrencystringExample: "NOK"
rateMarketstringStringified decimal number: the market rate in NOK per BTC at the time of the transaction.
Example: "645450"
isPaymentbooleanWhether the transaction was a payment to a third party, as declared by the user. Only ever set for bitcoin withdrawals.
Example: false
paymentInfostringFor bitcoin transfers: `<network ID>:<destination address>`. For bank fiat transfers: the counterparty bank account number. Empty for card deposits, trades and bonuses.
Example: "f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16:bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4"
notestringFree-form user-supplied description.
Example: "Første kjøp"
usdnokstringStringified decimal number: the USD/NOK exchange rate at the time of the transaction, when known.
Example: "10.45"
runningBalanceBtcstringStringified decimal number: the user's total BTC balance across all accounts after this transaction.
Example: "1.8997585"