commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Product → Create Product

AI-generated

Summary

Create a new product in the commercetools platform by specifying its product type, categories, name, slug, master variant details, variants, and attributes.

Inputs

  • Product Type › Id — The identifier of the product type that the product belongs to.
  • Product Type › Type Id — The type ID for the product type.
  • Categories (required) — A JSON array of categories to assign the product to.
  • Name (required) — A JSON object representing the product's name in various languages.
  • Slug (required) — A JSON object representing the URL slug for the product in various languages.
  • Master Variant › Sku — The SKU for the master variant of the product.
  • Master Variant › Prices — A JSON array of price objects for the master variant.
  • Master Variant › Images — A JSON array of image objects for the master variant.
  • Variants (required) — A JSON array of variant objects for the product.
  • Attributes (required) — A JSON array of attribute objects describing product properties.

Output shape

a single record

The operation returns the created product object as JSON from the commercetools API.

Examples

Example 1: Create Product with basic details

Provide the product type id or type id, categories as JSON array, name and slug as localized JSON objects, master variant SKU, prices, images (optionally), variants array, and attributes array.

Links

Discussion