Stock Category
Group stock items into categories for reporting and filtering.
Path Parameter:
:CODE (string) — the category code in the URL pathEndpoints
GET
/stockcategoryList stock categories with pagination and filters
GET
/stockcategory/:CODEGet a single stock category by code
POST
/stockcategoryCreate a new stock category
PUT
/stockcategory/:CODEUpdate a stock category by code
DELETE
/stockcategory/:CODEDelete a stock category by code
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| code | string | Yes | Category code. Proven: "SC-01". |
| description | string | Yes | Category name. Proven: "Raw Materials". |
Examples
POST — Create Stock Category
POST /stockcategory
{
"code": "SC-01",
"description": "Raw Materials"
}GET — List with Filter
GET /stockcategory?offset=0&code=SC-01DELETE
DELETE /stockcategory/SC-01
Response: "OK" (plain text)