I am building a Shopify App that needs to create a webhook with the orders/create topic to get the address of each new order.
However when I run the below code I get the following error:
await shopify.post({
path: '/admin/api/2023-04/webhooks.json',
data: {
webhook: {
address: `https://${process.env.SHOPIFY_APP_HOSTNAME}/api/v1/shopify/webhook`,
topic: 'orders/create',
format: 'json',
}
}
});
Response:
{
code: 403,
statusText: 'Forbidden',
body: {
errors: 'You do not have permission to create webhooks with orders/create topic. This topic contains protected customer data. See https://partners.shopify.com/XXX/apps/XXX/customer_data for more details.'
},
headers: {
...
}
}
When I go to the URL in the error message, there is a notice above the form which says “If you’re installing on a development store, select your data use in step 1 to access protected customer data.” As you can see in the screenshot below I have completed step 1 of the form but I still cannot create webhooks with the orders/create topic on my development stores. Does anyone know how I can resolve this?
