Skip to main content
The Datasource described on this page is an illustrative example. The actual fields, structure, and naming will vary based on your brand’s specific data model and integration. Use this as a reference for the type of data needed, not as an exact specification.

Overview

The Purchases Datasource contains the detailed transaction history for each customer: what they bought, when, how much they spent, and through which channel. This powers recommendation exclusion logic (never recommend what was already bought), frequency analysis, and category affinity calculations.

Key Fields

FieldTypeDescriptionExample values
transaction_idStringUnique order identifier"ORD-2024-847291"
customer_idStringCustomer who made the purchase"C-2847391"
purchase_dateDateDate of transaction2024-11-15
productsArrayList of products purchased[{product_id: "SKU-12345", quantity: 1, price: €129}]
total_amountCurrencyOrder total€247.00
channelEnumPurchase channel"web", "store", "app"
store_idStringStore (if in-store purchase)"STR-PARIS-MARAIS"

Connected Use Cases

Use CaseHow Purchases is used
Enriched Product RecommendationExclusion logic + category affinity calculation
Customer Value BlockTotal spend, frequency, last purchase context

Data Requirements

RequirementDetails
Update frequencyReal-time or daily (after each transaction)
Minimum fieldstransaction_id, customer_id, purchase_date, total_amount
Recommended fieldsAll listed above for full recommendation quality
FormatJSON via Datasources API
VolumeFull transaction history (or last 24 months minimum)

Integration Notes

Purchases are sourced from the brand’s OMS (Order Management System) or e-commerce platform. Both online and offline transactions should be included for complete behavioural analysis.
The distinction between Purchases (transaction-level detail) and CRM 360 (aggregated customer metrics) is important: CRM 360 provides the summary (total spend, frequency); Purchases provides the detail (individual orders, products, categories).