DELETE
Remove a unit of an item
Company space Cannot be undone For: Manager · Permission: variant_units.delete, bundle_units.delete Conditions
  • The permission depends on the type of item: variant_units.delete or bundle_units.delete.
  • The deletion can still be refused when purchases, transfers, stock corrections or damage records refer to the unit.
What else happens
  • When an order line already uses the unit, it is only deactivated (is_active false) and kept; otherwise the unit is deleted.
  • Deleting the unit also deletes its prices (cascade).
Part of Set prices and units of sale.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

stockable
string
required

Identifier of the sellable item (stockable): the stockable record of a product variant or of a bundle, not the variant or bundle identifier itself.

unit
string
required

Identifier of the unit of measure (27-character KSUID).

Query Parameters

response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none

Response

204

No Content (response mode none).