API Webhook itemaction deleted

LooijmansRLooijmansR Member Posts: 2

Hi,

What could be the reason I am getting empty responses via webhook when a product is deleted? I've implemented the following webhook:

$api->webhooks->create([
    'isActive' => true,
    'itemGroup' => 'products',
    'itemAction' => '*',
    'language' => 'nl',
    'format' => 'json',
    'address' => '{{$url_here}}'
]);


If anyone could shed some light on this, that would be highly appreciated. Thanks alot.


2 comments

  • gregaricangregarican Member Posts: 708 

    While I don't use E-Com I would assume itemAction => * with that wildcard means you are subscribing to any action associated with a product. Be it creating one, updating one, deleting one, etc.

  • marlexladagmarlexladag Member Posts: 8

    You can get the product id in the request header.

Sign In or Register to comment.