Hello, I am trying to develop a server side custom app for my basic store. I have created a custom app, set its distribution type to custom app, and synchronized its config with the cli.
Upon installing the app via the Install Link in the partners page, the app redirects to my application url, but fails to redirect to my application to complete the flow and provide me a session.
If I try to use the authorization grant flow the Install button is disabled(related).
Furthermore I have tried using client credential grant but I encounter the following error.
[wrangler:error] Error: Received an error response (400 Bad Request) from Shopify:
If you report this error, please include this id: 2e208d48-a774-43fd-927a-c7296d0523d4-1761693396
Attached below is my config and stores, where targetstore.com is the store I intend to install my custom app into:
# Learn more about configuring your app at https://shopify.dev/docs/apps/tools/cli/configuration
client_id = ""
name = "my-app"
application_url = "https://muslim-serving-dated-amongst.trycloudflare.com"
embedded = false
[build]
automatically_update_urls_on_dev = false
[webhooks]
api_version = "2025-10"
[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "read_orders,read_products,read_product_listings,read_metaobjects,read_inventory,write_metaobjects"
use_legacy_install_flow = true
[auth]
redirect_urls = [
"https://muslim-serving-dated-amongst.trycloudflare.com/auth",
"https://muslim-serving-dated-amongst.trycloudflare.com/auth/callback",
]
[pos]
embedded = false
[customer_authentication]
redirect_uris = [
"https://muslim-serving-dated-amongst.trycloudflare.com/auth/callback"
]
logout_urls = [
"https://muslim-serving-dated-amongst.trycloudflare.com/auth/logout"
]
I speculate this issue might be due to the TargetStore not grouped with the dev stores?
I am unsure of where I went wrong and how to resolve. Any assistance is appreciated.




