I want to create a custom webhook in Shopify for Customer Login using a private app below is my code, but I'm getting the error Array ( [errors] => Array ( [topic] => Array ( [0] => Invalid topic specified. Topics allowed: app/uninstalled, carts/create, carts/update, checkouts/create, checkouts/delete, checkouts/update, checkouts/paid, collections/create, collections/delete, collections/update, customer_groups/create, customer_groups/delete, customer_groups/update, customers/create, customers/delete, customers/disable, customers/enable, customers/update, order_transactions/create, orders/cancelled, orders/create, orders/delete, orders/edited, orders/fulfilled, orders/paid, orders/partially_fulfilled, orders/updated, products/create, products/delete, products/update, refunds/create, shop/update, themes/create, themes/delete, themes/publish, themes/update, tender_transactions/create, app_purchases_one_time/update, app_subscriptions/update, variants/delete ) )
session_start();
require __DIR__.'/vendor/autoload.php';
use phpish\shopify;
require __DIR__.'/conf.php';
$shopify = shopify\client(SHOPIFY_SHOP, SHOPIFY_APP_API_KEY, SHOPIFY_APP_PASSWORD, true);
try
{
# Making an API request can throw an exception
$customers = $shopify('POST /admin/api/2020-01/webhooks.json', array(), array
(
'webhook' => array
(
"topic" => "customers/login",
"address" => "myappurl",
"format" => "json"
)
));
print_r($customers);
}
catch (shopify\ApiException $e)
{
# HTTP status code was >= 400 or response contained the key 'errors'
echo $e;
print_R($e->getRequest());
print_R($e->getResponse());
}
catch (shopify\CurlException $e)
{
# cURL error
echo $e;
print_R($e->getRequest());
print_R($e->getResponse());
}
Please help it is possible to create it from the private app or not?