Closed raj-kumar94 closed 7 years ago
I am trying to register a webhook using api
$webhook = Shopify::setShopUrl($shopUrl)->setAccessToken($accessToken)->post("admin/webhooks.json", ['webhook' => ['topic' => 'orders/create', 'address' => 'https://c024bd9f.ngrok.io/api/uu', 'format' => 'json' ] ]); print_r($webhook);
output: Illuminate\Support\Collection Object ( [items:protected] => Array ( [id] => 469747493 [address] => http://c024bd9f.ngrok.io/api/uu [topic] => orders/create [created_at] => 2017-09-11T09:26:05-04:00 [updated_at] => 2017-09-11T09:26:05-04:00 [format] => json [fields] => Array ( ) [metafield_namespaces] => Array ( ) ) )
There is no error but I am not able to create the webhook. Please suggest how to do that. Thanks
Edit: Problem solved! It seems it doesn't add webhook in settings->notification->webhook section of shopify but it does register the webhooks.
I am trying to register a webhook using api
output: Illuminate\Support\Collection Object ( [items:protected] => Array ( [id] => 469747493 [address] => http://c024bd9f.ngrok.io/api/uu [topic] => orders/create [created_at] => 2017-09-11T09:26:05-04:00 [updated_at] => 2017-09-11T09:26:05-04:00 [format] => json [fields] => Array ( ) [metafield_namespaces] => Array ( ) ) )
There is no error but I am not able to create the webhook. Please suggest how to do that. Thanks
Edit: Problem solved! It seems it doesn't add webhook in settings->notification->webhook section of shopify but it does register the webhooks.