Skip to main content

-how-to-activate-shopify-api-session-without-web-interface

How to activate shopify API session without Web Interface​

1 In database find shopify_installs table and take a record of any existing where subscription_id is not null, you will need shop name and access token

2 Copy this peace of code

session = ShopifyAPI::Session.new( domain: @shopify_install.shop, token: @shopify_install.shopify_access_token, api_version: Rails.configuration.shopify_api_version )

Instead of @shopify_install.shop paste shop name, and instead of @shopify_install.shopify_access_token paste access token from step 1

3 Open your rails console

4 Paste and run the code above

5 Then run this command ShopifyAPI::Base.activate_session(session)