Required scope: catalog:write
Creates a catalog product. Prices are integer minor currency units and
vatRate is a fraction (for example 0.21 for 21%). Supply countryPrices to
set country-specific overrides; each override replaces any existing overrides
for its country. The product is active unless isActive is false.
This endpoint is not idempotent : there is no natural key or idempotency key,
so repeated calls create duplicate products. De-duplicate on your side (for
example by SKU) before retrying.
Generated Reference
POST /public-api/publicapi.v1.Catalog/CreateProduct
Creates a catalog product for external ERP/PIM synchronization. This operation is not idempotent and repeated calls create duplicate products.
Request CreateProductRequest
Response CreateProductResponse
CreateProductRequest Field Type Description name string Product display name. sku string Stock keeping unit. May be empty when the catalog does not use SKUs. description string Free-text product description. folder_id optional string Catalog folder to place the product in. Root when omitted. currency optional string ISO 4217 currency code for the base prices. price_once_minor optional int32 One-off price in minor currency units, when the product has one. price_monthly_minor optional int32 Monthly recurring price in minor currency units, when applicable. price_yearly_minor optional int32 Yearly recurring price in minor currency units, when applicable. vat_rate optional double Default VAT rate as a fraction (for example 0.21 for 21%). is_active optional bool Whether the product is active and sellable. Defaults to true when omitted. min_quantity optional int32 Minimum orderable quantity, when constrained. max_quantity optional int32 Maximum orderable quantity, when constrained. country_prices repeated CountryPriceInput Country-specific price overrides. Replaces any existing overrides when set.
CreateProductResponse Field Type Description product Product The created product.
"description" : " 430 W panel " ,
"folderId" : " <catalog-folder-id> " ,
{ "countryCode" : " US " , "priceOnceMinor" : 20500 , "vatRate" : 0 }