Chec offer a Shopify order integration for paid plans which can be quickly and easily enabled without developer input.

Setting up an outgoing order sync from Chec to Shopify is easy! You're going to create a Shopify Private App, then register the details for it in the Chec API to create a new Channel.

Here are the steps required:

Create Private App in Shopify

First, log into your Shopify store admin and follow these steps:

  1. Go to "Apps"
  2. Click "Manage Private Apps" at the bottom of the screen
  3. Click "Enable private app development"
  4. Read, then accept the terms and conditions, and click again to enable

Now you can create a private app and get the credentials you need for the Chec side. From the "Apps" screen, follow these steps:

  1. Click "Create private app"
  2. In the "App details" section, enter "Commerce.js sync" for your "private app name", and your email address
  3. Under the "Admin API" section, click "Show inactive Admin API permissions"
  4. Find "Orders" in the list, and select "Read & write" from the "No access" dropdown
  5. Click "Save" and confirm to continue

Now you can access your app's API key and secret. You will need these for the next step:

Enabling Shopify with the Chec API

Now that you have the credentials required from Shopify, you can create a new "Channel" in the Chec API and configure it with your Shopify credentials.

For this section you will need your Chec "secret key." This can be obtained from the Chec Dashboard, under Developer > API keys. You will also need a command line terminal for this example.

Having trouble? Feel free to get in touch with us, we're happy to help.

Create a new Channel

Insert your secret key into the following cURL command as well as your Shopify credentials (replacing the placeholder entirely, including the square brackets and the domain), and then execute it in your terminal:

curl -X POST -H 'X-Authorization: [your Chec secret key]' \
https://api.chec.io/v1/channels \
-H 'Content-Type: application/json' \
--data '{
"provider":"shopify",
"data":{
"api_key": "[shopify api key]",
"api_secret": "[shopify api secret]",
"domain":"your-shopify-store.myshopify.com"
}
}'

Please note: if you're on Windows, you may need to replace the \ backslashes with ^ characters instead.

Once you're run this command, you should see a response that looks like this:

{
"id": "chnl_GNqKE50NwdgBLV",
"provider": "shopify",
"data": {
"api_key": "[shopify api key]",
"api_secret": "[shopify api secret]",
"domain": "your-shopify-store.myshopify.com"
}
}

You're finished! 🎉 Now whenever an order is placed in your Chec account, it will automatically be sent to your Shopify store.

Did this answer your question?