Skip to main content

Items

Products and services.

EndpointPermissionNotes
GET /masterdata/getItems/{gtimeStamp?}any roleReturns Item[], each with the current stockBalance for stocked items.
GET /masterdata/getItem/{itemId}Item · ReadReturns an Item, or 404.
POST /masterdata/upsertItemItem · WriteJSON body: an Item. itemId and itemName are required. Item names must be unique; a duplicate returns 400.
POST /masterdata/upsertItemwFileItem · WriteMultipart with images — see Uploading files.
DELETE /masterdata/deleteItem/{itemId}Item · FullAn item with transactions cannot be deleted (409).
POST /masterdata/deleteItemsItem · FullBody: JSON array of item IDs. Returns partial-success details if some fail.

upsertItem response:

{ "item": { "itemId": "...", "itemName": "..." }, "status": "Success" }
curl -X POST "$BASE_URL/masterdata/upsertItem" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "8f14e45f-ceea-467a-9575-7d1b6c1a2b33",
"itemName": "Widget A",
"itemCode": "WID-A",
"salesFlag": true,
"purchaseFlag": true,
"salesRate": 500,
"purchaseRate": 350,
"inventoryFlag": true,
"taxId": "TAX_ID_FROM_getTaxes",
"isActive": true
}'

Data model​

Only the commonly used properties are listed. Unless marked required, every property is optional. Properties that the server sets itself (bizId, createdBy, modifiedBy, app, and creation/modification timestamps) should be left out of requests. The OpenAPI document has the complete definitions.

Item​

PropertyTypeNotes
itemIdstringRequired. Caller-generated unique ID.
itemNamestringRequired. Unique within the business.
itemCode, barcodestring
itemTypstringGoods or service type.
itemTxt, salesDesc, purchaseDescstringDescriptions.
salesFlag, purchaseFlagbooleanWhether the item can be sold / bought.
salesRate, purchaseRate, mrpnumber
salesAcct, purchaseAcctstringAccount IDs.
taxIdstringDefault tax.
taxCalcTypestringInclusive or Exclusive.
uomIdstringUnit of measure ID.
secondaryUomId, conversionFactorstring, numberSecondary unit of measure.
inventoryFlagbooleantrue to track stock.
openingStockQuantity, openingStockPrice, openingStockDatenumber, number, dateOpening stock.
reorderQuantitynumber
stockBalancenumberRead-only. Current stock, returned by getItems.
itemCategory, itemGroupstring
inHsnCode, inSacCodestringIndia HSN/SAC codes.
isActivebooleanSet false to archive; archived items cannot be added to new transactions.
subItemsobject[]Components, for bundled items.
customFieldsobject[]User-defined fields.