Connectnect
- 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
- Fill in the store name and Admin API access token. Save the connection.
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.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.- Add Shopify Writeback connector and fill in the API Token
- Create a Data App
- Click Add object in the right panel, after searching for Shopify
- Add object is a generic endpoint to add any entity (products, customers, orders etc).
- Add product is a specific endpoint to add products.
- 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 Theresource field in this case is products corresponding to products.json in the api request.
Alternatively use advanced GraphQL based mutations
Theresource 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.
This mode can be used to perform any kind of operation (add/update/delete) using the appropriate GraphQL mutations.
update mutation:
