{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kryptos-io/json-schema/kryptos-io-get-v1-transactions-id-response-schema.json",
  "title": "GetV1TransactionsIdResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kryptos-io-api-openapi-generated.yml#/components/schemas/GetV1TransactionsIdResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Transaction UUID"
    },
    "workspaceId": {
      "type": "string"
    },
    "transactionPlatformId": {
      "type": "string",
      "description": "On-chain hash or exchange-side id"
    },
    "timestamp": {
      "type": "number",
      "description": "Unix milliseconds"
    },
    "type": {
      "type": "string",
      "description": "Canonical type derived from the label; null when the label maps to none"
    },
    "label": {
      "type": "string",
      "description": "Transaction label"
    },
    "description": {
      "type": "string",
      "description": "Free text"
    },
    "notes": {
      "type": "string",
      "description": "Free text"
    },
    "importSource": {
      "type": "object",
      "description": "type (API/CSV/Manual), importedAt, walletId, csvLink, syncId, functionName"
    },
    "isManual": {
      "type": "boolean",
      "description": "Provenance and classification flag"
    },
    "isEdited": {
      "type": "boolean",
      "description": "Provenance and classification flag"
    },
    "isDefiTrx": {
      "type": "boolean",
      "description": "Provenance and classification flag"
    },
    "isNFTTrx": {
      "type": "boolean",
      "description": "Provenance and classification flag"
    },
    "isMissingTransaction": {
      "type": "boolean",
      "description": "Set by the balance stage — the running balance went negative here"
    },
    "protocol": {
      "type": "object",
      "description": "DeFi protocol context, when applicable"
    },
    "tags": {
      "type": "array",
      "description": "User tags"
    },
    "comments": {
      "type": "array",
      "description": "{ id, text, timestamp, author }"
    },
    "netValue": {
      "type": "object",
      "description": "{ fiatValue, currency }; fiatValue is null when unpriced"
    },
    "totalCostbasis": {
      "type": "number",
      "description": "Cost basis consumed"
    },
    "totalGains": {
      "type": "number",
      "description": "Realized gain or loss"
    },
    "explorerLink": {
      "type": "string",
      "description": "Block-explorer URL; null for exchange transactions and unknown chains"
    },
    "explorerLinkSrc": {
      "type": "string",
      "description": "Which side of a transfer explorerLink was built from: sender or receiver"
    },
    "isMergedTrx": {
      "type": "boolean",
      "description": "Produced by merging several source transactions"
    },
    "trxsMerged": {
      "type": "array",
      "description": "The source transactions a merge consumed"
    },
    "isSplitted": {
      "type": "boolean",
      "description": "Produced by splitting a merged transaction back into legs"
    },
    "incomingAssets": {
      "type": "array",
      "description": "Ledger legs"
    },
    "outgoingAssets": {
      "type": "array",
      "description": "Ledger legs"
    },
    "fee": {
      "type": "array",
      "description": "Ledger legs"
    },
    "coaJournal": {
      "type": "object",
      "description": "Chart-of-accounts state — enterprise workspaces only, includes coaJournal.lines"
    },
    "coaStatus": {
      "type": "object",
      "description": "Chart-of-accounts state — enterprise workspaces only, absent otherwise"
    }
  }
}