Skip to main content

Product webhooks (beta)

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 page.

Beta

Product webhooks are in beta. If you run into any issues or have questions, contact us at api@shoptet.cz.

Events​

The tables below use these abbreviations:

AbbreviationEventAbbreviationMass event
P:Cproduct:createP:MCproduct:massCreate
P:Uproduct:updateP:MUproduct:massUpdate
P:Dproduct:deleteP:MDproduct:massDelete
PV:CproductVariant:createPV:MCproductVariant:massCreate
PV:UproductVariant:updatePV:MUproductVariant:massUpdate
PV:DproductVariant:deletePV:MDproductVariant:massDelete
PVP:UproductVariantPrice:updatePVP:MUproductVariantPrice:massUpdate

The full list of events with their descriptions is in the API reference.

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​

ActionEvents
Add 1 product via importP:C
Add multiple products via importP:MC
Edit product variant pricesPVP:U / PVP:MU
Delete product(s) / variantsP:D, P:MD, PV:D, PV:MD

Product list​

ActionEvents
Add product buttonP:C, PV:C
Delete 1 product (click X in row)P:D, PV:D / PV:MD
Delete multiple productsP:MD, PV:MD
Make visibleP:U
HideP:U
Set visibilityP:U, P:MU
MoveP:U, P:MU
CopyP:C, PV:C / P:MC, PV:MC
Change default categoryP:U / P:MU
Change parametersP:U / P:MU
Add categoriesP:U / P:MU
Remove categoriesP:U / P:MU
Individual parameter change (action icon: New, Tip, Variants)P:U
Show – Visibility column toggleP:U
Hide – Visibility column toggleP:U

Product detail​

ActionEvents
On data changeP:U
Change priceP:U, PVP:U / PVP:MU
Add variant (without clicking Save)P:U, PV:C, PV:MC
Delete variantP: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 buttonP:C, PV:C
Add image to Gallery / 360P:U
Remove image from Gallery / 360P:U
Change variant visibilityP:U, PV:U
Change surcharge parameter visibilityP:U
Change caption in Gallery / 360P:U, P:MU

Prices​

ActionEvents
(Bulk) edit prices in inputsPVP:U / PVP:MU
HideP:U, P:MU, PV:U, PV:MU
Make visibleP:U, P:MU, PV:U, PV:MU
Change pricePVP:U, PVP:MU
Delete variantP:D, P:MD, PV:D, PV:MD
Delete product and variantsP:D, P:MD, PV:D, PV:MD

Warehouse​

ActionEvents
Changes in Availability inputsPV:U, PV:MU
Changes in quantity inputsPVP:U, PVP:MU
DeleteP:D, P:MD, PV:D, PV:MD, P:MU
HideP:U, P:MU, PV:U, PV:MU
Make visibleP:U, P:MU, PV:U, PV:MU

Discounts​

ActionEvents
Bulk deleteP:D, P:MD, PV:D, PV:MD, P:MU
Edit discount in inputPVP:U, PVP:MU
Delete individuallyP:U, P:D, PV:D

Logistics​

ActionEvents
Individual changes in inputsPV:U, PV:MU

Search results​

ActionEvents
Delete productP:D, P:MD, PV:D, PV:MD

API endpoints​

MethodEndpointEvents
PATCH/api/pricelists/{id}PVP:U, PVP:MU
POST/api/productsP:C, PV:C, PV:MC
POST/api/products/{guid}/copyP:C, PV:C, PV:MC
DELETE/api/products/{guid}P:D, PV:D, PV:MD
PATCH/api/products/batchP: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-filesP:U
PUT/api/products/{guid}/giftsP:U
POST/api/products/{guid}/giftsP: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}/sourceP:U
DELETE/api/products/{guid}/images/{gallery}/{imageName}P:U
POST / PUT/api/products/{guid}/relatedProductsP:U
POST / PUT/api/products/{guid}/alternativeProductsP:U
POST/api/products/{guid}/related-filesP:U
DELETE/api/products/{guid}/related-files/{id}P:U
POST / PUT/api/products/{guid}/setP:U

Changes of individual fields​

Product detail with variants – Main data tab​

FieldAPI fieldEvents from the administrationEvents from the API
Product namenameP:UP:U
URL addressindexNameP:UP:U
Short descriptionshortDescriptionP:UP:U
Detailed descriptiondescriptionP:UP:U
FlagsflagsP:UP:U
BrandbrandCodeP:UP:U
SuppliersupplierGuidP:U–
WarrantywarrantyIdP:UP:U
Item typetypeP:UP:U
Condition (Bazaar only)–P:U–
Condition description (Bazaar only)–P:U–
VisibilityvisibilityP:UP:U
Internal noteinternalNoteP:UP:U

Product detail with variants – Price list tab​

FieldAPI fieldEvents from the administrationEvents 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–
CodenewCodeP:U, PV:UP:U, PV:U
AvailabilityavailabilityIdP:U, PV:UP:U, PV:U
Availability when sold outavailabilityWhenSoldOutIdP:U, PV:UP:U, PV:U
VisibilityvisibleP:UP:U, PV:U

Variant detail – Main data tab​

FieldAPI fieldEvents from the administrationEvents from the API
CodenewCodePV:UPV:U, P:U
Color parameter value–PV:U–

Variant detail – Price list tab​

FieldAPI fieldEvents from the administrationEvents 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–
UnitunitIdPV:UPV:U, P:U
Package amountpackagingUnit, packagingAmountPV:UPV:U, P:U
Measure unitmeasureUnitId, measureAmountPV:UPV:U, P:U
Recycling fee – categoryrecyclingFeeIdPV:UPV:U, P:U
Consumption tax – nameconsumptionTaxIdPV:UPV:U, P:U
OSS VAT ratesossVatLevels[]–PV:U, P:U

Variant detail – Warehouse tab​

FieldAPI fieldEvents from the administrationEvents from the API
Warehouse locationstocksLocations[]–PV:U, P:U
AvailabilityavailabilityIdPV:UP:U, PV:U
Availability when sold outavailabilityWhenSoldOutIdPV:UP:U, PV:U
Minimum stockminStockSupplyPV:UP:U, PV:U
Min. orderable quantity–PV:U–
Max. orderable quantity–PV:U–
Allow to order product out of stocknegativeStockAllowedPV:UP:U, PV:U
Enable decimal places for quantityamountDecimalPlacesPV:UP:U, PV:U