Sales data feed specifications
Sitecore Discover predefines sales data attributes to facilitate your sales data feed. When you prepare a sales data feed file, you must map your own sales attributes to the appropriate Discover sales attributes.
After you have prepared your sales data feed file, please contact Sitecore Support to configure the initial feed run.
The following table lists and describes required and optional attributes to include in your sales data feed:
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
string |
Required. Unique number or ID associated with an order. Is the same across all lines associated with an order. |
|
|
string |
Required. Date and time when the order was placed. Format ISO 8601 standard:
|
|
|
string |
Required. A unique string that identifies a group of SKUs. If a product is same as SKU, then it can be the same value as the SKU value. For example, all the size variations of a given shirt size and color might fall into this category. When not specified, all products sharing a particular URL are grouped together. |
|
|
string |
Required. A unique string used to identify a particular product, usually SKU. |
|
|
float |
Required. Catalog price when order was made. Double precision floating point number. |
|
|
float |
Required. Sale price at the time order was made. If there is no discount from the catalog price, this must be the same as the price attribute. Double precision floating point number. |
|
|
integer |
Required. The number of items purchased. |
|
|
float |
Required. Total order amount. This is the value that is used to track revenue in your system. It must be the same value for all lines associated with an order. Double precision floating point number. |
|
|
string |
Optional. Unique ID associated with the user or customer who made the purchase. Typically, this is the ID assigned to the customer in your CRM system. This is the same user ID used in events ( |
|
|
string |
Optional. A hash (md5 or SHA256) of user email address, or other ID used by the email service provider. Used for personalizing recommendations in promotional email campaigns. |
|
|
string |
Optional. User or customer email address. | |
|
string |
Optional. Zip code of billing address. |
|
|
string |
Optional. State or region used for billing. For USA billing address, this is the state name or abbreviation. |
|
|
string |
Optional. Country in the billing address. |
|
In-store sales attributes
The following attributes are used for in-store:
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
string |
Optional. ID of the store where order was placed. Presence of this attribute value means the transaction happened in store. |
|
|
string |
Optional. Zip code of store. |
|
|
string |
Optional. Region where store is located. For example in the USA, this is the state name/abbreviation. |
|
|
string |
Optional. A 3-letter country code. Default: USA |
|