Skip to main content
Schema: flow.rewards Table: fact_points_transfers Type: View Unified rewards points transfer table combining legacy Flow Points API and new Snag Loyalty API data. Data Sources:
  • Legacy (source=‘legacy’): Oct 2024 - Apr 14, 2025 from Flow Points API
  • Snag (source=‘snag’): Apr 16, 2025 onwards from Snag Loyalty API

Columns

Column NameData TypeDescription
POINT_IDTEXTUnique identifier for the points transaction (batch_id for legacy, entry_id for snag)
SOURCETEXTData source indicator: ‘legacy’ for Flow Points API or ‘snag’ for Snag Loyalty API
CREATED_ATTIMESTAMP_NTZThe date of the transfer
BATCH_INDEXNUMBERIndex of the batch (legacy) or transaction entry (snag)
TRANSFER_INDEXNUMBERLegacy only: Index of the individual transfer within a batch. NULL for snag data.
FROM_ADDRESSTEXTEVM address of the user involved in the transaction
TO_ADDRESSTEXTLegacy only: EVM address of the recipient. NULL for snag data.
BOXESNUMBERLegacy only: Number of boxes transferred. NULL for snag data.
KEYSNUMBERLegacy only: Number of keys transferred. NULL for snag data.
POINTSNUMBERNumber of points involved in the transaction
DIRECTIONTEXTSnag only: Transaction direction - ‘credit’ for points earned or ‘debit’ for points spent. NULL for legacy data.
AMOUNT_STARTNUMBERSnag only: Loyalty account balance before the transaction. NULL for legacy data.
AMOUNT_ENDNUMBERSnag only: Loyalty account balance after the transaction. NULL for legacy data.
ACCOUNT_IDTEXTSnag only: Loyalty account identifier. NULL for legacy data.
USER_IDTEXTSnag only: User identifier associated with the loyalty account. NULL for legacy data.
USER_WALLET_ADDRESSTEXTEVM wallet address of the user (maps from from_address for legacy, native field for snag)
TRANSACTION_IDTEXTSnag only: Parent loyalty transaction identifier. NULL for legacy data.
DATAOBJECTSnag only: Full raw JSON response from the API. NULL for legacy data.
PARTITION_KEYNUMBERSnag only: Partition key for efficient querying. NULL for legacy data.
INDEXNUMBERSnag only: Index of the transaction entry within the partition. NULL for legacy data.
_INSERTED_TIMESTAMPTIMESTAMP_NTZSnag only: Timestamp when the record was inserted into the warehouse. NULL for legacy data.
FACT_POINTS_TRANSFERS_IDTEXTSurrogate primary key for the table
INSERTED_TIMESTAMPTIMESTAMP_NTZUTC timestamp when the record was first inserted into this table
MODIFIED_TIMESTAMPTIMESTAMP_NTZUTC timestamp when this record was last modified
_INVOCATION_IDTEXT