Send a CONFIRM event to Sitecore CDP

Abstract

Provides the required attributes and a JSON example of how to send a CONFIRM event to Sitecore CDP (Data model 2.1)

The CONFIRM event captures the confirmation of purchased products. It is a vector of the products that are confirmed to be in the cart before the payment is made.

To send a CONFIRM event to Sitecore CDP, use the following attributes:

Attribute

Description

Type

Example(s)

Required/optional

channel

The channel captured on each page the guest visited.

string (uppercase)

"WEB", "MOBILE_WEB", "MOBILE_APP"

Required

type

The type of event.

string (uppercase)

"CONFIRM"

Required

language

The language captured on each page the Guest visited.

string (2 letter ISO 639 language code)

"EN", "FR", "DE"

Required

currency

The type of currency.

string (3 letter ISO 4217)

"EUR", "USD", "GBP"

Required

page

The name of the webpage the guest visited.

string

"home page", "search page" "/home", "/confirm"

Required

pos

The point of sale (storefront) captured on each page the guest visited.

string (predefined by the client)

"myretailsite.com"

Required

browser_id

The ID of a browser generated by Sitecore CDP.

string (UUID)

"56860bff-94ba-4d84-aa37-2b5a83d5411b"

Required

product

A JSON array containing a list of item_id objects.

JSON array

[{ "item_id": "SHOES_8475GHT" }, { "item_id": "TSHIRT_XLGRN" }]

Required

product.item_id

The item ID of the product to be confirmed as purchased.

string

"TSHIRT_XLGRN"

Required

The following JSON example demonstrates how to send a CONFIRM event:

{
    "channel": "WEB",
    "type": "CONFIRM",
    "language": "EN",
    "currency": "EUR",
    "page": "home page",
    "pos": "myretailsite.com",
    "browser_id": "56860bff-94ba-4d84-aa37-2b5a83d5411b",
    "product": [{
        "item_id": "SHOES_8475GHT"
    }, {
        "item_id": "TSHIRT_XLGRN"
    }]
}