Transaction Item feed

Transaction Item feed structure

Customer Data Platform (CDP) links the transaction line-level details with each customer. This includes product SKUs bought within each transaction, their associated revenue, and other line status information such as demand, canceled, shipped, or returned.

Feed structure

Field nameImportanceData typeReferential integrityDescription
SourceTransactionItemNumber (key)RequiredStringWebtag:SourceTransactionItemNumberThe unique identifier of the transaction item in your data. If the item has multiple rows due to each status update, from “demand” to “shipped”, CDP creates a unique row for each status. You can achieve this by appending the status of the item to its identifier.
SourceTransactionNumberRequiredStringTransaction:SourceTransactionNumber, Webtag:SourceTransactionNumberThe unique identifier of the transaction to which this item belongs.
SourceOrganizationNumberRequiredStringOrganization:SourceOrganizationNumberThe identifier of the organization where the TransactionItem was purchased/returned.
TypeRequiredString The type of transaction item. This is to categorize purchases that are included in calculations. For example, Lifetime Value and AOV. The only value that CDP considers for calculations is “Purchase”. Other values such as “Swatch”, “Sample” are ingested but are not considered in CDP’s standard calculations. If you do not provide a value, CDP sets the default value to “Purchase”.
SubtypeRequiredString 

The type or status of the transaction item. The following are the values:

  • Demand - The items that are billed but not shipped
  • Canceled - The items that are billed but canceled and refunded before shipping.
  • Shipped - The items that are billed and shipped

Returned - The items that are billed and shipped but returned

and refunded.

InvoiceDateRequiredDatetime The date at which the overarching transaction was placed.
ShipDateRequiredDatetime 

The date at which this specific transaction item was billed. The following are the values:

  • Demand - Subtype=Demand
  • Canceled - Subtype=Canceled
  • Shipped - Subtype=Shipped
  • Returned - Subtype=Returned
SourceProductNumberRequiredStringProduct:SourceProductNumber

The identifier of the product purchased in that transaction item. There must only be one SourceProductNumber per line in this feed. If the customer purchased multiple distinct products in the same transaction, each unique SourceProductNumber must have its own transaction item line. If the customer purchased multiple times the same product, CDP uses only one line in this feed, with that product’s SourceProductNumber but a Quantity equal to the purchased quantity for that product.

Note

In 360 Profiles, the Transactions tab does not display the entry for a transaction if a matching record for the transaction does not exist in the Product table.

QuantityRequiredInteger The quantity for the product that was purchased in this transaction item. This value must reflect the Subtype. If the Subtype is “Demand” or “Shipped”, it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
WeightOptionalFloat The total weight of the product sold in the transaction item. This is not used in CDP’s calculations, and is provided as a standard “pass-through” attribute.
VolumeOptionalFloat The total volume of product sold in the transaction item. This is not used in CDP’s calculations, and is provided as a standard “pass-through” attribute.
ListPriceOptionalFloat The total ListPrice value of the product purchased in the transaction item.
CurrencyOptionalString The currency for this transaction item’s revenue/costs/discounts/other monetary amounts.
SaleRevenueRequiredFloat The price paid by the customer for this item, after discount and before shipping/tax/fees. This is also referred to as “product revenue”. For most cases, it is Quantity*(UnitSalePrice-UnitDiscount). This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped”, it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
DiscountRequiredFloat The product discount for this item before any discount on shipping/tax/ fee. It must also include any transaction-level discount if any was applied. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped”, it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
CostBasisOptionalFloat The total Cost of Goods Sold (COGS) for this item. This field is required if you need CDP to compute the product margin. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped”, it must be positive. If Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
TaxOptionalFloat The amount of taxes paid by the customer on this item. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped” it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
ShippingRevenueOptionalFloat The amount paid by the customer for shipping this item. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped” it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
ShippingCostOptionalFloat The amount spent by your company to ship this item. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped” it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
ShippingDiscountOptionalFloat Any discount applied on shipping for this item. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped” it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
OtherRevenueOptionalFloat Any other non-product, non-shipping, non-tax revenue generated by this item, such as fees. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped” it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
OtherCostsOptionalFloat Any other non-product, non-shipping cost generated by this item, such as fees. This value must reflect the Subtype of the item. If the Subtype is “Demand” or “Shipped” it must be positive. If the Subtype is “Canceled” or “Returned”, it must be negative to negate the lines corresponding to the past status of this item.
DateCreatedOptionalDatetime The date at which the record was created in your system.
GiftOptionalBoolean A flag to indicate whether this item was a gift or not. This is not used in CDP’s calculations, and is simply provided as a standard “pass-through” attribute.
Custom attributesOptionalAny (float, datetime, string, boolean) Custom attributes that you want to use inside the CDP application. To get this customization, contact your CDP CVM.

For more information on how this feed can evolve over the typical lifetime of a transaction order placed, cancelled, items shipped and returned, see Special considerations for transaction data.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation