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

id string · uuid required

Request body

target_product_id string required

UUID of the product that will become the parent.

Responses

201 Successful Response

400 Bad Request - Invalid input

404 Not Found - Resource does not exist

422 Validation Error - Invalid data format