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.
| 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. |
status | String | No | active or inactive. Default is active. |
brand | String | No | ID of the product's brand. |
categories | Array | No | IDs of the categories the product belongs to. |
mediaGallery | Array | No | Images and videos. |
options | Array | No | Product options. |
variants | Array | No | Product variants. |
metaFields | Array | No | Custom 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
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the request succeeded. |
message | String | Confirmation 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:inparameter.