Read/Write API to a specific store only

I am integrating a 3rd Party API to our store.
Created the app via Shopify Partners and Shopify CLI 3.0 using Remix JS

Goal:
Receive Webhook from 3rd Party.
Use that webhook to Read/Write to a specific store.

How do I target a specific store that already installed the app to do this?
This is actually more on internal app and will just install in just one store, my other option is to use the custom API keys within the store, however I remembered one app
Duplify, that can transfer data to a specificied store and the only requirement is to install the app on both stores.

How can I authenticate my API to a specific store with just the normal install?

Hi @aldrin_genor

Even if you define default webhooks in the shopify.app.toml you can register new webhooks for specific stores using the Webhooks GraphQL or REST APIs.

You can write a CLI script to use that merchant’s access token to call this API to register a specific webhook that’s only for their account.

@Dylan Thank you!

Is this possible without webhooks?
The changes are actually from the 3rd party so I am using the 3rd party’s webhook, and upon receiving the 3rd party’s webhook I update the product in Shopify.

Yup, totally possible without registering a new webhook.

Since this 3rd party’s API is essentially your event to trigger an update from, you can simply just use the access token for your store in a GraphQL request to Shopify.

@Dylan How do I get the access tokens dynamically from an installed store?

This is my first time doing an app for a specific store.
What I usually do is have the app created via Partners and its actually very basic to have the authentication with this

const {admin} = shopify.authenticate.admin(request);

or
const client = new shopify.clients.Graphql({session});

which depends entirely on the response or session where the app is being used, where in this new app I want to specifically target a specific store after the 3rd party webhook is triggered

It depends on which database you’re using when you’re saving these offline access tokens when merchants install your app.

I assume you’re saving these tokens in a database of some kind, so you’ll need to write a script to perform that action on behalf of that merchant’s offline access token.

Just a side note, the online access token represents a specific team member on the merchant’s account accessing your app. The offline token represents the merchant’s account itself on Shopify.