Convert product to variant

POST/api/v1/inventory/products/{id}/convert-to-variant

Move a product's variants under another product and archive the source.

Operation ID: convert_product_to_variant_api_v1_inventory_products__id__convert_to_variant_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

idstring · uuidrequired

Request body

target_product_idstringrequired

UUID of the product that will become the parent.

Responses

201Successful Response

successboolean
messagestring
codestring
dataConvertProductToVariantResponse

400Bad Request - Invalid input

404Not Found - Resource does not exist

422Validation Error - Invalid data format