Stock Category

Group stock items into categories for reporting and filtering.

Path Parameter::CODE (string) — the category code in the URL path

Endpoints

GET
/stockcategory

List stock categories with pagination and filters

GET
/stockcategory/:CODE

Get a single stock category by code

POST
/stockcategory

Create a new stock category

PUT
/stockcategory/:CODE

Update a stock category by code

DELETE
/stockcategory/:CODE

Delete a stock category by code

Fields

FieldTypeRequiredNotes
codestring
Yes
Category code. Proven: "SC-01".
descriptionstring
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-01

DELETE

DELETE /stockcategory/SC-01

Response: "OK" (plain text)