Delete product variant

DELETE/api/v1/inventory/products/variants/{id}

Archive a variant (default), or permanently delete it with permanent=true. Permanent deletion is rejected when the variant has linked inventory, order, shipment, transfer, or count records.

Operation ID: delete_variant_api_v1_inventory_products_variants__id__delete·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

Query

permanentbooleandefault: False

Permanently delete instead of archiving. Only allowed when the variant has no linked records.

product_idstring

Responses

200Successful Response

successboolean
messagestring
codestring

400Bad Request - Invalid input

404Not Found - Resource does not exist

422Validation Error - Invalid data format