Parameters
JSON body
Request body
application/jsonmainProductCodestringRequiredProduct code to add the variant to.
Example
my-productnamestringRequiredVariant display name.
Length: 1–∞
Example
Size XLcodestringRequiredVariant code (will be slugified and deduplicated).
Length: 1–∞
Example
xleanstringOptionalVariant EAN barcode.
Example
8594000000456pricenumberOptionalVariant price with VAT.
Example
399.9priceAddnumberOptionalAdditional price on top of the base product price.
Example
50