Remove a unit of measure from an item
Removes a conversion unit from an item. The base unit cannot be removed, and a unit that is still the default for purchasing, selling, receiving or counting must have that role cleared first.
How to use it
- Check the unit with List an item's units of measure; it must not be the base unit.
- If the unit is a purchase, sell, receive or count default, move that default to another unit with Update an item's unit of measure first.
- Remove it; the unit can no longer be used for this item until added again.
BearerAuthAuthorizationBearer <JWT>itemId*stringItem code, from List items.
uomId*stringUnit to remove, as uomId from List an item's units of measure.
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.
curl -X DELETE 'https://beta.iotoms.com/api/v1/catalog/items/string/uoms/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'X-TenantID: your-tenant-code'{ "status": "string", "message": "string", "data": {}}