You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-8Lines changed: 48 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -329,14 +329,31 @@ foreach ($client->iterateProducts(lang: [Language::ALL]) as $product) {
329
329
330
330
Pobo can notify your application when content changes in the administration. Register a webhook URL in the Pobo e-shop settings; Pobo POSTs to it with HMAC-SHA256 signed requests.
|`Products.create`|`WebhookEvent::PRODUCTS_CREATE`| a product was created |
337
+
|`Products.update`|`WebhookEvent::PRODUCTS_UPDATE`| a product was edited |
338
+
|`Products.delete`|`WebhookEvent::PRODUCTS_DELETE`| a product was soft-deleted |
339
+
|`Categories.create`|`WebhookEvent::CATEGORIES_CREATE`| a category was created |
340
+
|`Categories.update`|`WebhookEvent::CATEGORIES_UPDATE`| a category was edited |
341
+
|`Categories.delete`|`WebhookEvent::CATEGORIES_DELETE`| a category was soft-deleted |
342
+
|`Brands.create`|`WebhookEvent::BRANDS_CREATE`| a brand was created |
343
+
|`Brands.update`|`WebhookEvent::BRANDS_UPDATE`| a brand was edited |
344
+
|`Brands.delete`|`WebhookEvent::BRANDS_DELETE`| a brand was soft-deleted |
345
+
|`Blogs.create`|`WebhookEvent::BLOGS_CREATE`| a blog was created |
346
+
|`Blogs.update`|`WebhookEvent::BLOGS_UPDATE`| a blog was edited |
347
+
|`Blogs.delete`|`WebhookEvent::BLOGS_DELETE`| a blog was soft-deleted |
348
+
349
+
The enum exposes `isCreate()` / `isUpdate()` / `isDelete()` helpers if you only need to branch on the lifecycle action regardless of entity type.
350
+
351
+
> **Note:** the API also defines `Languages.create/update/delete` events. The SDK does not expose them yet — payloads carrying these events will throw `WebhookException::unknownEvent()`.
337
352
338
353
The webhook is a notification only — it does not carry the changed entities. Use it as a trigger to re-sync via the export endpoints (typically combined with `lastUpdateFrom`).
0 commit comments