Skip to main content

Modifying Products in the Products Catalog

This guide explains how to delete products and update their availability in your Kameleoon product catalog. For all other product updates refer to the Importing a product catalog tutorial.

The following endpoints are used:

Goal

Remove products or mark them as in-stock in the Kameleoon product catalog.

Call the Appropriate API Endpoint

a. Update Available Products

Use this to indicate which products are currently in stock.

caution

Any product not listed will be marked as out of stock.

Endpoint:

PATCH https://api.products.kameleoon.com/import/products
NameTypeRequiredDescription
shop_idstringTrueYour Kameleoon store ID
shop_secretstringTrueYour Kameleoon secret ID
itemsListTrueA list of product IDs that are in stock.

This is a full replacement: only include product IDs that are available. Any product not listed will be considered out of stock.

Exemple:

curl -X PATCH -L 'https://api.products.kameleoon.com/import/products' \
-H 'Content-Type: application/json' \
-d '{
"shop_id": "eehj3eu84299kg5ghw5a6743r8",
"shop_secret": "pmd5362597thrgq8k256ep01t0",
"items": ["1235", "4337", "7578"]
}'

b. Remove Products

Used to delete products from Kameleoon to prevent them from appearing in recommendation results.

Endpoint:

DELETE https://api.products.kameleoon.com/import/products
NameTypeRequiredDescription
shop_idstringTrueYour Kameleoon store ID
shop_secretstringTrueYour Kameleoon secret ID
itemsListTrueA list of product IDs
note

Only send the IDs of the products you want to delete.

curl -X DELETE -L 'https://api.products.kameleoon.com/import/products' \
-H 'Content-Type: application/json' \
-d '{
"shop_id": "eehj3eu84299kg5ghw5a6743r8",
"shop_secret": "pmd5362597thrgq8k256ep01t0",
"items": ["1635", "3743", "7578", "432"]
}'