# Events-Price

## Overview

Webhook events related to the creation, update, and deletion of a price, price model, price list\
and a price list price.

## Available events

<table><thead><tr><th>Event type</th><th>Event schema</th></tr></thead><tbody><tr><td>price.created</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "itemId": {
    "id": "String",
    "itemType": "String"
  },
  "itemYrn": "String",
  "currency": "String",
  "location": {
    "countryCode": "String"
  },
  "salePrice": {
    "discountAmount": "String",
    "discountRate": "String",
    "description": "String"
  },
  "priceModelId": "String",
  "restrictions": {
    "principals": [
      {
        "id": "String",
        "type": "String"
      }
    ],
    "validity": {
      "from": "String",
      "to": "String"
    },
    "siteCodes": ["String"],
    "priceListId": "String"
  },
  "tierValues": [
    {
      "id": "String",
      "priceValue": "String"
    }
  ],
  "mixins": "Map",
  "metadata": {
    "createdAt": "String",
    "modifiedAt": "String",
    "version": "Number",
    "mixins": "Map"
  }
}
</code></pre></td></tr><tr><td>price.updated</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "itemId": {
    "id": "String",
    "itemType": "String"
  },
  "itemYrn": "String",
  "currency": "String",
  "location": {
    "countryCode": "String"
  },
  "salePrice": {
    "discountAmount": "String",
    "discountRate": "String",
    "description": "String"
  },
  "priceModelId": "String",
  "restrictions": {
    "principals": [
      {
        "id": "String",
        "type": "String"
      }
    ],
    "validity": {
      "from": "String",
      "to": "String"
    },
    "siteCodes": ["String"],
    "priceListId": "String"
  },
  "tierValues": [
    {
      "id": "String",
      "priceValue": "String"
    }
  ],
  "mixins": "Map",
  "metadata": {
    "createdAt": "String",
    "modifiedAt": "String",
    "version": "Number",
    "mixins": "Map"
  }
}
</code></pre></td></tr><tr><td>price.deleted</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String"
}
</code></pre></td></tr><tr><td>price-model.created</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "name": "Map",
  "description": "Map",
  "includesTax": "Boolean",
  "isDefault": "Boolean",
  "measurementUnit": {
    "quantity": "Number",
    "unitCode": "String"
  },
  "tierDefinition": {
    "tierType": "String",
    "tiers": [
      {
        "id": "String",
        "minQuantity": {
          "quantity": "Number",
          "unitCode": "String"
        }
      }
    ]
  },
  "metadata": {
    "version": "Number",
    "createdAt": "String",
    "modifiedAt": "String"
  }
}
</code></pre></td></tr><tr><td>price-model.updated</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "name": "Map",
  "description": "Map",
  "includesTax": "Boolean",
  "isDefault": "Boolean",
  "measurementUnit": {
    "quantity": "Number",
    "unitCode": "String"
  },
  "tierDefinition": {
    "tierType": "String",
    "tiers": [
      {
        "id": "String",
        "minQuantity": {
          "quantity": "Number",
          "unitCode": "String"
        }
      }
    ]
  },
  "metadata": {
    "version": "Number",
    "createdAt": "String",
    "modifiedAt": "String"
  }
}
</code></pre></td></tr><tr><td>price-model.deleted</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String"
}
</code></pre></td></tr><tr><td>price-list.created</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "name": "Map",
  "currency": "String",
  "countries": ["String"],
  "regions": ["String"],
  "customerGroups": ["String"],
  "siteCode": "String",
  "validity": {
    "from": "String",
    "to": "String"
  },
  "mixins": "Map",
  "metadata": {
    "createdAt": "String",
    "updatedAt": "String",
    "version": "Number",
    "mixins": "Map"
  }
}
</code></pre></td></tr><tr><td>price-list.updated</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "name": "Map",
  "currency": "String",
  "countries": ["String"],
  "regions": ["String"],
  "customerGroups": ["String"],
  "siteCode": "String",
  "validity": {
    "from": "String",
    "to": "String"
  },
  "mixins": "Map",
  "metadata": {
    "createdAt": "String",
    "updatedAt": "String",
    "version": "Number",
    "mixins": "Map"
  }
}
</code></pre></td></tr><tr><td>price-list.deleted</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String"
}
</code></pre></td></tr><tr><td>price-list-price.created</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "itemId": {
    "itemType": "String",
    "id": "String"
  },
  "priceListId": "String",
  "priceModelId": "String",
  "tierValues": [
    {
      "id": "String",
      "priceValue": "String"
    }
  ],
  "metadata": {
    "createdAt": "String",
    "updatedAt": "String",
    "version": "Number"
  }
}
</code></pre></td></tr><tr><td>price-list-price.updated</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String",
  "itemId": {
    "itemType": "String",
    "id": "String"
  },
  "priceListId": "String",
  "priceModelId": "String",
  "tierValues": [
    {
      "id": "String",
      "priceValue": "String"
    }
  ],
  "metadata": {
    "createdAt": "String",
    "updatedAt": "String",
    "version": "Number"
  }
}
</code></pre></td></tr><tr><td>price-list-price.deleted</td><td><pre class="language-json"><code class="lang-json">{
  "id": "String"
}
</code></pre></td></tr></tbody></table>
