To get the API credential the admin needs to generate the Shopify API credential first using the Shopify account.
1. Visit the Shopify store where you want to connect and sync and then in the search bar type in app.
2. You then want to click on the option highlighted which is labeled as "Apps"
3. On the next page you would need to click on "Develop apps"
4. After the selection of develop an app for your store and then click on create an app.
5. Please fill in the required credentials i.e.App name and click on create app.
6. Afterward, create a successful app and then go to the configuration and click on the configure for Admin API Integration.
7. Also, it should have Read and Write API permission for the following:
- Customer Details and Customer Group
- Inventory
- Order, transaction, and fulfilments
- Product Information
- Product, variant, and collection
After successfully, fill in all the required permission and then click on the Save button.
8. Afterward, go to the API credentials and click on the Install App button.
9. By clicking on the Reveal token once and getting the token key successfully. Save this into a text document with the label "Access Token"
Note- This token key is available only once, please copy and save your admin API token in a secure place.
10. Scroll down further to the section labeled "API key and secret key" and copy both of these keys as "API key" and the second label as "Private API Password".
11. Next is to get your API URL, this can be found on the same page just above the menu as outlined in the image below:
The start will be different but it will always end in myshopify.com. Save this in the text doc as "Shop URL"
12. Lastly we need to start building a collection of products to do this go back to your Shopify admin, go to Products > Collections
13. Click Create collection.
14. Enter a title and description for the collection.
15. In the Collection type section, click Manual.
16. Click Save.
17. In the Products section, search for products or click Browse, and then add the products that you want to have in the collection.
18. To then get the ID just go up to your URL bar in your browser and you will have a URL that will looks something like this -
https://admin.shopify.com/store/52bd33/collections/451538649381 - the collection ID are the numbers at the end, so for this example it is
451538649381. Copy this into the text document as "Collection ID"
Once you have all of the following details in a text document:
- Shop Name
- Access Token
- API Key
- Private API Password
- Shop URL
- Collection ID