Composite products feature

What's new

New feature called Composite products allows creating products that are created from a combination of other products. For example, the "Combo Pizza" composite product includes the "Pizza" and "Drink" products.

Such products help with managing product stock and creating special offers.

Changes in API

New fields are added to all /products and /orders , /orders/{orderId}, /orders/last endpoints:

  • compositeComponents (array of objects)

  • compositeParents (array of numbers)

These fields allow you to create/update/read data about composite products. For example, here is the data about products in the order. The only product here is a composite product made of two different products:

"items": [
  {
    "productId": 123456,
    "sku": "COMPOSITE-001",
    "quantity": 1,
    "price": 30.0,
    "name": "Gift Pack A",
    "compositeComponents": [
      {
        "productId": 1111,
        "combinationId": null,
        "quantity": 2
      },
      {
        "productId": 2222,
        "combinationId": 5555,
        "quantity": 1
      }
    ]
  }
]
Get productGet order

Last updated

Was this helpful?