Price

Overview

Price represents the cost of an item or Stock Keeping Unit (SKU). By subscribing to price-based events, as merchants, you can get event-specific information, including the itemId, SKU, and price list id.

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

Events

Event Type Description Example Response
offers:price:created The event is triggered when a price is created.
{
  "specversion": "v1",
  "type": "offers:price: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": "PRICE",
        "status": "CREATED",
        "itemId": 1684471584,
        "itemSku": "DS SD S",
        "priceListId": 100001,
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/price/DS SD S/priceList/100001?type=itemSku"
        ]
      }
    }
  ]
}

offers:price:deleted The event is triggered when a price is deleted.
{
  "specversion": "v1",
  "type": "offers:price: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": "PRICE",
        "status": "DELETED",
        "itemId": 1684471584,
        "itemSku": "DS SD S",
        "priceListId": 100001,
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/price/DS SD S/priceList/100001?type=itemSku"
        ]
      }
    }
  ]
}

offers:price:activated The event is triggered when a price becomes operational.
{
  "specversion": "v1",
  "type": "offers:price:activated",
  "tenantid": "63a123070cf218e178efda30",
  "events": [
    {
      "id": "0076064a-695e-43ac-b004-17802ed186ac",
      "time": "2023-06-01T13:29:40.000Z",
      "source": "offers:business-layer",
      "subject": null,
      "data": {
        "eventName": "PRICE-ACTIVATION",
        "status": "ACTIVATED",
        "itemId": 1684471584,
        "itemSku": "DS SD S",
        "priceListId": 100001,
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/price/DS SD S/priceList/100001?type=itemSku"
        ]
      }
    }
  ]
}

offers:price:deactivated The event is triggered when a price is no longer valid.
{
  "specversion": "v1",
  "type": "offers:price:deactivated",
  "tenantid": "63a123070cf218e178efda30",
  "events": [
    {
      "id": "0076064a-695e-43ac-b004-17802ed186ac",
      "time": "2023-06-01T13:29:40.000Z",
      "source": "offers:business-layer",
      "subject": null,
      "data": {
        "eventName": "PRICE-ACTIVATION",
        "status": "DEACTIVATED",
        "itemId": 1684471584,
        "itemSku": "DS SD S",
        "priceListId": 100001,
        "callbackUrls": [
          "https://stg02.copilot.fabric.inc/api-offers/price/DS SD S/priceList/100001?type=itemSku"
        ]
      }
    }
  ]
}