Get Item Master
Returns Logic ERP's item master: one record per item code (each size or pack of an item), with its names, shade, company, item groups, rates, conversion factors, HSN code, stock levels, dimensions, barcodes, images and custom fields. Use it to load the full item list into your system once, and then to pick up items created or changed in a period, or to fetch particular items by code.
Endpoint
Address
https://your-server/api/GetItemMaster
Method
POST
Authorization
Basic Auth
The response and the common request fields are explained in How Every API Call Works. This endpoint differs from that page in several ways – read the rules below: the period is the item's created / modified date, Doc_Codes can be item codes or barcodes, there are no date checks, and an empty request returns every item.
Request fields
GlobalModifyCode
number
No
0
Change-log bookmark. 0 = do not use the change log. A number above 0, or -1, = fetch from the change log (see the known issue below).
DateFrom
date (yyyy-MM-dd)
No
empty
Start of a period. Items created or modified on or between DateFrom and DateTo are returned. Used only when both dates are valid dates.
DateTo
date (yyyy-MM-dd)
No
empty
End of the period (inclusive).
Doc_Codes
text
No
""
Particular items, separated by commas with no spaces, for example "435,436". What the values mean depends on the Get Items By setting of your API site: Logic ERP's internal item code (ItemDetailCode, the default), the item's user code (UserCode), or its additional item code / barcode (AddlItemCode). Send "" rather than null.
responseType
text
No
""
"N" returns items grouped (item name without shade → shades → sizes) instead of one flat record per item code. Only works when your API site's response layout is left at Default; if your site has a layout chosen, that layout is always used and this field is ignored.
DisplayError
text
No
"0"
"1" adds technical detail to Message, for your support team.
Branch_Codes_From and Doc_Num_Like are not used by this endpoint – the item master is the same for every branch.
Rules Logic ERP applies
Which filter wins. Logic ERP reads the request in this order and uses the first that applies:
GlobalModifyCodeabove0, or-1withDoc_Codesempty → the change log (anyDoc_Codesyou sent is replaced).Both
DateFromandDateToare valid dates → the period, by the item's created or modified date.Doc_Codesis ignored – and so is the change-log result of step 1, if you also sent a bookmark (see the known issue below).Doc_Codesis filled → those items only.Nothing of the above → every item in the item master, in one response.
No date checks. Unlike most Pull endpoints, a missing, empty or invalid date gives no error message: the period is simply not applied.
DateFromwith"DateTo": nulltherefore returns the whole item master. Always send both dates, asyyyy-MM-dd.No batch limit for a period, a
Doc_Codeslist or the full list – everything that matches comes back in one response.Large requests are slow. Each item code takes a moment to assemble, so one day of changes can be several thousand items and take several minutes (tens of MB). The full item master takes far longer and will usually hit your HTTP timeout. Ask for short periods (one day, or less if you change many items at once) or for particular items with
Doc_Codes, and set a generous timeout on your side.No fixed order. Records are not sorted; do not rely on their order.
A period request, a
Doc_Codesrequest and the full list all returnLastGlobalModifyCodeas0.Only approved items are returned. Items still awaiting approval are left out.
Inactive items are included. Check the six
InActive_For_…flags to see what an item is blocked for.One record per item code. An item made in several sizes or packs gives one record per size / pack; the item and shade details repeat on each.
Filters set on your API site are always applied on top of your request: your support team can limit the item master to chosen item groups, companies and item types.
Fields can be switched off. Your API site can be set up to return only some fields; fields not on its list are left out of every record.
Barcodes:
AddlItemCodeholds the main additional code;ListEANCodelists every barcode stored for the item code, usually includingAddlItemCodeitself.Empty values: an item group level that is not used comes back as
"". An item with no company comes back withComp_NameandComp_Short_Nameas"(NIL)". Some text fields (Remarks_1,Remarks_2,Extra_1…3) can come back as a single space" "when blank – trim them.Dates in the response are text in the server's short date format, day first and without time – for example
31/01/2026or31/01/26. Parse both forms.
Known issue – fetching by change log. With
GlobalModifyCodeabove0or-1, Logic ERP currently matches the change-log line numbers against item codes, so you get the wrong items: items whose internal code happens to equal a line number (sometimes a full batch of unrelated items), or "Item Not Found...".LastGlobalModifyCodestill moves on, so the real changes are skipped. With-1, Logic ERP also does not remember what it sent, so each call starts from the same place. Until this is fixed, fetch changes by period ("GlobalModifyCode": 0withDateFromandDateTo).
Known issue – bookmark together with dates. If you send a
GlobalModifyCodeabove0and both dates, the period decides which items come back, butLastGlobalModifyCodestill moves on as if the change log had been used. Do not send a bookmark and dates in the same request.
Example request
All items created or modified on 29 September 2026 (keep periods short – see the rules above):
Two items by their internal item code:
Test it
Send a request to the Logic ERP sandbox (a test company) from this page: open the block below, enter the sandbox user name and password (ask your Logic ERP support team), change the request if you like, and press Test it. The example asks for one item by its internal number, which answers in seconds; a period of several days can take minutes and may not finish here. Do not send "GlobalModifyCode": -1 here – it changes what the sandbox has marked as already sent.
Returns Logic ERP's item master: one record per item code (each size or pack of an item), with its names, shade, company, item groups, rates, conversion factors, HSN code, stock levels, dimensions, barcodes, images and custom fields. Use it to load the full item list into your system once, and then to pick up items created or changed in a period, or to fetch particular items by code.
The user name and password of your API site.
Change-log bookmark. 0 = do not use the change log. A number above 0, or -1, = fetch from the change log (see the known issue below).
Start of a period. Items created or modified on or between DateFrom and DateTo are returned. Used only when both dates are valid dates.
End of the period (inclusive).
Particular items, separated by commas with no spaces, for example "435,436". What the values mean depends on the Get Items By setting of your API site: Logic ERP's internal item code (ItemDetailCode, the default), the item's user code (UserCode), or its additional item code / barcode (AddlItemCode). Send "" rather than null.
"N" returns items grouped (item name without shade → shades → sizes) instead of one flat record per item code. Only works when your API site's response layout is left at Default; if your site has a layout chosen, that layout is always used and this field is ignored.
"1" adds technical detail to Message, for your support team.
Always HTTP 200. Check Status, Message and GetData.
See the Status rules on this page and on How Every API Call Works.
Why the call failed, or a note. The reason may be followed by technical detail - read the first line.
The change-log bookmark (see How Every API Call Works).
Size of the answer, for example "2 KB".
No login was sent.
POST /api/GetItemMaster HTTP/1.1
Host: demo.logicerp.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"GlobalModifyCode": 0,
"DateFrom": null,
"DateTo": null,
"Doc_Codes": "86"
}{
"GetData": [
{
"ItemNameWOShade": "text",
"ItemNameWithShade": "text",
"Addl_Item_Name": "text",
"Item_Description": "text",
"Comp_Name": "text",
"Comp_Short_Name": "text",
"Raw_Or_Finish": "text",
"Shade_Name": "text",
"Shade_Short_Name": "text",
"ItemDetailCode": 1,
"UserCode": "text",
"AddlItemCode": "text",
"PackCode": 1,
"PackName": "text",
"PackGroupName_1": "text",
"PackGroupName_2": "text",
"Packing": "text",
"CF_1": 1,
"CF_2": 1,
"CF_3": 1,
"CF_Desc_1": "text",
"CF_Desc_2": "text",
"CF_Desc_3": "text",
"BasicRate": 1,
"PurRate": 1,
"SaleRate": 1,
"MRP": 1,
"Sp_Rate1": 1,
"Sp_Rate2": 1,
"Sp_Rate3": 1,
"Sp_Rate4": 1,
"Sp_Rate5": 1,
"Group_Name1": "text",
"Group_Name2": "text",
"Group_Name3": "text",
"Group_Name4": "text",
"Group_Name5": "text",
"Group_Name6": "text",
"Group_Name7": "text",
"Group_Name8": "text",
"Group_Name9": "text",
"Group_Name10": "text",
"Group_Name11": "text",
"Group_Name12": "text",
"Group_Name13": "text",
"Group_Name14": "text",
"Group_Name15": "text",
"Group_Name16": "text",
"Group_Name17": "text",
"Group_Name18": "text",
"Group_Name19": "text",
"Group_Name20": "text",
"Group_Name21": "text",
"Group_Name22": "text",
"Group_Name23": "text",
"Group_Name24": "text",
"Group_Name25": "text",
"Group_Name26": "text",
"Group_Name27": "text",
"Group_Name28": "text",
"Group_Name29": "text",
"Group_Name30": "text",
"Group_Short_Name1": "text",
"Group_Short_Name2": "text",
"Group_Short_Name3": "text",
"Group_Short_Name4": "text",
"Group_Short_Name5": "text",
"Group_Short_Name6": "text",
"Group_Short_Name7": "text",
"Group_Short_Name8": "text",
"Group_Short_Name9": "text",
"Group_Short_Name10": "text",
"Group_Short_Name11": "text",
"Group_Short_Name12": "text",
"Group_Short_Name13": "text",
"Group_Short_Name14": "text",
"Group_Short_Name15": "text",
"Group_Short_Name16": "text",
"Group_Short_Name17": "text",
"Group_Short_Name18": "text",
"Group_Short_Name19": "text",
"Group_Short_Name20": "text",
"Group_Short_Name21": "text",
"Group_Short_Name22": "text",
"Group_Short_Name23": "text",
"Group_Short_Name24": "text",
"Group_Short_Name25": "text",
"Group_Short_Name26": "text",
"Group_Short_Name27": "text",
"Group_Short_Name28": "text",
"Group_Short_Name29": "text",
"Group_Short_Name30": "text",
"HSN_Code": "text",
"Days_To_Expire": 1,
"Mfg_Name": "text",
"Flag": "text",
"CreateDate": "text",
"ModifyDate": "text",
"Item_Description_2": "text",
"Item_Description_3": "text",
"Remarks_1": "text",
"Remarks_2": "text",
"InActive_For_SL": true,
"InActive_For_PU": true,
"InActive_For_SR": true,
"InActive_For_PR": true,
"InActive_For_PO": true,
"InActive_For_SO": true,
"Min_Level": 1,
"RO_Level": 1,
"Max_Level": 1,
"Weight": 1,
"Weight_In": "text",
"Length": 1,
"Length_In": "text",
"Breadth": 1,
"Breadth_In": "text",
"Height": 1,
"Height_In": "text",
"Thickness": 1,
"Thickness_In": "text",
"Extra_1": "text",
"Extra_2": "text",
"Extra_3": "text",
"ItemNameCode": 1,
"ItemHDCode": 1,
"ColorCode": 1,
"ListImages": [
{}
],
"ListEANCode": [
"text"
],
"ListCustomFields": [
{
"FieldName": "text",
"FieldValue_1": "text",
"FieldValue_2": "text",
"FieldCode": 1
}
]
}
],
"Status": true,
"Message": "text",
"LastGlobalModifyCode": 1,
"resultSize": "text"
}Response fields
Flat layout (default) – one GetData record per item code
ItemNameWOShade
text
Item name without the shade.
ItemNameWithShade
text
Item name including the shade, as shown in Logic ERP.
Addl_Item_Name
text
Additional item name.
Item_Description
text
Main item description.
Item_Description_2
text
Second item description. null when the item has no descriptions recorded.
Item_Description_3
text
Third item description. null when the item has no descriptions recorded.
Comp_Name
text
Company (brand) name. "(NIL)" when the item has no company.
Comp_Short_Name
text
Company short name. "(NIL)" when the item has no company.
Raw_Or_Finish
text
Whether the item is a raw material or a finished item, as recorded on the item – for example FI / FIN for finished, RA / RAW for raw.
Shade_Name
text
Shade (colour) name. Empty when the item has no shade.
Shade_Short_Name
text
Shade short name.
ItemDetailCode
number
Logic ERP's internal code of this item code (size / pack). Unique per record.
UserCode
text
The item code users see and type in Logic ERP.
AddlItemCode
text
Additional item code, usually the EAN barcode.
PackCode
number
Logic ERP's internal code of the pack / size.
PackName
text
Pack or size name, for example 6 (39).
PackGroupName_1
text
Pack group the size belongs to. null when none.
PackGroupName_2
text
Parent group of that pack group. null or "" when none.
Packing
text
Packing unit, for example PAIR, PCS.
CF_1, CF_2, CF_3
number
Conversion factors 1–3: how many base units make one of the alternate unit named in the matching CF_Desc_…. 1 when not used (the matching CF_Desc_… is then empty).
CF_Desc_1, CF_Desc_2, CF_Desc_3
text
Name of the alternate unit for each conversion factor, for example BOX.
BasicRate
number
Basic rate of the item.
PurRate
number
Purchase rate.
SaleRate
number
Sale rate.
MRP
number
Maximum retail price (₹).
Sp_Rate1 … Sp_Rate5
number
Special rates 1–5, as named in your Logic ERP setup.
Group_Name1 … Group_Name30
text
Item group at each of the 30 group levels, as configured in your Logic ERP – what each level means depends on your company's setup. "" when the level is not used.
Group_Short_Name1 … Group_Short_Name30
text
Short name of the item group at each level.
HSN_Code
text
HSN code of the item. "" when not set.
Days_To_Expire
number
Shelf life in days. 0 when not used.
Mfg_Name
text
Manufacturer name.
Flag
text
Last change recorded for the item: N = new, M = modified, D = deleted. Empty when no change is recorded.
CreateDate
text
Date the item code was created, day first, for example 31/01/2026 or 31/01/26. "" when not recorded.
ModifyDate
text
Date the item code was last modified, same form. "" when not recorded.
Remarks_1, Remarks_2
text
Remarks entered on the item. Can be " " when blank.
InActive_For_SL
true / false
true when the item is blocked for sale bills.
InActive_For_PU
true / false
true when blocked for purchases.
InActive_For_SR
true / false
true when blocked for sale returns.
InActive_For_PR
true / false
true when blocked for purchase returns.
InActive_For_PO
true / false
true when blocked for purchase orders.
InActive_For_SO
true / false
true when blocked for sale orders.
Min_Level
number
Minimum stock level.
RO_Level
number
Re-order level.
Max_Level
number
Maximum stock level.
Weight
number
Weight of one pack.
Weight_In
text
Unit of Weight, as entered on the item. "(NIL)" when not set.
Length, Breadth, Height, Thickness
number
Pack dimensions.
Length_In, Breadth_In, Height_In, Thickness_In
text
Unit of each dimension: MM, CM, METER or FT (Breadth_In can also be INCH). null when not set.
Extra_1, Extra_2, Extra_3
text
Extra item parameters 1–3, as named in your Logic ERP setup. Can be " " when blank.
ItemNameCode
number
Internal number – ignore.
ItemHDCode
number
Internal number – ignore.
ColorCode
number
Internal number – ignore.
ListImages
list of text
Web links of the item's images, in display order. Only images that have a web link stored are listed. Images belong to the item-with-shade, so every size of it shows the same list. These can differ from the addresses given by Get Item Images.
ListEANCode
list of text
Every barcode stored for this item code, usually including AddlItemCode itself.
ListCustomFields
list
Custom fields defined for the item master – see below.
Known issue – units in inches. Only
Breadth_InshowsINCH. For an item measured in inches,Length_In,Height_InandThickness_Income back asnull. IfBreadth_InisINCH, assume the other dimensions are in inches too.
ListCustomFields
FieldName
text
Name of the custom field. Every visible custom field is listed, even when the item has no value.
FieldValue_1
text
Value entered for this item. null when none.
FieldValue_2
text
Second value of the field, where the field has one. null when the field has no value for this item; "" when only the first value is filled.
FieldCode
number
Internal number – ignore.
Grouped layout (responseType "N", or chosen on your API site)
Each GetData record is one item, with its shades and sizes nested inside. With responseType "N" the top level is the item name without shade (all shades inside). A layout chosen on your API site can instead make the top level the item name with shade (one shade inside).
ItemCode
number
Logic ERP's internal code of the item at the top level.
ItemName
text
Item name at the top level.
ListShades
list
The item's shades – see below.
ListShades: ItemNameWithShadeCode (number, Logic ERP's internal code of the item-with-shade), ItemNameWithShade, Addl_Item_Name, Item_Description, Item_Description_2, Item_Description_3, Comp_Name, Comp_Short_Name, Raw_Or_Finish, Shade_Name, Shade_Short_Name, Group_Name1…30, Group_Short_Name1…30, HSN_Code, the six InActive_For_… flags, ListImages, and ListSize – same meanings as in the flat layout.
ListSize: ItemDetailCode, UserCode, AddlItemCode, PackCode, PackName, PackGroupName_1, PackGroupName_2, Packing, CF_1…3, CF_Desc_1…3, BasicRate, PurRate, SaleRate, MRP, Sp_Rate1…5, Days_To_Expire, Mfg_Name, CreateDate, ModifyDate, Remarks_1, Remarks_2, Min_Level, RO_Level, Max_Level, Weight, Weight_In, the four dimensions and their units, Extra_1…3, ListEANCode – same meanings as in the flat layout.
In the grouped layout these fields are present but not filled: the six
InActive_For_…flags are alwaysfalse;Days_To_ExpireandWeightare always0;Mfg_Name,Packing,Weight_InandPackGroupName_2are alwaysnull.FlagandListCustomFieldsare not returned. Use the flat layout if you need them.
Example response
Flat layout, one record. Group_Name5…30 and Group_Short_Name5…30 are left out of this example to keep it short; the real response always has all 30.
Messages you may see
Item Not Found... (with Status: true)
No item matched the request. GetData is null.
Nothing new – call again later. If you expected items, check the dates and Doc_Codes.
Request cannot be processed. API Template is marked as In-Active in the configuration. (with Status: false)
The item master endpoint is switched off for your API site.
Ask your Logic ERP support team.
Object reference not set to an instance of an object. (with Status: false)
The item master settings of your API site have not been saved.
Ask your Logic ERP support team to save the Item Master settings for your API site.
Invalid column name '…' (with Status: false), where … is a value you sent
A value in Doc_Codes is not a number while your API site gets items by Logic ERP's internal item code.
Send numbers only, or ask support which code your site expects.
No answer before your timeout
The request matched too many items (a long period, or no filter at all).
Ask for a shorter period or for particular items with Doc_Codes.
Error messages with Status: false can carry technical detail around the reason – read the first line and look for the reason quoted above.
Last updated