Overview
The API returns the inventory of items that are Trade Items. No data update is allowed.
Trade Items are items that have the field “Trade Item Type” populated. The options are:
-
Raw Material
-
WIP
-
Product
|
Endpoint name |
|
|
Source table |
|
|
Fixed view |
The endpoint only lists item that are still in inventory, so to ensure that, there is a fixed filter on empty Closing Type:
|
|
Requests allowed |
GET |
|
Primary key |
|
|
Record ID |
|
|
Procedures |
None |
Data
Field List
|
Property |
Type |
Max Len |
Description |
|
|
|---|---|---|---|---|---|
|
1 |
|
guid |
|
They systemID of the entry. |
Record ID |
|
2 |
|
string |
20 |
Each trade item was created for a specific Stage. |
primary key |
|
3 |
|
Integer |
|
Within each stage, the trade items are numbered with a sequential number. |
primary key |
|
4 |
|
string |
20 |
Every trade item is a unique “individual” of a standard BC item. |
|
|
5 |
|
string |
50 |
Description of the Trade Item. |
|
|
6 |
|
enum |
|
Blank if it is a standard item, if not blank, it is a “trade item”. Options:
|
|
|
7 |
|
string |
10 |
|
|
|
8 |
|
string |
50 |
Description from the Item card. |
|
|
9 |
|
string |
20 |
Every trade item is a unique “individual” of a standard BC item. |
|
|
10 |
|
string |
30 |
ADD ? |
|
|
11 |
|
string |
20 |
|
|
|
12 |
|
string |
20 |
|
|
|
13 |
|
decimal |
|
|
|
|
14 |
|
string |
10 |
|
|
|
15 |
|
decimal |
|
|
|
|
16 |
|
string |
10 |
|
|
|
17 |
|
decimal |
|
|
|
|
18 |
|
string |
10 |
|
|
|
19 |
|
decimal |
|
|
|
|
20 |
|
decimal |
|
|
|
|
21 |
|
string |
??? |
|
|
|
22 |
|
string |
??? |
|
|
|
23 |
|
string |
??? |
|
|
|
24 |
|
string |
??? |
|
|
|
25 |
|
boolean |
|
Shows if this inventory has been fully posted to BC Item Ledger Entries |
|
|
26 |
|
enum |
|
|
|
|
27 |
|
date |
|
|
|
|
28 |
|
date |
|
|
|
|
29 |
|
date |
|
|
|
|
30 |
|
string |
10 |
|
|
|
31 |
|
string |
10 |
|
|
|
32 |
|
date-time |
|
|
|
Example Object
{
"@odata.etag": "W/\"JzIwOzE1MjY5MDk1ODAyNDQ4Mzc5OTM3MTswMDsn\"",
"systemId": "e996b124-3003-f011-b01d-f992b2580806",
"stage": "PRODUCTION",
"lineNo": 64,
"itemNo": "70064",
"description": "Cod - raw material",
"type": "Raw Material",
"lot": "LOT0051",
"itemDescription": "Cod - raw material",
"variantCode": "SV-0002",
"locationCode": "BLUE",
"stockCenterCode": "BLA",
"tradeItems": 500,
"tradeItemUnitOfMeasure": "KG",
"tradeItemsBase": 500,
"tradeItemBaseUnitOfMeasure": "KG",
"quantity": 500,
"unitOfMeasure": "KG",
"quantityBase": 500,
"qtyPerUnitOfMeasure": 1,
"palletBarcode": "",
"palletNo": "",
"physicalPalletID": "",
"tradeItemBarcode": "",
"status": "Posted in (BC inv.)",
"holdStatus": " ",
"postingDateInbound": "2025-03-17",
"productionDate": "2025-03-17",
"expirationDate": "0001-01-01",
"zoneCode": "",
"binCode": "",
"lastModified": "2025-03-26T10:11:17.52Z"
}
Usage
Trade Items in stock on specific Location
To get the inventory on Location BLUE this request will do:
GET ../inventoryTradeItems?$filter=locationCode eq 'BLUE'