Skip to main content

Create Multiple Products

Creates several products in a single request. Products whose SKU already exists are skipped.

HTTP Request​

  • URL: /products/multiple
  • Method: POST
  • Headers:
    • accessToken: Required. Your API access token.
    • Content-Type: application/json
  • Required scope: READ_WRITE_PRODUCT

Request Body​

Send a JSON array of products. Each product uses the same fields as Create Product. The most common fields are listed below.

FieldTypeRequiredDescription
skuStringYesSKU of the product. Must be unique.
nameStringYesName of the product.
priceNumberYesBase price of the product.
statusStringNoactive or inactive. Default is active.
brandStringNoID of the product's brand.
categoriesArrayNoIDs of the categories the product belongs to.
mediaGalleryArrayNoImages and videos.
optionsArrayNoProduct options.
variantsArrayNoProduct variants.
metaFieldsArrayNoCustom field values.

cURL Example​

curl --location '<BASE_URL>/products/multiple' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '[
{
"sku": "GLV-NIT-M",
"name": "Nitrile Exam Gloves Medium",
"price": 12.49,
"status": "active",
"brand": "65b0d13f98539a33577ac4ce",
"categories": ["696a558b2c0b334070270d81"],
"mediaGallery": [{ "url": "https://images.example.com/glv-nit-m.jpg", "type": "image", "isDefault": true }]
},
{
"sku": "GLV-NIT-L",
"name": "Nitrile Exam Gloves Large",
"price": 12.49,
"status": "active",
"metaFields": [{ "code": "material", "value": "Nitrile" }]
}
]'

Response​

  • 200 OK: The products were created successfully.
  • 400 Bad Request: The access token is missing or invalid, or one of the products has a missing or invalid field.

Sample JSON Response​

{
"success": true,
"message": "Products added Successfully"
}

When every SKU in the request already exists, nothing is created and the response is:

{
"success": true,
"message": "No new products to add — all SKUs already exist"
}

Response Details​

FieldTypeDescription
successBooleantrue when the request succeeded.
messageStringConfirmation message.

Notes​

  • Products whose SKU already exists are skipped. The other products are still created.
  • The product page URL is created automatically from the product name.
  • If any product in the array is not valid, none of the products are created.
  • To fetch the new products, use Get All Products with the sku:in parameter.