> ## Documentation Index
> Fetch the complete documentation index at: https://help.peliqan.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify - Getting started in Peliqan

> Learn how to connect your Shopify store to Peliqan, sync e-commerce data to your data warehouse, and write back products, orders, and customers using Python.

Shopify is a leading cloud-based e-commerce platform that enables businesses of all sizes to create, customize, and manage online stores. Known for its ease of use and rich ecosystem of apps, Shopify helps merchants sell products, process payments, manage inventory, and streamline operations across multiple sales channels.

This article provides an overview to get started with the **Shopify** connector in **Peliqan**. Please [contact support](https://peliqan.io/contact) if you have any additional questions or remarks.

## Connect

1. Search for the connection in the Add connections page

* For fetching data into tables, use the Shopify connector
* For writing back data into Shopify, also add the Shopify Writeback connector

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=dc3276b1d04f169668beeb789457f83d" alt="Shopify connector in Peliqan connection list" style={{ width:"34%" }} width="512" height="716" data-path="images/Shopify - Getting started in Peliqan/image.png" />

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%201.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=efe4ee23bd7fb1f40993026e8200fc43" alt="Shopify Writeback connector in Peliqan connection list" width="633" height="358" data-path="images/Shopify - Getting started in Peliqan/image 1.png" />

2. Fill in the store name and Admin API access token. Save the connection.

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%202.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=2eb11ca53a83b3ea83f953c01b8dd5c0" alt="Shopify connection form with store name and API token fields" width="930" height="683" data-path="images/Shopify - Getting started in Peliqan/image 2.png" />

## Explore

Wait a few minutes for the data to start syncing. Now you can view your **Shopify** data in tables in Peliqan's built-in data warehouse (or in your own DWH if you connected e.g. SQL Server, Snowflake, Redshift or BigQuery).

Select "Explore" in the left navigation pane, expand "Data warehouse" in the left tree and click on Shopify. All tables from Shopify will now be shown.

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%203.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=e34d531e9d68ac6e1fc75efcb9f5a9f6" alt="Grid view showing Shopify data tables in Peliqan" width="1858" height="651" data-path="images/Shopify - Getting started in Peliqan/image 3.png" />

You can explore the data in the grid view, and you can write SQL queries to transform the data and to combine the data from Shopify with data from other sources.

## Activate

You can use Peliqan's low-code Python scripts to interact with Shopify using the Shopify API. With a single line of code, you can for example add or update a product, order or customer in Shopify.

1. Add Shopify Writeback connector and fill in the API Token

When creating the token in Shopify, ensure you add sufficient write scopes to the objects you wish to create/update with Peliqan

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%204.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=36cd40038708b441cfc800668e8fb0cf" alt="Shopify API token creation with write scopes" width="1760" height="1200" data-path="images/Shopify - Getting started in Peliqan/image 4.png" />

2. Create a Data App

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%205.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=d8c936c70872efc63682c9073810d991" alt="Creating a new Data App in Peliqan" width="3370" height="1836" data-path="images/Shopify - Getting started in Peliqan/image 5.png" />

3. Click Add object in the right panel, after searching for Shopify

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/Screenshot_2025-09-11_at_5.37.03_PM.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=af98392ce8a583ca1851ed4e20bf84fb" alt="Right panel showing Shopify object options in a Data App" style={{ width:"41%" }} width="454" height="254" data-path="images/Shopify - Getting started in Peliqan/Screenshot_2025-09-11_at_5.37.03_PM.png" />

* Add object is a generic endpoint to add any entity (products, customers, orders etc).
* Add product is a specific endpoint to add products.

4. This adds sample code in your script, to add a Product in Shopify (using the generic object endpoint).

### REST API based mutations

The sample code is based on the rest api as per [https://shopify.dev/docs/api/admin-rest](https://shopify.dev/docs/api/admin-rest) The `resource` field in this case is `products` corresponding to `products.json` in the api request.

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%206.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=05b2815856df62955ba2b8e195d5665c" alt="Sample Python code for adding a Shopify product via REST" width="2494" height="1192" data-path="images/Shopify - Getting started in Peliqan/image 6.png" />

### Alternatively use advanced GraphQL based mutations

The `resource` field in this case should be made to **`graphqlgraphql`** corresponding to `graphql.json` in the api request.

The GraphQL query comes inside the `body` just as per the [GraphQL api docs](https://shopify.dev/docs/api/admin-graphql).

This mode can be used to perform **any kind of operation** (add/update/delete) using the appropriate GraphQL mutations.

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%207.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=cc95393c90545babf700bc2e3bb1535f" alt="Sample Python code for GraphQL mutation in Shopify" width="2048" height="1302" data-path="images/Shopify - Getting started in Peliqan/image 7.png" />

Example of `update` mutation:

<img src="https://mintcdn.com/peliqan-9d7f0393/DpQjvkKRKgIiIQ6T/images/Shopify%20-%20Getting%20started%20in%20Peliqan/image%208.png?fit=max&auto=format&n=DpQjvkKRKgIiIQ6T&q=85&s=08b234c4f89585cf1de8f4e66c9bd571" alt="Shopify GraphQL update mutation example" width="2048" height="1486" data-path="images/Shopify - Getting started in Peliqan/image 8.png" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.