Supported data types
Costs
Marketing costs data
Indeliveries
Incoming products
Inventory
Stock levels & product data
Logistics
Shipping & fulfillment costs
Orders
Customer transactions
Prerequisites
Before setting up the Snowflake integration, ensure you have:- Tables or views in Snowflake containing your data, with columns matching our schema
- A Snowflake user with read access to the necessary tables/views for the integration
Step-by-step integration guide
1
Initial setup
Create a dedicated user in Snowflake for the integration with read access to the necessary tables. Provide the following credentials to your Customer Success Manager:
Send the information via secure password sharing.
Example
2
Specifying data tables and schema
Ensure each Snowflake table aligns with our schema. Columns must be named according to the column names specified in the schema below. This is crucial for accurate data integration.
3
Finalizing integration
After setting up the user and ensuring data mapping accuracy, our team will finalize the integration process, enabling data flow from Snowflake into our platform.
Multiple values Some fields allow multiple values. These fields can be added as column of Array type, like
["value1", "value2", "value3"]. Data schema
Costs
Marketing costs data for campaign tracking and ROI analysis.All fields
All fields
Required:
Date of the campaign data (YYYY-MM-DD according to ISO8601).
Format: ISO 8601
Example: 2025-02-20
Format: ISO 8601
Example: 2025-02-20
Marketing channel used.
Example: Facebook
Example: Facebook
Group classification of the channel.
Example: Social paid
Example: Social paid
Total cost associated with the campaign.
Example: 1500
Example: 1500
Targeted country (2 letters).
Format: ISO 3166
Example: SE
Format: ISO 3166
Example: SE
Currency of the cost data (3 letters).
Format: ISO 4217
Example: SEK
Format: ISO 4217
Example: SEK
Name of the campaign.
Example: Summer Sale 2025
Example: Summer Sale 2025
Indeliveries
Track incoming product deliveries to your warehouses.All fields
All fields
Required:
Unique product identifier.
Example: AK0898
Example: AK0898
Expected or actual date of delivery for the items to the warehouse.
Format: ISO 8601
Example: 2025-02-20
Format: ISO 8601
Example: 2025-02-20
Quantity of items in delivery.
Format: Non-negative
Example: 1
Format: Non-negative
Example: 1
Product variant number. Unique identifier of product variant (eg. style, color, size).
Example: BUF036
Example: BUF036
Warehouse identifier.
Example: warehouse-1
Example: warehouse-1
Inventory
Current stock levels and product attributes across all warehouses.All fields
All fields
Required:
Unique product identifier. Same as in your datalayer on the website.
Example: AK0898
Example: AK0898
Product name.
Example: Black Dress no. 1
Example: Black Dress no. 1
Currency code for purchase price.
Format: ISO 4217
Example: SEK
Format: ISO 4217
Example: SEK
Product variant number. Unique identifier of product variant (eg. style, color, size).
Example: BUF036
Example: BUF036
Purchase price of the variant.
Format: Non-negative
Example: 120
Format: Non-negative
Example: 120
Available inventory quantity.
Format: Non-negative
Example: 124
Format: Non-negative
Example: 124
Warehouse identifier.
Example: warehouse-1
Example: warehouse-1
Product brand.
Example: brand-1
Example: brand-1
Product category.
Example: Apparel
Example: Apparel
Product subcategory.
Example: Dresses
Example: Dresses
Product collection.
Example: Summer collection
Example: Summer collection
Gender targeting for the product.
Example: Women
Example: Women
Color of the product variant.
Example: Black
Example: Black
Size of the product variant.
Example: M
Example: M
Material of the product variant.
Example: Polyester
Example: Polyester
GTIN of the product variant.
Example: 734567890123
Example: 734567890123
Image URLs for the variant. Must be a publicly accessible URL. Max size: 20MB.
Example: https://example.com/image.jpg
Example: https://example.com/image.jpg
Custom attributes
Custom attributes
Up to 20 custom attributes for additional product or variant metadata.
Example: season-2024
Example: season-2024
Logistics
Shipping and fulfillment costs associated with orders.All fields
All fields
The merchant order ID to associate the cost with.
Example: 4033186
Example: 4033186
Invoice number for reference and deduplication.
Example: INV-2025-001
Example: INV-2025-001
Date when the logistics cost was incurred.
Format: ISO 8601
Example: 2025-10-27
Format: ISO 8601
Example: 2025-10-27
Currency code.
Format: ISO 4217
Example: EUR
Format: ISO 4217
Example: EUR
Cost amount.
Format: Decimal
Example: 4.5
Format: Decimal
Example: 4.5
Direction of shipment: "outbound" for customer deliveries, "return" for customer returns.
Format: outbound | return
Example: outbound
Format: outbound | return
Example: outbound
Orders
Customer transaction data including order details and line items.How order data should be structured
How order data should be structured
Each row represents a unique order line, identified by the combination of
ORDER_ID, PRODUCT_ID, and VARIANT_NO.| Requirement | Description |
|---|---|
| Unique rows | Each row must have a unique ORDER_ID-PRODUCT_ID-VARIANT_NO combination |
| Quantity handling | If multiple items of the same variant were bought, aggregate them using QUANTITY_DECIMAL |
| Tax inclusion | All prices should include tax |
| Header repetition | Order header fields (like ORDER_ID, CURRENCY, TOTAL) must be repeated for every line item in the same order |
| Updates | When updating an order, include the UPDATED_AT field along with the changed fields |
| Storefront mapping | To map data to a specific storefront, fill out EXTERNAL_STOREFRONT_ID and provide us with info about your existing storefronts, see Storefront assignment |
Order header fields
Order header fields
Required:
Unique order identifier from your e-commerce system. Used to link order lines and match with returns.
Example: D12345
Example: D12345
Timestamp when the order was placed. Used as the primary date for order analytics.
Format: ISO 8601 - UTC
Example: 2025-01-13T11:36:45Z
Format: ISO 8601 - UTC
Example: 2025-01-13T11:36:45Z
Customer's country code. Used for geographic segmentation and storefront mapping.
Format: ISO 3166
Example: SE
Format: ISO 3166
Example: SE
Currency of all monetary values in the order (prices, totals, shipping, tax).
Format: ISO 4217
Example: SEK
Format: ISO 4217
Example: SEK
Total shipping fees charged to the customer, including tax. Set to 0 for free shipping.
Format: Non-negative
Example: 80
Format: Non-negative
Example: 80
Total tax for the entire order, including product tax and shipping tax. Based on final paid amounts.
Format: Non-negative
Example: 200
Format: Non-negative
Example: 200
Final order amount paid by customer after all discounts. Includes tax but excludes shipping. Includes cancelled items.
Format: Non-negative
Example: 3000
Format: Non-negative
Example: 3000
Timestamp of the last order modification. Required when updating existing orders with new data.
Format: ISO 8601 - UTC
Example: 2025-01-13T11:36:45Z
Format: ISO 8601 - UTC
Example: 2025-01-13T11:36:45Z
Customer's shipping city. Used for geographic analysis and reporting.
Example: Stockholm
Example: Stockholm
State, province, or region for the order. Used for regional sales analysis and reporting.
Example: California
Example: California
Customer's postal code without spaces. Used for geographic analysis and delivery zone reporting.
Example: 11613
Example: 11613
Unique customer identifier for cohort analysis and repeat purchase tracking. Can be customer ID, email, or hashed email.
Example: [email protected]
Default:
Example: [email protected]
Default:
UNKNOWNIdentifier for the storefront or sales channel where the order originated. Used to separate analytics by storefront.
Example: CH-233
Example: CH-233
Payment method or provider used for the transaction (e.g., Klarna, Stripe, PayPal, Credit Card).
Example: Klarna
Example: Klarna
Primary carrier for the order (e.g., UPS, FedEx, DHL, PostNord). Can be overridden per line item.
Example: UPS
Example: UPS
Overall order fulfillment status. CANCELLED orders are excluded from revenue calculations by default.
Format: PENDING | IN_PROGRESS | COMPLETED | CANCELLED
Example: PENDING
Default:
Format: PENDING | IN_PROGRESS | COMPLETED | CANCELLED
Example: PENDING
Default:
UNKNOWNSales channel type (e.g., ONLINE, RETAIL, WHOLESALE, MARKETPLACE). Used to segment order analytics.
Example: ONLINE
Default:
Example: ONLINE
Default:
ONLINEVoucher or discount code entered by the customer at checkout. Used for campaign performance tracking.
Example: BLACK_WEEK25
Example: BLACK_WEEK25
Total discount amount applied by the voucher code. Deducted from order total.
Example: 1000
Example: 1000
Category of voucher (e.g., DISCOUNT, FREE_SHIPPING, GIFT_CARD, LOYALTY_REWARD). Used for voucher analysis.
Example: DISCOUNT
Example: DISCOUNT
Order line fields
Order line fields
Required:
Unique product identifier. Must match the product ID used in your website's data layer for accurate attribution.
Example: AK0898
Example: AK0898
Unique variant identifier combining attributes like size and color. Must match inventory data for COGS lookup.
Example: BUF036
Example: BUF036
Number of units sold. Supports decimals for products sold by weight or length. Aggregate if multiple of the same variant.
Format: Non-negative
Example: 2.5
Format: Non-negative
Example: 2.5
Full retail price per unit before any discounts. Including tax, excluding order-level voucher discounts.
Format: Non-negative
Example: 1000
Format: Non-negative
Example: 1000
Actual price paid per unit after item-level discounts. Including tax, excluding order-level voucher discounts.
Format: Non-negative
Example: 900
Format: Non-negative
Example: 900
Fulfillment warehouse for this line item. Used for inventory allocation and logistics analysis.
Example: warehouse-1
Example: warehouse-1
Tax amount per unit based on paid price.
Format: Non-negative
Example: 30
Format: Non-negative
Example: 30
Tax rate as a percentage (e.g., 25 for 25% VAT).
Format: Non-negative
Example: 25
Format: Non-negative
Example: 25
Cost of Goods Sold per unit. Overrides COGS from inventory data when specified. Use only if order-level COGS differs from inventory.
Format: Non-negative
Example: 200
Format: Non-negative
Example: 200
Currency of the COGS value. Required when COGS is specified.
Format: ISO 4217
Example: USD
Format: ISO 4217
Example: USD
Identifier of the promotion rule applied to this item. Links to your promotion management system.
Example: promotion-12345
Example: promotion-12345
Discount amount applied per unit from a promotion rule. Used for promotion performance analysis.
Example: 100
Example: 100
How the promotion discount is calculated. FIXED for absolute amounts, PERCENTAGE for percentage-based discounts.
Example: FIXED
Example: FIXED
Fulfillment status for this specific line item. Overrides the order-level status when set.
Format: PENDING | IN_PROGRESS | COMPLETED | CANCELLED
Example: PENDING
Format: PENDING | IN_PROGRESS | COMPLETED | CANCELLED
Example: PENDING
Tracking identifier for the outbound shipment from the shipping carrier.
Example: shipment-id
Example: shipment-id
Current status of the outbound shipment tracking the item's delivery to the customer.
Example: CREATED
Example: CREATED
Carrier for this specific line item. Use when items ship from different locations or via different carriers.
Example: UPS
Example: UPS
Return fields (within orders)
Return fields (within orders)
Include these fields to record returns directly in your orders table.
Timestamp when the return was processed. Used to calculate time-to-return metrics.
Format: ISO 8601 - UTC
Example: 2025-01-14T11:36:45Z
Format: ISO 8601 - UTC
Example: 2025-01-14T11:36:45Z
Number of units returned. Supports decimals for products sold by weight or length.
Format: Non-negative
Example: 1.5
Format: Non-negative
Example: 1.5
Customer's reason for returning the item (e.g., TOO_SMALL, DEFECTIVE, WRONG_ITEM, CHANGED_MIND).
Example: TOO_SMALL
Example: TOO_SMALL
Current status of the return shipment tracking the item's journey back to the warehouse.
Example: DELIVERED
Example: DELIVERED
Tracking identifier for the return shipment from the shipping carrier.
Example: shipment-id
Example: shipment-id
Carrier handling the return shipment (e.g., UPS, FedEx, DHL, PostNord).
Example: UPS
Example: UPS
Destination warehouse where the returned item will be received and processed.
Example: warehouse-1
Example: warehouse-1
Troubleshooting and support
For common issues and solutions, contact our support team directly for assistance.Additional resources
- Snowflake’s documentation for user creation and permission settings: Snowflake Documentation

