Skip to content

Latest commit

 

History

History
112 lines (78 loc) · 3.23 KB

experienceevent-commerce.schema.md

File metadata and controls

112 lines (78 loc) · 3.23 KB

ExperienceEvent Commerce Details Schema

https://ns.adobe.com/xdm/context/experienceevent-commerce

ExperienceEvent commerce details.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Stabilizing No Forbidden Permitted context/experienceevent-commerce.schema.json

Schema Hierarchy

  • ExperienceEvent Commerce Details https://ns.adobe.com/xdm/context/experienceevent-commerce

ExperienceEvent Commerce Details Example

{
  "xdm:productListItems": [
    {
      "xdm:SKU": "1002352692",
      "xdm:lineItemId": "12345678",
      "xdm:name": "24-Watt 8-Light Chrome Integrated LED Bath Light",
      "xdm:currencyCode": "USD",
      "xdm:quantity": 1,
      "xdm:priceTotal": 159
    }
  ],
  "xdm:commerce": {
    "xdm:order": {
      "xdm:purchaseID": "a8g784hjq1mnp3",
      "xdm:purchaseOrderNumber": "123456",
      "xdm:payments": [
        {
          "xdm:transactionID": "transactid-a111",
          "xdm:paymentAmount": 59,
          "xdm:paymentType": "credit_card",
          "xdm:currencyCode": "USD"
        },
        {
          "xdm:transactionId": "transactid-a222",
          "xdm:paymentAmount": 100,
          "xdm:paymentType": "gift_card",
          "xdm:currencyCode": "USD"
        }
      ],
      "xdm:currencyCode": "USD",
      "xdm:priceTotal": 159
    },
    "xdm:purchases": {
      "xdm:value": 1
    }
  }
}

ExperienceEvent Commerce Details Properties

Property Type Required Defined by
xdm:commerce Commerce Optional ExperienceEvent Commerce Details (this schema)
xdm:productListItems Product List Item Optional ExperienceEvent Commerce Details (this schema)
* any Additional this schema allows additional properties

xdm:commerce

Commerce

Commerce specific data related to this event.

xdm:commerce

  • is optional
  • type: Commerce
  • defined in this schema

xdm:commerce Type

  • Commercehttps://ns.adobe.com/xdm/context/commerce

xdm:productListItems

Product List Items

A list of items representing a product selected by a customer with specific options and pricing that are for that usage context at a specific point of time and may differ from the product record.

xdm:productListItems

  • is optional

  • type: Product List Item

  • defined in this schema

xdm:productListItems Type

Array type: Product List Item

All items must be of the type: