200Successful Response
Schema: SuccessEnvelope_VariantResponse_
successbooleanmessagestringcodestringdataVariantResponse
/api/v1/inventory/products/variants/{id}Update an existing variant.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
idstring · uuidrequiredSchema: VariantUpdateRequest
idstringVariant UUID (set from URL path).
product_idstringUUID of the parent product to move this variant under (re-parent). The target product must belong to the same business and must not be archived.
unit_priceintegerSale price in cents (e.g., 2999 = $29.99).
namestringVariant name (e.g., 'Large - Blue').
skustringStock Keeping Unit for inventory tracking.
manufacturer_skustringManufacturer's SKU for ordering from suppliers.
barcodestringScannable barcode (UPC/EAN/QR). Distinct from SKU.
unit_costintegerCost price in cents for margin calculations.
unit_cost_precisenumberPrecise unit cost in dollars with sub-cent precision (e.g. 0.0478).
uomstringUnit of measure: EA, LB, G, KG, OZ, L, ML, etc.
default_vendor_idstringUUID of the preferred vendor for this variant.
archivedbooleanSet to true to archive (hide) the variant.
initial_inventory_quantityintegerSet initial inventory count (use when first setting up).
initial_inventory_quantity_datestring · date-timeDate for the initial inventory count (ISO 8601).
Schema: SuccessEnvelope_VariantResponse_
successbooleanmessagestringcodestringdataVariantResponse