# Shopify

## Overview <a href="#shopifyconnector-overview" id="shopifyconnector-overview"></a>

DBSync's Shopify connector is highly customizable. It can connect your Shopify instance with additional applications - like CRM software and various other systems. As a Shopify user, you can also use this connector to integrate Shopify with other On-demand, On-premise, or SaaS-based applications - such as MSCRM, Salesforce, SkuVault, and databases. The connector uses the SuiteTalk web service REST API to move data in and out of the Shopify platform. Integrating with Shopify consists of web service calls using a JSON request/response made over an HTTPS connection.

The Shopify connector exposes all standard objects available within the Shopify instance of the connected user.

### Prerequisites

* A Shopify store.
* Admin access to create a Custom App in Shopify.
* The following **Admin API scopes** (at minimum) should be enabled:
  * `read_products`, `read_orders`, `read_customers`, etc. (based on your integration needs).
* A valid **Admin Access Token** is generated from the Shopify Admin > Apps > Develop Apps section.

### Connector Configurations <a href="#shopifyconnector-connectorconfigurations" id="shopifyconnector-connectorconfigurations"></a>

Shopify connector instance represents a single Shopify account, including login credentials. If a user wishes to connect to multiple instances of either sandbox/production, then they must create a separate connection for each and configure the URL accordingly. The table below represents the parameters required for opening the connection to the Shopify user instance.

### Steps for Quick Setup <a href="#shopifyconnector-stepsforquicksetup" id="shopifyconnector-stepsforquicksetup"></a>

1. Log in to your DBSync account, navigate to the apps page, and add the Shopify connector.

To configure the Shopify connector:

1. **Shop URL**
   * Enter your Shopify store’s domain (e.g., `your-store.myshopify.com`).
2. **Admin Access Token**
   * Provide the private **Admin API access token** from your custom Shopify app.
   * You can create this token by generating a **Custom App** in your Shopify Admin and enabling the required Admin API scopes.
3. Click **Validate Connection** to check if your credentials are correct.
4. Click **Save Connection** to complete setup.

<details>

<summary>Frequently Asked Questions (FAQ)</summary>

**How does DBSync connect to Shopify?**\
DBSync connects to Shopify platform through connector called Shopify connector. It has in-built API methods that opens a connection to Shopify application for reading, and writing, data in, and out, of the platform.

**When do we need additional integration coding?**\
DBSync has a standard template built-in for the clients of Shopify. If the scope of work involves other than standard data flow supported by DBSync's standard template then, additional integration should be written.

**Does DBSync need to be installed on the same machine as that of Shopify?**\
No, since both DBSync and Shopify platforms are available through cloud. However, if required, it can be installed on-premise.

</details>

## Related Links

How to find the API Key in Shopify? Use the link below: <https://community.shopify.com/c/shopify-discussions/where-can-i-find-my-api-key-of-my-shopify-app/td-p/591829>

How to create custom applications in Shopify? Use the link below:\
<https://help.shopify.com/en/manual/apps/app-types/custom-apps>
