v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Product

Create cross selling

Creates new cross selling for a product.

post/api/v1/products/{id}/crossSelling

Path parameters

idstring required

Resource identifier.

Example:17

The resource's identifier.

Request body

activeboolean

Determines if the cross selling relation is active.

assignToEachOtherboolean

Determines if the selected products are assigned to each other. For more information have a look into our handbook.

type1 | 2

Determines the type of the cross selling product. 1 means similar product, 2 means accessory. For more information have a look into our handbook.

sortnumber

Sorting order of the cross selling entries. 0 means automatically.

notestring nullable

Internal note.

Example request

[
  {
    "product": {
      "id": "1337"
    },
    "active": true,
    "assignToEachOther": true,
    "type": 1,
    "salesChannel": {
      "id": "sales-channel-56789"
    },
    "sort": 1,
    "note": "This is an internal note for reference."
  }
]

Response

Resource successfully created response