v1

latestSwagger 2.0MIT2026-07-17233380637.0 KB
Ecommerce

Create products in batch

post/products/batch

Request body

updateEnabledboolean

Facilitate to update the existing categories in the same request (updateEnabled = true)

Example request

{
  "products": [
    {
      "id": "P11",
      "name": "Iphone 11",
      "url": "http://mydomain.com/product/electronics/product1",
      "imageUrl": "http://mydomain.com/product-absoulte-url/img.jpeg",
      "metaInfo": {
        "description": "Shoes for sports",
        "brand": "addidas"
      },
      "deletedAt": "2017-05-12T12:30:00.000+0000",
      "isDeleted": true
    }
  ]
}

Response

Products created and updated

createdCountinteger

Number of the new created products

updatedCountinteger

Number of the existing products updated

Example response

{
  "createdCount": 7,
  "updatedCount": 5
}