Webhook is not registered

Tourist
7 0 3

I am using Shopify webhook rest API with PHP to fire certain actions when someone uninstalls my Shopify app, I am using a webhook for that. 

 

Here is the code

 

$params= array('webhook' =>
            array(
                'topic' => 'app/uninstalled' ,
                'address' => "https://exampleserver.com/public/uninstallapp",
                'format' => "XML"
               
            )
        );

 

The Response I got from the API is

 

(
[webhook] => Array
(
[id] => 736758169660
[address] => https://exampleserver.com/public/uninstallapp
[topic] => app/uninstalled
[created_at] => 2020-01-06T00:59:03-05:00
[updated_at] => 2020-01-06T00:59:03-05:00
[format] => json
[fields] => Array
(
)

[metafield_namespaces] => Array
(
)

[api_version] => 2019-10
[private_metafield_namespaces] => Array
(
)

)

)

 

 

But in the backend of store examplestore.com/admin/webhooks.json, the webhook array is empty and it doesn't fire when I uninstall the app. I am totally stuck and clueless regarding this issue.

If anyone can help with me that would be really appreciated.

Thanks in advance

0 Likes