Product Refund

This document describes the Out-Of-The-Box (OOTB) Product Refund event schema for use in your integrations. This event should be sent whenever an item refund is issued, whether partial or full. This can occur after return processing, customer service intervention, or automated refund workflows. Crucially, an event should be sent on a product level, meaning one event is triggered for each product that was refunded.

Event Key

Event KeyEvent NameType
ootb_product_refundProduct RefundSimple 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 OOTB Product Refund event.

{
  "context": {
    "ootb_session_id": "248rhdbuw2her1",
    "ootb_order_id": "ORD-4498TREF",
    "ootb_item_order_id": "OI-1298840",
    "ootb_refund_id": "RFND-98732",
    "ootb_product_id": "Sneakers93824",
    "ootb_variant_id": "Sneakers93824-White9",
    "ootb_sku_id": "Sneakers93824-White9-S9",
    "ootb_item_name": "White High-Top Sneakers - Size 9",
    "ootb_brand": "ExampleBrand",
    "ootb_category": "C-Footwear",
    "ootb_department": "D-Shoes",
    "ootb_refund_amount": 89.99,
    "ootb_refund_reason": "damaged_item"
  }
}

Parameters

📘

Events-based Integration (EBI): parameter classification

The Events-based Integration column shows how each parameter is treated when you onboard using an Events-based Integration:

  • Mandatory — required for the event to be ingested and processed correctly.
  • Mandatory if required for the execution channel integration — required only when the relevant execution channel (e.g., email, SMS, push, WhatsApp) is part of your integration.
  • Enrichment- used for out-of-the-box attribute — not required, but when provided it powers an Optimove out-of-the-box attribute.
  • Optional — accepted and stored when provided; not required and not tied to an OOTB attribute.
Parameter KeyParameter NameTypeDescriptionEvents-based Integration
ootb_session_idOOTB Session IDStringUser’s browser session ID if the refund was processed online.Optional
ootb_order_idOOTB Order IDStringThe order associated with the refund.Mandatory
ootb_item_order_idOOTB Item Order IDStringID of the specific item being refunded from the order.Mandatory
ootb_refund_idOOTB Refund IDStringUnique identifier for this specific refund transaction.Mandatory
ootb_product_idOOTB Product IDStringRefunded product’s ID.Mandatory
ootb_variant_idOOTB Variant IDStringVariant identifier of the refunded product.Optional
ootb_sku_idOOTB SKU IDStringSKU identifier of the refunded product.Optional
ootb_item_nameOOTB Item NameStringName of the refunded item.Optional
ootb_brandOOTB BrandStringBrand of the refunded product.Optional
ootb_categoryOOTB CategoryStringLowest-level category of the refunded product.Optional
ootb_departmentOOTB DepartmentStringTop-level department or category of the refunded product.Optional
ootb_refund_amountOOTB Refund AmountNumberThe amount refunded for this specific item (can be full or partial).Mandatory
ootb_refund_reasonOOTB Refund ReasonStringReason for the refund (e.g., damaged_item, late_delivery, changed_mind).Optional

Did this page help you?