Online Order (Opti-X)

Event Key

ootb_online_order

This event should be sent when a user confirms an online order for a single item (with variable quantity).

Event KeyEvent NameType
ootb_online_orderOnline OrderSimple event

Event Structure

The mandatory properties (tenant, timestamp, event, and customer) are required for all events and documented in detail on the Mandatory Properties page. Below is the JSON structure for the context-specific properties of the Online Order event:

{
  "context": {
    "ootb_session_id": "248rhdbuw2her1",
    "ootb_userid": "ExampleUser1234",
    "ootb_eventdatetime": "2024-03-09T06:00:12.000Z",
    "ootb_product_id": "RippedJeans1934256",
    "ootb_variant_id": "RippedJeans1934256-Blue",
    "ootb_sku_id": "RippedJeans1934256-Blue-W28H30",
    "ootb_brand": "Example Brand",
    "ootb_category": "C-22149",
    "ootb_department": "D-902es",
    "ootb_url": "https://www.example.com/jeans/1934256",
    "ootb_page_title": "Casual Ripped Blue Jeans",
    "ootb_page_category": "Clothing – Jeans",
    "ootb_currency": "USD",
    "ootb_item_name": "Casual Ripped Blue Jeans",
    "ootb_quantity": 2,
    "ootb_total_pay": 40.00,
    "ootb_discount_percentage": 10,
    "ootb_item_order_id": "OI-1298840",
    "ootb_order_id": "O-3sd82rhf",
    "ootb_tax_amount": 2.00,
    "ootb_delivery_fee": 4.99,
    "ootb_fullfillment_type": "standard_delivery"
  }
} 

Parameters

Parameter KeyParameter NameTypeDescriptionMandatory for Opti-X?
ootb_session_idSession IDStringUser’s browser session identifier.No
ootb_useridUser IDStringUnique key identifying the user.Yes
ootb_eventdatetimeEvent Date TimeTimestampDate and time of the order.Yes
ootb_product_idProduct IDStringUnique key for the product ordered.Yes
ootb_variant_idVariant IDStringKey identifying the variant of the product.No
ootb_sku_idSKU IDStringKey identifying the SKU of the variant.No
ootb_brandBrandStringBrand of the item.Yes
ootb_categoryCategoryStringKey identifying the lowest level of product category.Yes
ootb_departmentDepartmentStringKey identifying the department or highest-level category.Yes
ootb_urlURLStringLink to the product page.No
ootb_page_titlePage TitleStringTitle of the product’s page.No
ootb_page_categoryPage CategoryStringCategory label of the product’s page.No
ootb_currencyCurrencyStringCurrency code of the order (e.g., USD).No
ootb_item_nameItem NameStringName of the item ordered.No
ootb_quantityQuantityNumberQuantity of the item ordered.No
ootb_total_payTotal PayNumberTotal payment for this item (quantity × price, after discounts).No
ootb_discount_percentageDiscount PercentageNumberDiscount applied to the item as a percentage.No
ootb_item_order_idItem Order IDStringUnique identifier for this item order line.No
ootb_order_idOrder IDStringUnique identifier for the overall order.Yes
ootb_tax_amountTax AmountNumberTax amount for this item (considering quantity).No
ootb_delivery_feeDelivery FeeNumberDelivery or shipping fee for the order (may cover multiple items).No
ootb_fullfillment_typeFulfillment TypeEnumbopis or standard_delivery to indicate pickup vs delivery.No

Explanation

  • event: Set to ootb_online_order to indicate an online order placement for a single item.
  • context:
    • ootb_session_id, ootb_userid: Link the order to the user’s session and identity.
    • ootb_eventdatetime: Timestamp when the order was confirmed.
    • ootb_product_id, ootb_variant_id, ootb_sku_id, ootb_item_name, ootb_brand: Identify the specific item ordered, its variant, SKU, name, and brand.
    • ootb_category, ootb_department: Provide product taxonomy (lowest and highest level categories).
    • ootb_url, ootb_page_title, ootb_page_category: Context of the product page from which the item might have been ordered.
    • ootb_currency, ootb_quantity, ootb_total_pay, ootb_discount_percentage, ootb_tax_amount, ootb_delivery_fee: Capture the financial details of the ordered item, including currency, quantity, total payment for the item, any discounts, taxes, and associated delivery fees.
    • ootb_item_order_id, ootb_order_id: Unique identifiers for the specific line item within the order and the overall order itself.
    • ootb_fullfillment_type: Indicates whether the purchase is for in-store pickup (bopis) or standard home delivery.