Re: Can not create webhook with orders/create topic on DEVELOPMENT store

Can not create webhook with orders/create topic on DEVELOPMENT store

AnthonyB512
Shopify Partner
1 0 1

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?

 

Screen Shot 2023-05-29 at 16.59.04.png

 

 

 

 

 

Replies 5 (5)

Faateh
Shopify Partner
17 0 1

I'm also stuck on this error. Have you found the solution?

johnmcguin88
Shopify Partner
13 1 1

fill out the form. This is the way

m20io
Shopify Partner
12 0 2

What about development or staging apps? You have to create a listing and everything...

Dev49
Shopify Partner
5 0 1

Did you ever find a solution to this? I am having the same problem where I have completed step 1 of the form but I still cannot create webhooks with the orders/create topic on my development stores

johnmcguin88
Shopify Partner
13 1 1

Did you fill out step 2 of the form?