# Product webhooks (beta)

URL: https://shoptet.dev/addons/documentation/product-webhooks

This page lists the webhooks Shoptet sends when a product, a product variant or a variant price changes – for every action in the administration and every API endpoint that changes products. How to register webhooks and handle the notifications is described on the [Webhooks](/addons/documentation/webhooks/) page.

Beta
Product webhooks are in beta. If you run into any issues or have questions, contact us at [api@shoptet.cz](mailto:api@shoptet.cz) .

## Events

The tables below use these abbreviations:

| Abbreviation | Event | Abbreviation | Mass event 
| `P:C` | `product:create` | `P:MC` | `product:massCreate` 
| `P:U` | `product:update` | `P:MU` | `product:massUpdate` 
| `P:D` | `product:delete` | `P:MD` | `product:massDelete` 
| `PV:C` | `productVariant:create` | `PV:MC` | `productVariant:massCreate` 
| `PV:U` | `productVariant:update` | `PV:MU` | `productVariant:massUpdate` 
| `PV:D` | `productVariant:delete` | `PV:MD` | `productVariant:massDelete` 
| `PVP:U` | `productVariantPrice:update` | `PVP:MU` | `productVariantPrice:massUpdate` 

The full list of events with their descriptions is in the [API reference](https://api.docs.shoptet.com/shoptet-api/openapi/section/code-lists/webhook-event-types) .

### Identifier in the event instance

- **Product events** – `eventInstance` contains the product `guid` .
- **Variant and variant price events** – `eventInstance` contains the product `guid` and the variant `code` , separated by a pipe character ( `|` ).
- **Mass events** – `eventInstance` contains a JSON-serialized list of these identifiers.

### Single and mass events

- Each individual `PATCH` request generates exactly one webhook.
- A batch operation generates one mass webhook with the data of the whole operation.
- Imports send mass webhooks in batches of approximately 300 changes each, so that a single webhook does not grow too large.
In the tables, a comma separates events that are all sent, and a slash separates alternatives – typically the single event for one item and the mass event for more items.

## Actions in the administration

### Product import

| Action | Events 
| Add 1 product via import | `P:C` 
| Add multiple products via import | `P:MC` 
| Edit product variant prices | `PVP:U` / `PVP:MU` 
| Delete product(s) / variants | `P:D` , `P:MD` , `PV:D` , `PV:MD` 

### Product list

| Action | Events 
| Add product button | `P:C` , `PV:C` 
| Delete 1 product (click X in row) | `P:D` , `PV:D` / `PV:MD` 
| Delete multiple products | `P:MD` , `PV:MD` 
| Make visible | `P:U` 
| Hide | `P:U` 
| Set visibility | `P:U` , `P:MU` 
| Move | `P:U` , `P:MU` 
| Copy | `P:C` , `PV:C` / `P:MC` , `PV:MC` 
| Change default category | `P:U` / `P:MU` 
| Change parameters | `P:U` / `P:MU` 
| Add categories | `P:U` / `P:MU` 
| Remove categories | `P:U` / `P:MU` 
| Individual parameter change (action icon: New, Tip, Variants) | `P:U` 
| Show – Visibility column toggle | `P:U` 
| Hide – Visibility column toggle | `P:U` 

### Product detail

| Action | Events 
| On data change | `P:U` 
| Change price | `P:U` , `PVP:U` / `PVP:MU` 
| Add variant (without clicking Save) | `P:U` , `PV:C` , `PV:MC` 
| Delete variant | `P:U` , `PV:D` , `PV:MD` 
| Add surcharge parameter (even without clicking Save) | `P:U` 
| Delete parameter (filtering, surcharge, etc.) | `P:U` 
| Related (tab) | `P:U` 
| Advanced (tab) | `P:U` 
| Copy button | `P:C` , `PV:C` 
| Add image to Gallery / 360 | `P:U` 
| Remove image from Gallery / 360 | `P:U` 
| Change variant visibility | `P:U` , `PV:U` 
| Change surcharge parameter visibility | `P:U` 
| Change caption in Gallery / 360 | `P:U` , `P:MU` 

### Prices

| Action | Events 
| (Bulk) edit prices in inputs | `PVP:U` / `PVP:MU` 
| Hide | `P:U` , `P:MU` , `PV:U` , `PV:MU` 
| Make visible | `P:U` , `P:MU` , `PV:U` , `PV:MU` 
| Change price | `PVP:U` , `PVP:MU` 
| Delete variant | `P:D` , `P:MD` , `PV:D` , `PV:MD` 
| Delete product and variants | `P:D` , `P:MD` , `PV:D` , `PV:MD` 

### Warehouse

| Action | Events 
| Changes in Availability inputs | `PV:U` , `PV:MU` 
| Changes in quantity inputs | `PVP:U` , `PVP:MU` 
| Delete | `P:D` , `P:MD` , `PV:D` , `PV:MD` , `P:MU` 
| Hide | `P:U` , `P:MU` , `PV:U` , `PV:MU` 
| Make visible | `P:U` , `P:MU` , `PV:U` , `PV:MU` 

### Discounts

| Action | Events 
| Bulk delete | `P:D` , `P:MD` , `PV:D` , `PV:MD` , `P:MU` 
| Edit discount in input | `PVP:U` , `PVP:MU` 
| Delete individually | `P:U` , `P:D` , `PV:D` 

### Logistics

| Action | Events 
| Individual changes in inputs | `PV:U` , `PV:MU` 

### Search results

| Action | Events 
| Delete product | `P:D` , `P:MD` , `PV:D` , `PV:MD` 

## API endpoints

| Method | Endpoint | Events 
| PATCH | `/api/pricelists/{id}` | `PVP:U` , `PVP:MU` 
| POST | `/api/products` | `P:C` , `PV:C` , `PV:MC` 
| POST | `/api/products/{guid}/copy` | `P:C` , `PV:C` , `PV:MC` 
| DELETE | `/api/products/{guid}` | `P:D` , `PV:D` , `PV:MD` 
| PATCH | `/api/products/batch` | `P:U` , `PV:U` , `PV:MU` , `PV:C` , `PV:MC` 
| PATCH | `/api/products/{guid}` | `P:U` , `PV:U` , `PV:MU` , `PV:C` , `PV:MC` 
| PATCH | `/api/products/code/{code}` | `P:U` , `PV:U` , `PV:MU` , `PV:C` , `PV:MC` 
| DELETE | `/api/products/code/{code}` | `PV:D` , `P:U` 
| DELETE | `/api/products/{guid}/related-files` | `P:U` 
| PUT | `/api/products/{guid}/gifts` | `P:U` 
| POST | `/api/products/{guid}/gifts` | `P:U` 
| DELETE | `/api/products/{guid}/images/{gallery}` | `P:U` 
| PATCH | `/api/products/{guid}/images/{gallery}` | `P:U` 
| POST | `/api/products/{guid}/images/{gallery}` | `P:U` 
| PATCH | `/api/products/{guid}/images/{gallery}/source` | `P:U` 
| DELETE | `/api/products/{guid}/images/{gallery}/{imageName}` | `P:U` 
| POST / PUT | `/api/products/{guid}/relatedProducts` | `P:U` 
| POST / PUT | `/api/products/{guid}/alternativeProducts` | `P:U` 
| POST | `/api/products/{guid}/related-files` | `P:U` 
| DELETE | `/api/products/{guid}/related-files/{id}` | `P:U` 
| POST / PUT | `/api/products/{guid}/set` | `P:U` 

## Changes of individual fields

### Product detail with variants – Main data tab

| Field | API field | Events from the administration | Events from the API 
| Product name | `name` | `P:U` | `P:U` 
| URL address | `indexName` | `P:U` | `P:U` 
| Short description | `shortDescription` | `P:U` | `P:U` 
| Detailed description | `description` | `P:U` | `P:U` 
| Flags | `flags` | `P:U` | `P:U` 
| Brand | `brandCode` | `P:U` | `P:U` 
| Supplier | `supplierGuid` | `P:U` | – 
| Warranty | `warrantyId` | `P:U` | `P:U` 
| Item type | `type` | `P:U` | `P:U` 
| Condition (Bazaar only) | – | `P:U` | – 
| Condition description (Bazaar only) | – | `P:U` | – 
| Visibility | `visibility` | `P:U` | `P:U` 
| Internal note | `internalNote` | `P:U` | `P:U` 

### Product detail with variants – Price list tab

| Field | API field | Events from the administration | Events from the API 
| Price | – | `P:U` , `PVP:U` | – 
| VAT | – | `P:U` , `PVP:U` | – 
| Purchase price | – | `P:U` , `PVP:U` | – 
| VAT (purchase) | – | `P:U` , `PVP:U` | – 
| Code | `newCode` | `P:U` , `PV:U` | `P:U` , `PV:U` 
| Availability | `availabilityId` | `P:U` , `PV:U` | `P:U` , `PV:U` 
| Availability when sold out | `availabilityWhenSoldOutId` | `P:U` , `PV:U` | `P:U` , `PV:U` 
| Visibility | `visible` | `P:U` | `P:U` , `PV:U` 

### Variant detail – Main data tab

| Field | API field | Events from the administration | Events from the API 
| Code | `newCode` | `PV:U` | `PV:U` , `P:U` 
| Color parameter value | – | `PV:U` | – 

### Variant detail – Price list tab

| Field | API field | Events from the administration | Events from the API 
| Price | – | `PV:U` , `P:U` | – 
| Price coefficient | – | `PV:U` , `P:U` | – 
| Standard price | – | `PV:U` , `P:U` | – 
| Purchase price | – | `PV:U` , `P:U` | – 
| Action price | – | `PV:U` , `P:U` | – 
| Unit | `unitId` | `PV:U` | `PV:U` , `P:U` 
| Package amount | `packagingUnit` , `packagingAmount` | `PV:U` | `PV:U` , `P:U` 
| Measure unit | `measureUnitId` , `measureAmount` | `PV:U` | `PV:U` , `P:U` 
| Recycling fee – category | `recyclingFeeId` | `PV:U` | `PV:U` , `P:U` 
| Consumption tax – name | `consumptionTaxId` | `PV:U` | `PV:U` , `P:U` 
| OSS VAT rates | `ossVatLevels[]` | – | `PV:U` , `P:U` 

### Variant detail – Warehouse tab

| Field | API field | Events from the administration | Events from the API 
| Warehouse location | `stocksLocations[]` | – | `PV:U` , `P:U` 
| Availability | `availabilityId` | `PV:U` | `P:U` , `PV:U` 
| Availability when sold out | `availabilityWhenSoldOutId` | `PV:U` | `P:U` , `PV:U` 
| Minimum stock | `minStockSupply` | `PV:U` | `P:U` , `PV:U` 
| Min. orderable quantity | – | `PV:U` | – 
| Max. orderable quantity | – | `PV:U` | – 
| Allow to order product out of stock | `negativeStockAllowed` | `PV:U` | `P:U` , `PV:U` 
| Enable decimal places for quantity | `amountDecimalPlaces` | `PV:U` | `P:U` , `PV:U`
