Global Exclusion

Overview

Global exclusion refers to a list to which you can add SKUs to prevent them from being discounted by active promotions. By subscribing to global exclusion events, as merchants, you can get event-specific information, including the ID of the global exclusion list.

The following table details various global exclusion events along with the example responses:

Events

Event Type Description Example Response
offers:globalExclusion:created The event is triggered when a global exclusion list is created.
{
  "specversion": "v1",
  "type": "offers:globalExclusion:created",
  "tenantid": "63a123070cf218e178efda30",
  "events": [
    {
      "id": "0076064a-695e-43ac-b004-17802ed186ac",
      "time": "2023-06-01T13:29:40.000Z",
      "source": "offers:business-layer",
      "subject": null,
      "data": {
        "eventName": "GlobalExclusion",
        "status": "CREATED",
        "id": "642babcd3ebd250008455701",
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/priceList/100001"
        ]
      }
    }
  ]
}

offers:globalExclusion:deleted The event is triggered when a global exclusion list is deleted.
{
  "specversion": "v1",
  "type": "offers:globalExclusion:deleted",
  "tenantid": "63a123070cf218e178efda30",
  "events": [
    {
      "id": "0076064a-695e-43ac-b004-17802ed186ac",
      "time": "2023-06-01T13:29:40.000Z",
      "source": "offers:business-layer",
      "subject": null,
      "data": {
        "eventName": "GlobalExclusion",
        "status": "DELETED",
        "id": "642babcd3ebd250008455701",
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/priceList/100001"
        ]
      }
    }
  ]
}

offers:globalExclusion:updated The event is triggered when a global exclusion list is updated.
{
  "specversion": "v1",
  "type": "offers:globalExclusion:updated",
  "tenantid": "63a123070cf218e178efda30",
  "events": [
    {
      "id": "0076064a-695e-43ac-b004-17802ed186ac",
      "time": "2023-06-01T13:29:40.000Z",
      "source": "offers:business-layer",
      "subject": null,
      "data": {
        "eventName": "GlobalExclusion",
        "status": "UPDATED",
        "id": "642babcd3ebd250008455701",
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/priceList/100001"
        ]
      }
    }
  ]
}