Delete a variant
Deletes one variant, its prices, and every event line that used it. The variant must belong to the product in
the path, so a caller cannot reach another product’s variant through this URL
(404 variant_not_on_product).
Refuses with 409 variant_on_event_items:<count> while the variant is on an event; ?force=true deletes it
and its lines.
DELETE
/api/v1/products/{id}/variants/{variantId}Authorization
AuthorizationBearer token (bloomcount_...) · headerrequiredPath parameters
idstringrequiredvariantIdstringrequiredQuery parameters
forcebooleanDelete even when the cascade reaches beyond this resource.
default: false
Responses
200Deleted, with a count of everything the cascade took.
deletedbooleanrequiredpriceEntriesDeletedintegerrequiredPrices removed across every list that carried one for this variant.
eventItemsDeletedintegerrequiredEvent lines removed. Non-zero only on a forced delete.
401Missing or invalid API key, or revoked / expired.
errorstringrequired403Authenticated, but the key lacks the required scope or the tenant has no API access.
errorstringrequired404The requested resource doesn't exist or belongs to a different tenant.
errorstringrequired409The resource is still referenced, and deleting it would take other rows with it. The error names what and how
many, for example price_list_in_use:3. Retry with force=true to delete anyway.
errorstringrequired422Request body or arguments failed validation.
errorstringrequired429Per-minute rate limit (60/min) or per-month cap exceeded.
errorstringrequired