Skip to content

Unit Master

GET    /api/unit-master
GET    /api/unit-master/{id}
POST   /api/unit-master
PUT    /api/unit-master/{id}
DELETE /api/unit-master/{id}

Required privilege: Unit Master / View (read) ยท Unit Master / Edit (write)

Defines the units of measure used across items and orders (e.g., EA, KG, L, M).


Unit Object

{
  "id": 1,
  "Unit Code": "EA",
  "Unit Name": "Each",
  "Unit Type": "Count"
}

POST - Create Unit

POST /api/unit-master HTTP/1.1
Content-Type: application/json
X-XSRF-TOKEN: <csrf>

{
  "Unit Code": "BOX",
  "Unit Name": "Box",
  "Unit Type": "Count"
}