Navigation

Fields of the E-commerce Tables in the Retail Structure

This article presents all the fields used in standard e-commerce tables with the Retail structure (see how to generate this structure). This reference aims to provide a consistent view of the data model to simplify data integration, analysis, and use in Dialog Insight. For each table, you will find a list of the fields, including their code, label, type, and description.

ECommerce_Transaction
CodeLabelDataTypeDescription
customer_id
foreign key
Source Person IDDepending on the primary key of the project:
  • Int
  • NVarChar
ID of the contact (primary key) who made the transaction
idTransaction
primary key
Transaction IDNVarChar(100)ID of the transaction in the third-party solution
OrderNameThe unique identifier for the orderNVarChar(500)
Name of the transaction
idSendLogSend log ID
Int
ID of the sendlog for Google Analytics
idBatchBatch IDIntID of the Batch for Google Analytics
AffiliationAffiliationNVarChar(500)
Affiliation data for Google Analytics (obsolete for GA4)
RevenueRevenue
Decimal
Gross revenue from the sold items
ShippingShippingDecimalShipping cost before taxes at the time the order was placed
TaxTaxDecimalTotal of the taxes at the time the order was placed
dtTransactionCreatedAtTransaction creation dateDateTime
Creation date of the transaction in the store
dtTransactionUpdatedAtDate of the last update of the transactionDateTimeLast modification of the transaction in the store
dtTransactionTransaction dateDateTimeCreation date of the transaction in the store
financialStatusTransaction financial statusNVarChar(100)Status of the order payment(e.g., "Paid", "Pending", "Refunded")
fulfillmentStatusTransaction fulfillment statusNVarchChar(100)Processing status of the order (e.g., "Processing", "Shipped", "Completed")
idVisitVisit IDBigIntUsed by Journey for tracking
ECommerce_Item
CodeLabelDataTypeDescription
idTransaction
primary key
Transaction IDNVarChar(100)
ID of the transaction linked to this item, associated with the Transaction table
ProductNameProduct nameNVarChar(100)Name of the product
StatusStatusNVarChar(50)Status of the ticket (e.g., "Confirmed", "Cancelled")
idProduct
Product IDNVarChar(100)
Dialog Insight ID for the product. If the product has variants, the value represents the unique identifier of the third-party service variant. Otherwise, the value represents the unique identifier of the third-party service product.
idVariantExternalId variant external
NVarChar(100)
ID of a variant in the third-party. NULL if there are no variants
idProductExternalId product externalNVarChar(100)
ID of the product in the third-party solution
CategoryCategory nameNVarChar(100)
Name of the category
idCategoryCategory IDNVarChar(100)
Identifier of the category
QuantityQuantityIntQuantity for a specific ordered item (product)
Price_unitUnit priceDecimalItem unit price
Price_totalTotal priceDecimalTotal cost for the item (Price_unit x Quantity)
ECommerce_Product
CodeLabelDataTypeDescription
idProductProduct IDNVarChar(100)
ID of the product in the third-party solution
ProductNameProduct nameNVarChar(100)Name of the product
idCategoryCategory IDNVarChar(100)
Category Identifier
DataDataJSONData from different structures can be displayed, but not used for any other functions, except for custom purposes
DescriptionDescriptionNVarChar(500)
Product description
CurrentPriceCurrent priceDecimalCurrent price in the store
RegularPriceRegular priceDecimalPrice before discounts
CurrencyCurrencyNVarChar(5)
The selected currency in the E-commerce configuration
SKUSKUNVarChar(100)
A SKU (Stock Keeping Unit) is a combination of unique characters used by retailers to identify and track products
LastUpdateLast modification dateDateTimeLast product update in the store
StatusStatusNVarChar(50)
Product's Dialog Insight status in the store (e.g., "Active", "Inactive", "Sold Out")
SourceSourceNVarChar(50)
Name of the source from which the product comes (e.g., the name of a Shopify store)
UrlProductProduct urlNVarChar(500)
Link to see the product in the default store language
UrlImageDefautDefault image urlNVarChar(500)
Default image of the product
InventoryQuantityInventory QuantityIntInventory quantity
sourceApplicationProduct source applicationNVarChar(100)
Origin of the data imported for the product (e.g., external system, import)
ECommerce_ProductCategory
CodeLabel
DataTypeDescription
idCategory
primary key
Category IDNVarChar(100)
ID of the category
CategoryNameCategory nameNVarChar(100)
Name of the category
ECommerce_Cart
CodeLabelDataTypeDescription
customer_id
foreign key
Source Person IDNVarChar(100)Identifier of the contact linked to the cart in the third-party solution
idCart
primary key
Cart IDNVarChar(500)
Identifier of the cart
sourceApplicationCart source applicationNVarChar(100)Origin of the data imported for the cart (e.g., external system, import)
StatusStatusNVarChar(50)If the cart is abandoned or is part of an order
idSendLogSend log IDBigIntIdentifier of the sendlog (used by Journey)
idBatchBatch ID
Int
ID of the batch (used by Journey)
dtCreatedCreation dateDateTimeCart creation date
dtModifiedModification dateDateTimeCart modification date
TotalPriceTotal priceDecimalTotal price of the cart
idVisitVisit IDBigIntUsed by Journey for tracking
RetrievalDataData to retrieve cartsNVarChar(MAX)Data to retrieve a cart (generally a URL generated by some e-commerce integrations from Dialog Insight)
ECommerce_CartItem
CodeLabelDataTypeDescription
idCart
primary key
Cart IDNVarChar(500)
ID of the cart in the third-party solution
ProductNameProduct nameNVarChar(100)
The name of the product
idProduct
Product IDNVarChar(100)
ID of the product in the third-party solution
idVariantExternalExternal variant IDNVarChar(100)
ID of the variant in the third-party solution. NULL if there are no variants
idProductExternalExternal product IDNVarChar(100)
ID of the product in the third-party solution
CategoryCategory nameNVarChar(100)
Name of the category
idCategoryCategory IDNVarChar(100)
Identifier of the category
QuantityQuantitéIntQuantity for a specific ordered item (product)
PriceUnitUnit priceDecimalUnit price of the item
dtCreatedCreation dateDateTimeDate and time of creation
dtModifiedModification dateDateTimeDate and time of the modification

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.