To connect Shopline to API2Cart, specify one of the available credential sets.

Shopline to API2Cart

Use credentials set 0 (shopline_access_token) to add a Private App.

Use credentials set 1 (shopline_app_key + shopline_app_secret) to add a Public App or a Custom App.

The process of obtaining access for Private App:

  1. Firstly, you must go to the Apps section in the store's admin panel and click on 'Develop Apps'
  2. Next step, click on ‘Create an APP'

    Then you have to fill in the required information

  3. You should be opening the app editing page.

    Then you have to configure the permissions for the Admin API

    To add the store to the API, granting permissions for the relevant resources (read/write orders, products, customers, etc.) and specifying 'Read store information'.

  4. Then, go to the API Certificates tab and install the app on the store.

    After this, you will receive the shopline_access_token

    Please note that this token is valid for a period of 3 years. After its expiration, you will need to update it in the app panel and update the shopline_access_token value for API2Cart.

  5. Fill in the necessary information for the API2Cart.
    Shopline to API2Cart

The process of obtaining access for Public App or Custom App:

  1. Create the app according to the Shopline's instructions.

    Use this guide for Public Apps.

    Use this guide for Custom Apps.

  2. After creating the app, you will receive the shopline_app_key and shopline_app_secret, which you'll use to add to the API2Cart.
    Shopline to API2Cart

    Note that for all stores where the app will be installed, the shopline_app_key and shopline_app_secret will be the same, with only the store_url differing.

  3. Next, you have need to install the app on the store. To do this, you need to prepare a URL through which customers will install your app
    EXAMPLE REQUEST
    curl --location 'https://.myshopline.com/admin/oauth-web/#/oauth/authorize?appKey=&responseType=code&scope=&redirectUri='

    where handle is the unique store identifier (the store URL subdomain), app_key is the App Key from the previous step, scope is the list of permissions required by the app (the list of scopes can be found here), and redirect_uri is the App callback URL from the app dashboard.

  4. After this, the client, on whose store the app will be installed, needs to go to the provided link in the browser and confirm the app installation.
  5. Once the client has installed the app, you can add the Shopline to API2Cart
    Shopline to API2Cart