Connection
The required arguments to establish a connection are as follows:shop_url
: a required URL to your Shopify store.access_token
: a required access token to use for authentication.
Here is how you can create a Shopify access token.
yotpo_app_key
: a token needed to access customer reviews via the Yotpo Product Reviews app.yotpo_access_token
: a token needed to access customer reviews via the Yotpo Product Reviews app.
If you want to query customer reviews, use the Yotpo Product Reviews app available in Shopify. Here are the steps to follow:
- Install the Yotpo Product Reviews app for your Shopify store.
- Generate
yotpo_app_key
following this instruction for retrieving your app key. Learn more about Yotpo authentication here. - Generate
yotpo_access_token
following this instruction.
Usage
Once you have created the database, you can query the following tables:- Products table
- Customers table
- Orders table
- CustomerReviews table (requires the Yotpo Product Reviews app to be installed in your Shopify account)
- InventoryLevel table
- Location table
- CarrierService table
- ShippingZone table
- SalesChannel table
Products table
You can query this table as below:INSERT INTO
statement, providing the following values: title
, body_html
, vendor
, product_type
, tags
, status
.
To update existing data, run the UPDATE
statement.
To delete data, run the DELETE
statement.
Customers table
You can query this table as below:UPDATE
statement.
To delete data, run the DELETE
statement.
Orders table
You can query this table as below:CustomerReviews table
You can query this table as below:InventoryLevel table
You can query this table as below:Location table
You can query this table as below:CarrierService table
You can query this table as below:INSERT INTO
statement, providing the following values: name
, callback_url
, service_discovery
.
To update existing data, run the UPDATE
statement.
To delete data, run the DELETE
statement.
ShippingZone table
You can query this table as below:SalesChannel table
You can query this table as below:For more information about available actions and development plans, visit this page.