Getting "403 Forbidden longpc.myshopify.com" when creating a webhook with the topic "orders/create"

Getting "403 Forbidden longpc.myshopify.com" when creating a webhook with the topic "orders/create"

LongPC
Shopify Partner
7 0 3

Hi Shopify, I'm Long and I'm a developer. I'm creating a mini-app to track revenue for merchants. In the progress of building my app. I got an issue about getting "403 Forbidden longpc.myshopify.com" when I create a webhook with the topic "orders/create".

This is my code snapshot: https://prnt.sc/9tMyX2stfcfC More information surrounding ShopifyAuth:

  1. Scopes: read_orders
  2. Shopify API Versions: 2022-07
  3. The accessToken and session are still valid (because I still login the app normally)

Please help me Shopify 🥺 Best regards ❤️

Replies 3 (3)

flareAI
Shopify Partner
2405 224 549

Hello @LongPC,


I am Gina from flareAI app helping Shopify merchants get $6Million+ in sales from Google Search, on autopilot. I am here to support you.


If you are receiving a 403 Forbidden error when trying to create a webhook with the topic "orders/create" in your Shopify mini-app, there are a few things you can check.


1. Make sure that the access token you are using has the necessary permissions to create webhooks. In this case, you will need the "write_script_tags" scope.

2. Verify that the URL you are using for the webhook is correct and accessible. It's possible that the URL is incorrect or there is an issue with your server that is preventing the webhook from being created.

3. Check that your Shopify app is properly authenticated with the merchant's store. Sometimes, authentication can expire or become invalid, which can cause issues when creating webhooks or other API requests. You mentioned that the access token and session are still valid, but it's still a good idea to double-check and make sure there are no authentication issues.


If you have checked these things and are still encountering the 403 Forbidden error, you may want to reach out to Shopify's support team or developer community for further assistance. They may be able to help you troubleshoot the issue and identify any other potential causes.


Gina

flareAI : Get Sales from Google Search, on Autopilot
$10+ billion in eCommerce on Google Search, every day. Find out how much you are missing
LongPC
Shopify Partner
7 0 3

I tried your solution and checked again. It's still not working and the error is still "403 Forbidden"

 

LongPC
Shopify Partner
7 0 3

Please help me