Admin API Access Token for Shopify partner app

Hello,

Where do I find the admin API Access Token for an installed shopify partner app? So I tried here but I’m not able to see anywhere:

Shopify Partner > All apps > Apps > Click the installed app > API Access

I only see client ID & client secret, where is the admin API Access Token?

I’m aware there are admin access tokens in shopify admin > settings > Apps and Sales channels > Develop apps > Click app > API credentials > Admin API Access Token

But this app is installed in shopify partner dashboard, and we don’t want to install the apps repeatedly both in shopify partner and shopify admin just to get an admin access token. We’ll use it to retrieve and cancel orders - It seems using the client ID and client secret doesn’t work to retrieve or cancel orders, always getting forbidden error 401. Thanks

Hi,
If you could share the screenshot of the error that would help me to make this more clear, I am providing you most possible solution bellow:

To retrieve the Admin API Access Token for an installed Shopify partner app, you need to follow these steps:

  1. Install the App on the Store: First, ensure that the app is installed on the store you want to access. You need to have a valid installation of the app in the store’s admin.

  2. Create a Shopify App: In your Shopify Partner Dashboard, create a new app or ensure your existing app is configured properly. You should have the Client ID and Client Secret available.

  3. Generate the Access Token:

    • Once your app is installed in the store, you need to initiate the OAuth flow to obtain the Admin API Access Token.
    • This involves redirecting the user to the authorization URL to request permission for the necessary scopes.
    • After the user authorizes your app, Shopify will redirect back to your specified callback URL with a temporary code.
  4. Exchange the Code for an Access Token:

    • Use the temporary code you received in the callback to make a POST request to the Shopify API to exchange it for an Admin API Access Token.

    • The request should look like this:

      POST https://{your-store-name}.myshopify.com/admin/oauth/access_token
      Content-Type: application/json

      {
      “client_id”: “{your-client-id}”,
      “client_secret”: “{your-client-secret}”,
      “code”: “{temporary-code}”
      }

      Access the Admin API: Once you receive the Admin API Access Token in the response, you can use it to make authorized requests to the Admin API for retrieving and managing orders.

Notes:- You can only retrieve the Admin API Access Token after the app has been authorized by the store owner.

  • If you have already performed the OAuth flow and have a valid access token, you can use that token for your API requests without repeating the installation process.

    Please feel free to ask me if you still need any more issues.

In the documentation it says:

  • Go to your Shopify Partner Dashboard.
  • Create a new app and set the “App URL” and “Allowed redirect URLs” (these are used for the OAuth redirect).

Where do I find the “Allowed redirect URLs” ? I cannot find this ???

Hi,

At the time of creating New App it should show “Allowed redirect URLs” and you should check it so that you have this ready fore the next time access .