Syncing Products
Use product sync APIs to sync the product and inventory of your store with Growlytics. This article will give you all the details you need to create products, collections and map products to collections.
Data Structure Of Product And Collections
The data structure of products and collections is many to many kinds of relationships. One collection can have multiple products and one product can be in multiple collections.
Add/Update Products
POST
https://dc.growlytics.in /product
Using /product
API, you can add products to Growlytics. If a product not found with the given id, it will be created, else it will be updated.
Headers
Request Body
Remove Product
DELETE
https://dc.growlytics.in/product/:id
Use this API to delete products from Growlytics's product dataset.
Path Parameters
Headers
Add/Update Collection
POST
https://dc.growlytics.in/collection
Using /collection
API, you can add or update collection in the Growlytics collection dataset. If a collection does not exist for given id, it will be created, else it will be updated.
Headers
Request Body
Delete Collection
DELETE
https://dc.growlytics.in/collection/:id
Use this api to delete collection from Growlytics collection dataset. You will need to pass the id of the collection in url.
Path Parameters
Headers
Mapping Products & Collections
Products and Collections have many to many relationships. You can use APIs to add or remove multiple products from a particular collection.
Add products to the collection
POST
https://dc.growlytics.in/collection/:id/products/add
Use this API to add multiple products to the collection. You will need to pass the collection id in the URL.
Path Parameters
Request Body
Make sure you have added products and collections in Growlytics before adding them to any collection. In short, products and collections to be mapped must exist in Growlytics.
Remove products from the collection
POST
https://dc.growlytics.in/collection/:id/products/remove
Use this API to remove multiple products from a particular collection. You will need to pass the collection id in the URL.
Path Parameters
Request Body
Last updated