What can you do with it?
The Commercetools API allows you to manage your headless commerce platform. You can create and manage products, search through your catalog, query products with complex predicates, and handle product variants, categories, and pricing across multiple locales and currencies.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (list, create, search, query)entity
- The entity type (products, product-projections)
query
- Search query textlocale
- Language locale (e.g., βenβ, βdeβ)sku
- Product SKU for searchingcategory_id
- Category ID for filteringpredicate
- Query predicate for complex filtering
Tools
List Products
Retrieve a list of all products in your Commercetools project. Parameters:limit
(optional) - Number of products to returnoffset
(optional) - Number of products to skip
Create Product
Create a new product in your Commercetools project. Parameters:product_type_id
(required) - Product type IDname
(required) - Product name with localeslug
(required) - Product slug with localedescription
(optional) - Product description with localesku
(required) - SKU for the master variantprice
(required) - Price information with currencycategory_id
(optional) - Category ID to assign the product
Search Products
Search for products using text search across product names and descriptions. Parameters:query
(required) - Search query textlocale
(optional) - Language locale for search (default: βenβ)limit
(optional) - Number of results to return
Query Products with Predicates
Query products using complex predicates for advanced filtering. Parameters:predicate
(required) - Query predicate for filteringlimit
(optional) - Number of results to returnoffset
(optional) - Number of results to skip