Transactions (🧭 FUTURE)

Enhanced transaction records that enriches base transaction data with team and operator ownership information. Identifies transactions involving teams or operators through wallet ownership matchi...

✨ NEW TABLE - December 2025

🛠️ Partner API Alignment Migration

🧭 This table represents the post-migration state for transactions.

1️⃣ Migrate to this table by April 2026

2️⃣ Between April 2026 and July 2026, remove FUTURE__ prefix

Enhanced transaction records that enriches base transaction data with team and operator ownership information. Identifies transactions involving teams or operators through wallet ownership matching and includes deletion status tracking for data quality purposes.

SQL: FUTURE__transactions

Schema

Column NameData TypeDescription
Primary ID
idVARCHARPrimary key
Other IDs
reference_idVARCHARExternal reference identifier linking this transaction to source systems
to_wallet_idINTEGERUnique identifier of the destination wallet receiving funds
to_wallet_owner_idINTEGERUnique identifier of the entity that owns the destination wallet
from_wallet_idINTEGERUnique identifier of the source wallet sending funds
from_wallet_owner_idINTEGERUnique identifier of the entity that owns the source wallet
performed_by_user_idINTEGERUnique identifier of the user who initiated this transaction
metadata_idVARCHARAdditional metadata identifier associated with the transaction
metadata_charge_idVARCHARIdentifier linking this transaction to a specific charging session
Timestamps
created_atTIMESTAMP_NTZTimestamp when the transaction record was first created
updated_atTIMESTAMP_NTZTimestamp when the transaction record was last modified
completed_atTIMESTAMP_NTZTimestamp when the transaction was successfully completed
pending_atTIMESTAMP_NTZTimestamp when the transaction entered pending status
failed_atTIMESTAMP_NTZTimestamp when the transaction failed to complete
deleted_atTIMESTAMP_NTZTimestamp when the transaction record was soft deleted
from_wallet_team_deleted_atTIMESTAMP_NTZDeletion timestamp for the team associated with the source wallet
to_wallet_team_deleted_atTIMESTAMP_NTZDeletion timestamp for the team associated with the destination wallet
from_wallet_operator_deleted_atTIMESTAMP_NTZDeletion timestamp for the operator associated with the source wallet
to_wallet_operator_deleted_atTIMESTAMP_NTZDeletion timestamp for the operator associated with the destination wallet
Filters
is_from_team_wallet_matchBOOLEANIndicates whether the source wallet owner successfully matched to a team record
is_to_team_wallet_matchBOOLEANIndicates whether the destination wallet owner successfully matched to a team record
is_team_transactionBOOLEANIndicates whether either the source or destination wallet is owned by a team
is_from_operator_wallet_matchBOOLEANIndicates whether the source wallet owner successfully matched to an operator record
is_to_operator_walletBOOLEANIndicates whether the destination wallet owner successfully matched to an operator record
is_operator_transactionBOOLEANIndicates whether either the source or destination wallet is owned by an operator
Attributes
reference_typeVARCHARType or category of the reference identifier
to_wallet_owner_typeVARCHARType of entity that owns the destination wallet (TEAM, OPERATOR, etc.)
from_wallet_owner_typeVARCHARType of entity that owns the source wallet (TEAM, OPERATOR, etc.)
kindVARCHARClassification or category of the transaction type
stateVARCHARCurrent processing state of the transaction (pending, completed, failed, etc.)
typeVARCHARSpecific transaction type identifier
noteVARCHARAdditional comments or notes associated with the transaction
transaction_countryVARCHARCountry where the transaction was processed or originated
to_currency_codeVARCHARISO currency code for the destination wallet amount
from_currency_codeVARCHARISO currency code for the source wallet amount
to_amountNUMBERPrimary amount received by the destination wallet
to_sub_amountNUMBERSecondary or fractional amount component for destination wallet
vat_to_amountNUMBERVAT amount applied to the destination wallet transaction
from_amountNUMBERPrimary amount deducted from the source wallet
from_sub_amountNUMBERSecondary or fractional amount component for source wallet
vat_from_amountNUMBERVAT amount applied to the source wallet transaction
failed_reasonVARCHARExplanation or error message when transaction failed
vat_percentageNUMBERVAT rate applied to this transaction as a percentage
to_wallet_operator_nameVARCHARName of the operator associated with the destination wallet
from_wallet_operator_nameVARCHARName of the operator associated with the source wallet
to_wallet_vat_numberVARCHARVAT registration number for the destination wallet entity
from_wallet_vat_numberVARCHARVAT registration number for the source wallet entity
exchange_rateNUMBERCurrency conversion rate applied between source and destination amounts
metadata_kwhNUMBEREnergy consumption in kilowatt-hours related to this transaction
metadata_typeVARCHARType or category of the associated metadata

Changes from last Version

Summary

  • Filter Changes: Extended to include OPERATOR wallet transactions (previously only TEAM wallets); no implicit deleted filter
  • Computed Flags: Adds 6 boolean flags to identify transaction type (team/operator) and wallet match direction (from/to)
  • Deletion Tracking: Tracks deletion status for both from/to wallet owners (teams and operators)

Added columns (12)

  • from_wallet_team_deleted_at
  • to_wallet_team_deleted_at
  • from_wallet_operator_deleted_at
  • to_wallet_operator_deleted_at
  • is_from_team_wallet_match
  • is_to_team_wallet_match
  • is_team_transaction
  • is_from_operator_wallet_match
  • is_to_operator_wallet
  • is_operator_transaction

Removed columns (0)

Renamed columns (0)

Inclusion Criteria

  • the from_wallet_owner_type or to_wallet_owner_type equals 'TEAM' and the respective wallet_owner_id is among the operator's non-null FUTURE_teams.id values.
  • or the from_wallet_owner_type or to_wallet_owner_type equals 'OPERATOR' and the respective wallet_owner_id is among the operator's non-null FUTURE_operators.id values.

Data flow

Upstream tablesDownstream tables
FUTURE__teams---
FUTURE__operators---

Alignment

Partner API

  • Aligns with Partner API get/wallet-transactions endpoint
  • The endpoint only includes non-deleted operator transactions where the operator is not deleted
where deleted_at is null
and is_operator_transaction = true
and (
    (is_from_operator_wallet_match = true and from_wallet_operator_deleted_at is null)
    or (is_to_operator_wallet_match = true and to_wallet_operator_deleted_at is null)
)

The transactions table

  • The legacy table only included non-deleted team transactions where the team is not deleted.
  where deleted_at is null
  and is_team_transaction = true
  and (
      (is_from_team_wallet_match = true and from_wallet_team_deleted_at is null)
      or (is_to_team_wallet_match = true and to_wallet_team_deleted_at is null)
  )