Standard Schema
Every FirstHive account starts with four standard entities. They fit retail, ecommerce and D2C businesses out of the box, and they’re the base that every industry schema builds on.
| Entity | One record per | Built from |
|---|---|---|
| Event | Interaction: a page view, click, message, purchase, status change | Sent in, never changed after |
| Customer | Person (one FHID) | Calculated from the person’s events and identifiers |
| Transaction | Order, booking or payment | Calculated from order events |
| TransactionItem | Line item in a transaction | Calculated from line-item events |
| Catalogue | Product, variant and market price | Your commerce platform or a product feed |
| Offers | Offer and offer code | Created in FirstHive or brought in from another system |
Every record carries acc_id (your account) and fhid (the unified customer it belongs to). Fields in nested objects are written with a dot, for example contact.email or amount.total.
Event
The atomic, immutable record. Every tracked interaction is stored as one of these.
| Field | Type | Required | Description |
|---|---|---|---|
| acc_id | long | Yes | Account identifier |
| category | string | Yes | Event category |
| event_id | binary | Yes | Unique event identifier |
| event_name | string | Yes | Event name |
| event_date | string | Yes | Event occurrence date |
| event_time | timestamp | Yes | Event occurrence timestamp |
| event_type | string | Yes | system or custom |
| fhid | binary | Yes | FirstHive unified identifier, assigned at ingestion |
| event_label | string | No | Label of the event source |
| event_source | string | No | Source of the event |
| sid | binary | No | Session identifier |
Nested objects on Event:
- campaign: id, channel, journey_id, template_id, variant_id, msg_id
- channel: utm_source, utm_medium, utm_campaign, utm_content, utm_term, ad_creative, ad_group, landing_page_url, referral_url, grouping
- device: id, type, platform, os, os_version, brand, model, browser, screen_resolution, view_port, user_agent, connection_type, network_provider
- geo: city, region, country, latitude, longitude, timezone
- tech: ip, app_version
- custom: your own fields (see Custom fields)
Customer
The unified profile entity, derived from the event stream.
| Field | Type | Required | Description |
|---|---|---|---|
| acc_id | long | Yes | Account identifier |
| fhid | binary | Yes | FirstHive unified identifier |
| cid | string | No | Customer identifier |
| pfhid | binary | No | Prior/parent FHID (reference from before unification) |
| unified | boolean | No | Whether this record has completed unification |
| tags | array | No | Free-form tags |
| created_at / updated_at / updated_date | timestamp/string | No | Record audit timestamps |
Nested objects on Customer:
- contact: email, mobile, alternate_email, contact_android_device_id, contact_ios_device_id, contact_web_device_id, preferred_contact_method
- consent: email, sms, whatsapp, rcs, mobilepush, webpush (all boolean)
- demography: first_name, last_name, middle_name, full_name, salutation, gender, dob, age, marital_status, education_level, occupation, income_bracket, language, region, city, country, zip_code
- reachability: preferred_channel, best_time_to_contact, and per-channel booleans (email, sms, whatsapp, rcs, mobile_push, web_push)
- tx (a behavioral and transactional summary calculated by FirstHive, not sent in): first_purchase_date, last_purchase_date, purchase_count, frequency, recency, monetary_value, aov, average_days_between_purchases, frequent_city, preferred_payment_method, mode, customer_segment, and ML-derived fields: ltv, clv_prediction, churn_risk
- custom: your own fields (see Custom fields)
Transaction
Any purchase, booking, order, or financial event, derived from the underlying event history.
| Field | Type | Required | Description |
|---|---|---|---|
| acc_id | long | Yes | Account identifier |
| fhid | binary | Yes | FirstHive unified identifier |
| id | binary | Yes | Unique identifier |
| cid | string | No | Customer identifier |
| id_orig | string | No | Original source-system identifier |
| invoice_id | string | No | Invoice identifier |
| item_count | long | No | Number of line items |
| txn_date | timestamp | No | Transaction date |
| txn_status | string | No | Current transaction status |
| source, store_id, notes, tags | — | No | Origin and free-form metadata |
Nested objects on Transaction:
- amount: subtotal, discount, taxes, total, final
- billing / shipping: full address blocks (name, first_name, last_name, phone, company, address1, address2, city, province, province_code, country, country_code, zip, latitude, longitude)
- contact: email, phone
- payment: method, gateway, status, card_last_four, tx_ref
- delivery: method, shipping_carrier, shipping_service, estimated_date, actual_date, shipped_date, tracking_number, tracking_url, fee, is_free, is_expedited, shipment_status, instructions
- cancellation: state, date, reason, initiated_by
- refund: status, amount, date, reason, transaction_id
- replacement: state, original_order_id
- review: status, description
- points: earned, used, is_used, value
- order: issue_state, issue_description
- sales: channel_id, channel_name
- channel: utm_campaign, utm_medium, utm_source
- device: ip_address, session_id, user_agent
- demography: first_name, last_name
TransactionItem
One line item within a Transaction, linked to its Transaction by txn_id.
| Field | Type | Required | Description |
|---|---|---|---|
| acc_id | long | Yes | Account identifier |
| fhid | binary | Yes | FirstHive unified identifier (independent of the parent Transaction’s) |
| id | binary | Yes | Unique identifier |
| id_orig | string | Yes | Original source-system identifier |
| txn_id | binary | Yes | Parent Transaction identifier |
| txn_id_orig | string | Yes | Parent transaction’s original source-system identifier |
| created_at / updated_at / updated_date | — | No | Record audit timestamps |
Nested objects on TransactionItem:
- item: id, sku_id, variant_id, name, category, subcategory, quantity, serial_no, warranty_info, expiry_date
- price: mrp, selling, total, taxes, tax_included
- discount: applied, amount, coupon_code
- fulfillment: status, date
- cancellation: state, date, reason
- return: status, date, reason
- replacement: state, item_id, reason
- gift: state, message
- subscription: enabled, id, status, frequency, iteration_id, iteration_number
Related articles
© 2026 FirstHive. All rights reserved.