Create Product
Creates a new product with its pricing, media, options, variants and metafields. To create many products at once, use Create Multiple Products.
HTTP Request
- URL:
/products - Method:
POST - Headers:
accessToken: Required. Your API access token.Content-Type:application/json
- Required scope:
READ_WRITE_PRODUCT
Request Body
Send the product as a JSON object.
| Field | Type | Required | Description |
|---|---|---|---|
sku | String | Yes | SKU of the product. Must be unique. |
name | String | Yes | Name of the product. |
price | Number | Yes | Base price of the product. |
cost | Number | No | Cost price. |
sale | Number | No | Sale price. |
status | String | No | active or inactive. Default is active. |
visibility | Boolean | No | Whether the product is visible on the storefront. Default is true. |
description | Object | No | Full description. See Description Object. |
shortDescription | String | No | Short description. |
specifications | Array | No | Specifications. See Specification Object. |
customUrl | String | No | URL of the product page on the storefront. |
manufacturer | String | No | Manufacturer name. |
mpn | String | No | Manufacturer part number. |
brand | String | No | ID of the product's brand. |
categories | Array | No | IDs of the categories the product belongs to. |
weight | Number | No | Weight of the product. Default is 1. |
dimensions | Object | No | width, height and depth as numbers. Each defaults to 1. |
quantity | Object | No | minQuantity and quantityIncrement for ordering. Both default to 1. |
trackInventory | Boolean | No | Whether stock is tracked. Default is false. |
inventoryType | String | No | Track stock per product or per variant. Default is product. |
isFeatured | Boolean | No | Whether the product is featured. Default is false. |
isFreeShipping | Boolean | No | Whether the product ships free. Default is false. |
isTaxExempt | Boolean | No | Whether the product is tax exempt. Default is false. |
taxcode | String | No | Tax code. |
additionalCost | Object | No | Extra cost. See Additional Cost Object. |
tierPrice | Array | No | Quantity price breaks. See Tier Price Object. |
mediaGallery | Array | No | Images and videos. See Media Gallery Object. |
files | Array | No | Attached files. See File Object. |
options | Array | No | Product options. See Option Object. |
variants | Array | No | Product variants. See Variant Object. |
groupedProducts | Array | No | Products in a grouped product. See Grouped Product Object. |
bundledProducts | Array | No | Bundle sections. See Bundled Product Object. |
relatedProducts | Array | No | Related product lists. See Related Product Object. |
filters | Array | No | Filter values. See Filter Object. |
metaFields | Array | No | Custom field values. See Metafield Object. |
searchKeyWords | Array | No | Extra keywords for storefront search. |
synonymKeywords | Array | No | Search synonyms. |
seo | Object | No | SEO settings. See SEO Object. |
manageCustoms | Boolean | No | Whether customs details are used. Default is false. |
customs | Object | No | Customs details. See Customs Object. |
sortOrder | Number | No | Display order. |
Description Object
| Field | Type | Required | Description |
|---|---|---|---|
dataType | String | No | HTML or JSON. Default is HTML. |
value | String | No | The description content. |
Specification Object
| Field | Type | Required | Description |
|---|---|---|---|
name | String | No | Name of the specification, for example Material. |
value | String | No | Value of the specification. |
displayStorefront | Boolean | No | Show on the product page. Default is true. |
Additional Cost Object
| Field | Type | Required | Description |
|---|---|---|---|
type | String | No | custom, fixed or percentage. Default is fixed. |
value | Number | No | Amount or percentage. Default is 0. |
Tier Price Object
| Field | Type | Required | Description |
|---|---|---|---|
quantity | Number | No | Minimum quantity for this price break. |
price | Number | No | Price when tierPricingType is fixed. |
discount | Number | No | Discount when tierPricingType is discount. |
tierPricingType | String | No | fixed or discount. Default is fixed. |
Media Gallery Object
| Field | Type | Required | Description |
|---|---|---|---|
url | String | No | Public URL of the image or video. |
type | String | No | image, video or embed. Default is image. |
label | String | No | Label or alt text. |
isDefault | Boolean | No | Use as the main image. Default is false. |
File Object
| Field | Type | Required | Description |
|---|---|---|---|
format | String | Yes | File format, for example pdf. |
url | String | Yes | URL of the file. |
name | String | No | Display name of the file. |
type | String | No | document, image or video. Default is document. |
Option Object
| Field | Type | Required | Description |
|---|---|---|---|
optionName | String | Yes | Name of the option, for example Size. |
optionType | String | Yes | color, dropdown, radio, rectangleBox or image. |
optionValues | Array | No | Values, each with label (required), value (required) and isDefault. |
Variant Object
| Field | Type | Required | Description |
|---|---|---|---|
sku | String | Yes | SKU of the variant. |
name | String | Yes | Name of the variant. |
options | Array | No | Option values for this variant, each with optionName, optionValue and optionValueLabel (all required). |
price | Number | No | Price of the variant. |
cost | Number | No | Cost price. |
sale | Number | No | Sale price. |
weight | Number | No | Weight of the variant. |
mpn | String | No | Manufacturer part number. |
tierPrice | Array | No | Quantity price breaks. Same fields as the Tier Price Object. |
mediaGallery | Array | No | Images and videos. Same fields as the Media Gallery Object. |
Grouped Product Object
| Field | Type | Required | Description |
|---|---|---|---|
productId | String | No | ID of an existing product to include. |
quantity | Number | No | Default quantity. |
dynamicQuantity | Boolean | No | Whether the shopper can change the quantity. Default is true. |
Bundled Product Object
| Field | Type | Required | Description |
|---|---|---|---|
optionTitle | String | No | Title of the bundle section, for example Choose a lid. |
inputType | String | No | How the shopper picks items, for example radio. |
isRequired | Boolean | No | Whether the shopper must choose an item. Default is false. |
bundledItems | Array | No | Items, each with productId, quantity and dynamicQuantity. |
Related Product Object
| Field | Type | Required | Description |
|---|---|---|---|
code | String | Yes | Code of the list, for example accessories. |
label | String | Yes | Title of the list shown on the storefront. |
products | Array | No | IDs of the related products. |
isShow | Boolean | No | Show the list on the storefront. Default is true. |
Filter Object
| Field | Type | Required | Description |
|---|---|---|---|
code | String | Yes | Code of the filter, for example color. |
label | String | Yes | Label of the filter. |
options | Array | No | Values, each with label and value. |
Metafield Object
| Field | Type | Required | Description |
|---|---|---|---|
code | String | Yes | Code of an existing product metafield. See Metafields. |
value | String, Number, Boolean or Array | No | Value to store. |
SEO Object
| Field | Type | Required | Description |
|---|---|---|---|
pageTitle | String | No | Page title for the product. |
metaKeywords | String | No | Meta keywords. |
metaDescription | String | No | Meta description. |
Customs Object
| Field | Type | Required | Description |
|---|---|---|---|
countryCode | String | No | Country of origin, for example US. |
commodityDescription | String | No | Description of the goods for customs. |
hsCodes | Object | No | HS code details: countryCode and hsCode. |
cURL Example
curl --location '<BASE_URL>/products' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"sku": "TSHIRT",
"name": "Classic Cotton T-Shirt",
"price": 19.99,
"cost": 7.5,
"status": "active",
"brand": "65b0d13f98539a33577ac4ce",
"categories": ["696a558b2c0b334070270d81"],
"description": { "dataType": "HTML", "value": "<p>Soft 100% cotton tee.</p>" },
"shortDescription": "100% cotton",
"trackInventory": true,
"mediaGallery": [
{ "url": "https://images.example.com/tshirt-red.jpg", "type": "image", "label": "Red", "isDefault": true }
],
"options": [
{
"optionName": "Size",
"optionType": "dropdown",
"optionValues": [{ "label": "Small", "value": "S" }, { "label": "Large", "value": "L" }]
}
],
"variants": [
{
"sku": "TSHIRT-S",
"name": "Small",
"price": 19.99,
"options": [{ "optionName": "Size", "optionValue": "S", "optionValueLabel": "Small" }]
},
{
"sku": "TSHIRT-L",
"name": "Large",
"price": 21.99,
"options": [{ "optionName": "Size", "optionValue": "L", "optionValueLabel": "Large" }]
}
],
"tierPrice": [{ "quantity": 24, "price": 17.5, "tierPricingType": "fixed" }],
"metaFields": [{ "code": "material", "value": "Cotton" }],
"seo": { "pageTitle": "Classic Cotton T-Shirt", "metaDescription": "Soft cotton tee." },
"customUrl": "classic-cotton-t-shirt"
}'
Response
- 200 OK: The product was created successfully.
- 400 Bad Request: The access token is missing or invalid, a required field is missing, a value is not valid, or a product with the same SKU already exists.
Sample JSON Response
{
"success": true,
"message": "Product added Successfully",
"data": {
"id": "6703a1c4e1d2f3a4b5c6d7e8",
"entityId": 1043,
"name": "Classic Cotton T-Shirt",
"sku": "TSHIRT",
"productType": "configurable",
"hasOptions": true,
"status": "active",
"price": 19.99,
"cost": 7.5,
"priceRange": { "minPrice": 19.99, "maxPrice": 21.99 },
"customUrl": "classic-cotton-t-shirt",
"mediaGallery": [
{
"_id": "6703a1c4e1d2f3a4b5c6d7e9",
"url": "https://cdn.example.com/products/classic-cotton-t-shirt-red.webp",
"type": "image",
"label": "Red",
"isDefault": true
}
],
"variants": [
{ "_id": "6703a1c4e1d2f3a4b5c6d7ea", "sku": "TSHIRT-S", "name": "Small", "price": 19.99, "isActive": true },
{ "_id": "6703a1c4e1d2f3a4b5c6d7eb", "sku": "TSHIRT-L", "name": "Large", "price": 21.99, "isActive": true }
],
"createdAt": "2025-10-07T09:12:36.401Z",
"updatedAt": "2025-10-07T09:12:36.401Z"
}
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the product was created. |
message | String | Confirmation message. |
data | Object | The new product. For all fields, see Get Product. |
Notes
- The product type is set for you:
configurablewhen you sendoptions,groupedwhen you sendgroupedProducts,bundlewhen you sendbundledProducts, andsimpleotherwise. - If you send
optionswithoutvariants, a variant is created for every combination of option values. Each one gets the product's price and an SKU made from the product SKU and the first letter of each value, for exampleTSHIRT-S. - Grouped and bundle products take their price from the products they contain, so
priceis not used for them. - Images in
mediaGalleryare copied to your store's media library, andurlis updated to the new location. - To set stock levels, use Update Product Inventory.