v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Product

Creates variants for a matrix product

Creates variants for a matrix product

post/api/v1/products/{id}/actions/createVariants

Path parameters

idstring required

Resource identifier.

Example:17

The resource's identifier.

Request body

mode'1' | '2' | '3' | '4' required

1: Use item numbers from number range of merchandise group. 2: Add product numbers from options to the main number. 3: Create product numbers from the main number and the appendix to product numbers. No additional separators. 4: Product numbers of main products with suffix.

prefixSeparatorstring

Separator of prefix (applicable to mode 4 only)

prefixDigitsinteger

Number of digits of prefix (applicable to mode 4 only)

prefixNextNumberstring

Next number of prefix (applicable to mode 4 only)

Example request

{
  "variants": [
    {
      "options": [
        {
          "id": "1337"
        }
      ]
    }
  ]
}

Response

Resource successfully created response