v1

latestOpenAPI 3.0.02026-08-04134348905.1 KB
Tax

Update Transaction Cost Basis

Permissions required: Subaccount

Update the cost basis for a deposit or withdraw transaction.

patch/tax/transaction/{transactionId}

Path parameters

transactionIdstring required

The ID of the transaction to update (Same as the one returned for Transactions in the Subaccounts API )

Request body

acquisitionDatetimestring date-time

ISO-8601 timestamp representing when the lot was acquired.

assetTypestring

A string representing the asset type of the transaction.

type'DEPOSIT' | 'WITHDRAW' required

A string representing the type of the transaction. Must match the original transaction type.

Example request

{
  "assetType": "BTC",
  "data": {
    "assetType": "BTC",
    "costBasis": "2500",
    "quantity": "1.0"
  },
  "type": "DEPOSIT"
}

Response

Successfully updated the transaction

Example response

{
  "data": {
    "transactionId": "9cd9f4d4-078b-4e44-a308-7662fec0f546"
  }
}