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
Identifier of the contact in the third-party solution.
idTransaction
primary key
Transaction IDNVarChar(100)Identifier of the transaction in the third-party solution.
OrderNameThe unique identifier for the orderNVarChar(500)
Name of the transaction.
idSendLogSend log ID
Int
Identifier of the sendlog (Google Analytics).
idBatchBatch IDIntIdentifier of the Batch (Google Analytics).
AffiliationAffiliationNVarChar(500)
Obsolete with 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 dateDateTime
financialStatusTransaction financial statusNVarChar(100)Status of the order payment.
fulfillmentStatusTransaction fulfillment statusNVarchChar(100)Fulfillment status of the order.
idVisitVisit IDBigIntUsed by Journey for tracking. 
ECommerce_Item
CodeLabelDataTypeDescription
idTransaction
primary key
Transaction IDNVarChar(100)
Identifier of the transaction.
ProductNameProduct nameNVarChar(100)The name of the product. 
StatusStatusNVarChar(50)
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)
Identifier of a variant in the third-party. NULL if there are no variants.
idProductExternalId product externalNVarChar(100)
Identifier 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 priceDecimalThe item unit price.
Price_totalTotal priceDecimalThe total cost of an item: the sum of the quantity (Price_unit x Quantity).
ECommerce_Product
CodeLabelDataTypeDescription
idProductProduct IDNVarChar(100)
Identifier of the product in the third-party solution.
ProductNameProduct nameNVarChar(100)The 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)
The product's Dialog Insight status in the store. Suggests active or inactive stings (may be something else, but not supported by the product list).
SourceSourceNVarChar(50)
Name of the source from which the product comes (e.g., the name of a Shopify store).
UrlProductProduct urlNVarChar(500)
The 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)
Source of the product.
ECommerce_ProductCategory
CodeLabel
DataTypeDescription
idCategory
primary key
Category IDNVarChar(100)
Identifier 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)
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
Identifier 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)
ECommerce_CartItem
CodeLabelDataTypeDescription
idCart
primary key
Cart IDNVarChar(500)
Identifier of the cart in the third-party solution.
ProductNameProduct nameNVarChar(100)
The name of the product.
idProduct
Product IDNVarChar(100)
Identifier of the product in the third-party solution.
idVariantExternalExternal variant IDNVarChar(100)
Identifier of the variant in the third-party solution. NULL if there are no variants.
idProductExternalExternal product IDNVarChar(100)
Identifier 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.