Delete a unit of measure
DELETE
Deletes a unit of measure. Returns 409 UOM_IN_USE if any item still references it.
How to use it
- Get the unit ID from List units of measure and check inUse is false.
- The unit is removed permanently; if any item still uses it the call returns 409 UOM_IN_USE, so deactivate it with Update a unit of measure instead.
BearerAuthheader
AuthorizationBearer <JWT>id*stringID of the record (UUID).
Format
uuidX-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when it worked, ERROR when it failed.
message*stringShort human-readable message describing the outcome, for example "Vendor created". Do not parse it.
data?|Endpoint-specific payload: null when there is nothing to return (e.g. after removing a unit); for credit note PDFs it holds returnId, creditNoteNumber, templateId, templateVersion, pdfUrl and generatedAt.
Example Request
curl -X DELETE 'https://beta.iotoms.com/api/v1/catalog/uom/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": {}}