Cannot subscribe to checkouts/create webhook topic

Solved
icgtec
New Member
9 0 0

Dear devs, 

I'm struggling to subscribe to checkouts/create and checkouts/update webhook topics with my Public app.

API Version: 2020/07

I keep getting the following error:

 

{
"errors": {
"topic": [
  "Invalid topic specified: checkouts/create. Topics allowed: app/uninstalled, shop/update, app_purchases_one_time/update, app_subscriptions/update, domains/create, domains/update, domains/destroy"
],
}
}

 

 

I tried re-install the app with added read_checkouts, write_checkouts scopes, but that doesn't change anything. 

Any help is appreciated!

0 Likes
icgtec
New Member
9 0 0

Resolved: the read_orders scope was required. 

I hope that helps others. 

0 Likes
james-langille
Shopify Staff
Shopify Staff
37 8 9

Hey @icgtec , thanks for posting! I am going to put in a change to this error message to mention that a topic either does not exist or missing access scopes, so that hopefully points others in the right direction faster.

james-langille | Developer @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
icgtec
New Member
9 0 0

Could be an option, but I also recommend updating "List of supported webhook events and topics" (on this page) with the required oauth scope for each topic

0 Likes
james-langille
Shopify Staff
Shopify Staff
37 8 9

This is an accepted solution.

Excellent point, thank you! I'll add this as an item for us to look into.

james-langille | Developer @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes