200Variant updated successfully
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.
inventory_categorystringWhich inventory ledger this item's cost sits in: raw_material, packaging or finished_good. Production runs and counts post by it.
default_vendor_idstringUUID of the preferred vendor for this variant.
tax_code_idstringUUID of the tax code that decides whether this variant is charged sales tax on invoices (a non-taxable code such as Exempt keeps the default tax rate off it). Send null to clear it, which leaves the variant taxable.
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_
successbooleanmessagestringcodestringdataVariantResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.