Shopify
The Shopify platform offers online retailers a suite of services including payments, marketing, shipping and customer engagement tools.
This provider supports these data types:
Connect your Shopify app
To retrieve data from companies using Shopify, you have to connect your Shopify application with Qard. To do that, you'll have to:
- Create a Shopify application if you don't have one yet.
- Connect your application to Qard API using Shopify credentials (
clientId
&clientSecret
). - Test your integration by creating a new synchronization using Shopify provider.
Create a shopify application:
info
If you already have an account, you can skip this part.
- Go to the Shopify partners register page and create a new partner account.
- On applications page, create a new application.
- Select
public application
. - Enter the URL application.
- Enter Qard callback URI (
https://api.qardfinance.com/callback/shopify
) in the "Allowed redirection URL(s)" field. - After Submitting the form, your credentials (API KEY and API SECRET KEY) will be available.
Set up your Shopify application feature:
- Go to the Shopify partner Applications page and follow the guide.
- Select your application and click on Application setup.
- Complete your application information and Request access to orders, subscriptions...
- You will be contacted by Shopify within 1-7 business days.
Link your Shopify account to Qard API:
1. Update Shopify provider credentials:
(PUT) /api/v6/providers/shopify/credentials
{
"credentials": {
"client_id": "API_KEY",
"client_secret": "API_SECRET_KEY"
}
}
2. Settings Shopify provider:
(PUT) /api/v6/providers/shopify/settings
{
"auto_connect": (true|false)
}
3. Enable Shopify provider:
(PUT) /api/v6/providers/shopify
{
"enable": true
}
Test Shopify integration:
You can test Shopify integration by creating a new data connection for your user.
(POST) /api/v6/users/{userId}/data-connections
{
"requested_data_types": [
"COMMERCE_LOCATION",
"COMMERCE_CUSTOMER",
"COMMERCE_PRODUCT",
"COMMERCE_ORDER"
],
"provider_name": "shopify"
}
After finishing the connecting process by your user, and after validating that the data connection status is CONNECTED, you can run a new synchronization.
(POST) /api/v6/users/{userId}/sync
{
"data_types": [
"COMMERCE_LOCATION",
"COMMERCE_CUSTOMER",
"COMMERCE_PRODUCT",
"COMMERCE_ORDER"
]
}
To verify that you are receiving your user's commerce data, check out these endpoints:
- GET
/api/v6/users/{userId}/commerce-locations
- GET
/api/v6/users/{userId}/commerce-customers
- GET
/api/v6/users/{userId}/commerce-products
- GET
/api/v6/users/{userId}/commerce-orders