Skip to main content

Create Item

Endpoint: POST /items

Authentication: Bearer Token (required)

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication. Format: Bearer <token>
Content-TypestringYesMust be application/json

Request Body

The request body must be a JSON object with the following structure:

FieldTypeRequiredDescription
namestringYesName of the item (e.g., "Tissues")
itemCodestringYesUnique code identifying the item (e.g., "010")
itemGroupstring or nullNoItem group classification. Use null if not applicable
uomstringYesUnit of measure (e.g., "Nos", "Kgs", "Ltrs")
valuationMethodstringYesInventory valuation method. Supported values: "MAVG" (Moving Average), "FIFO", "LIFO", "STANDARD"
maintainStockbooleanYesWhether to track stock levels for this item
allowNegativeStockbooleanYesWhether negative stock levels are allowed
qtynumberYesInitial quantity of the item in stock
unitPricestringYesSelling price per unit as a string (e.g., "5")
coststringYesCost per unit as a string (e.g., "4")
companyIdStringstringYesUUID of the company that owns this item

Example Request Body

{
"name": "Tissues",
"itemCode": "010",
"itemGroup": null,
"uom": "Nos",
"valuationMethod": "MAVG",
"maintainStock": true,
"allowNegativeStock": false,
"qty": 100,
"unitPrice": "5",
"cost": "4",
"companyIdString": "{{companyId}}"
}