Skip to main content

How to connect your Shopify account to Whatagraph

This article presents the steps needed to retrieve the API access key needed to connect your Shopify store.

In order to connect a Shopify store to your Whatagraph account, you will need to fill in the following fields, which can be seen in the screenshots below. This article will help you find the required information. We understand this process is quite cumbersome.
​

Note: Shopify store's plan has to have the Custom App feature with "Full data access" to Shopify's API to be able to connect the store as a source.

If one Shopify app is installed on several stores, for example, by an agency, Shopify requires an IP allowlist on that app before it will send order data. See Allow Whatagraph’s IP addresses in Shopify at the end.


​

Get Shopify URL

  1. When logged into your Shopify account, click on 'Settings' (button in the bottom left corner of the screen):

  2. Then, choose Domains - your myshopify.com domain should be listed there.

Get Client ID and Secret(new Shopify UI)

Important: Shopify only allows the store owner or a staff user (with “App development" → "Develop” permission) to create/manage apps in the Dev Dashboard. Collaborator accounts can’t access the Dev Dashboard. If you’re an agency, ask the merchant to either:

  • create the app themselves,

  • or invite you as a staff user.

  1. In the Settings menu, find "Apps", then click on "Build apps in Dev Dashboard":

  2. Click the "Create app" button:

  3. Give the app a memorable name:

  4. Click "Select scopes":

  5. Then tick the following scopes and click “Release”:

    1. Read_analytics

    2. Read_assigned_fulfillment_orders

    3. Read_customers

    4. Read_discounts

    5. Read_draft_orders

    6. Read_fulfillments

    7. Read_gift_cards

    8. Read_inventory

    9. Read_locations

    10. Read_marketing_events

    11. Read_merchant_managed_fulfillment_orders

    12. Read_orders

    13. Read_product_listings

    14. Read_products

    15. Read_reports

    16. Read_shipping

    17. Read_locales

    18. Read_third_party_fulfillment_orders

    19. Read_all_orders

  6. Click "Install App":

  7. Once the app is installed, copy the Client ID and Secret available in the "Settings" section:

  8. Find the Shopify channel when connecting a new source, and fill in Shopify URL, Client ID and Client Secret details and then click on "Add an account":
    ​

Shopify Access Token (legacy)

  1. In the Settings menu, click on "Apps" and select "Allow legacy custom app development":

  2. Click the 'Develop apps' or 'Develop apps for your store' button:

  3. Click the 'Create an app' button:

  4. Give the app a memorable name:

  5. Select 'Configure Admin API scopes':

  6. Tick the following scopes and click “Save”:

    1. Read_analytics

    2. Read_assigned_fulfillment_orders

    3. Read_customers

    4. Read_discounts

    5. Read_draft_orders

    6. Read_fulfillments

    7. Read_gift_cards

    8. Read_inventory

    9. Read_locations

    10. Read_marketing_events

    11. Read_merchant_managed_fulfillment_orders

    12. Read_orders

    13. Read_product_listings

    14. Read_products

    15. Read_reports

    16. Read_shipping

    17. Read_locales

    18. Read_third_party_fulfillment_orders

  7. Click 'Install App':

  8. Once the app is installed, click 'Reveal token once', copy it, and paste it to the required field in Whatagraph:

Click the 'Add an account' button on Whatagraph to connect it:
​


Allow Whatagraph’s IP addresses in Shopify

Shopify refuses to export order data for apps that are installed on stores outside the app owner’s own organization, such as an agency app installed on client stores, until the app has an IP allowlist. If this applies to your app, add Whatagraph’s IP addresses so your orders keep loading.

Step 1. Open the Shopify Dev Dashboard and select the app you use for your stores.

Step 2. Open Settings, then click “Manage” in the IP allowlist section.

Step 3. Add these two addresses, one per line: 34.107.74.2 and 34.179.145.144.

Step 4. Click “Save”.

Step 5. Run Shopify’s test against the last 30 days of traffic and check that recent requests show as allowed.

Step 6. Turn on Enforcement and click “Save”.

Important: Only the person who owns the app can change these settings. If you can’t find the app in the Dev Dashboard, ask who created it and installed it on the stores.

You don’t need to reconnect the source. Within about 30 minutes of Enforcement being turned on, the next scheduled fetch loads the missing days on its own.

Did this answer your question?