Skip to main content
PATCH
Update transaction
Omitted fields keep their current values. Accounting-state and accounting-period restrictions apply. To change the spam state, send only { "spam": true } or { "spam": false }. A spam change runs the same steps as in the Entendre app: posted-journal checks, asset cleanup and cost-basis reconciliation. A reconciliation error does not undo the spam change. This operation does not change tags.

Authorizations

X-API-Key
string
header
required

Your organization API key. Some operations also need a key that is associated with a user; their pages say so.

Path Parameters

transaction_id
string
required

ID of the transaction.

Minimum string length: 1

Body

application/json
transaction_type
enum<string> | null

Economic transaction type. This does not classify accounting or create a journal entry. Case-insensitive on input. Pass null to clear.

Available options:
DEPOSIT,
WITHDRAWAL,
SWAP,
NON_TAXABLE_CONVERSION,
BRIDGE,
INTERCOMPANY TRANSFER,
INTERNAL TRANSFER,
FEE,
MINTING,
STAKING_REWARD,
VALIDATOR_REWARD,
INVOICE,
BILL,
CLAIM REWARD,
BORROW,
REPAYMENT,
RESERVES CHANGE,
REALIZED_PNL,
INCOME,
EXPENSE,
REFUND,
CHARGEBACK,
NFT,
SPAM,
UNKNOWN
category
enum<string> | null
deprecated

Older name for transaction_type. Case-insensitive on input. Pass null to clear.

Available options:
DEPOSIT,
WITHDRAWAL,
SWAP,
NON_TAXABLE_CONVERSION,
BRIDGE,
INTERCOMPANY TRANSFER,
INTERNAL TRANSFER,
FEE,
MINTING,
STAKING_REWARD,
VALIDATOR_REWARD,
INVOICE,
BILL,
CLAIM REWARD,
BORROW,
REPAYMENT,
RESERVES CHANGE,
REALIZED_PNL,
INCOME,
EXPENSE,
REFUND,
CHARGEBACK,
NFT,
SPAM,
UNKNOWN
classification
enum<string> | null
deprecated

Older name for transaction_type. Send only one type field. Case-insensitive on input. Pass null to clear.

Available options:
DEPOSIT,
WITHDRAWAL,
SWAP,
NON_TAXABLE_CONVERSION,
BRIDGE,
INTERCOMPANY TRANSFER,
INTERNAL TRANSFER,
FEE,
MINTING,
STAKING_REWARD,
VALIDATOR_REWARD,
INVOICE,
BILL,
CLAIM REWARD,
BORROW,
REPAYMENT,
RESERVES CHANGE,
REALIZED_PNL,
INCOME,
EXPENSE,
REFUND,
CHARGEBACK,
NFT,
SPAM,
UNKNOWN
memo
string | null

Free-text memo. Pass null to clear.

Response

The request succeeded.

data
object
required
reconciliation
object

Present only after a spam change. Shows whether the cost-basis reconciliation was queued.