Overview
This API is for posting the consumed items on Production Lots. Lines are created into the Trade Item Consumption Journal, linked to a specific production Lot. Then a user within BC needs to review the journal and post manually
If a more automated process for inventory changes is required, use the MES Transactions. See chapter Manufacturing Execution System (MES)
|
Endpoint name |
|
|
Source table |
|
|
Fixed view |
None |
|
Requests allowed |
GET, POST, PATCH, DELETE |
|
Primary Key |
"Journal Template Name", "Journal Batch Name", "Line No." |
|
Record ID |
|
|
Procedures |
None. In this version, the line is only inserted, then it needs to be posted from within BC. |
Data
Field List
Some fields are marked mandatory may be skipped in the request, without getting an error, but when the line is going to be posted, the posting method will return an error.
|
Property |
Type |
Format |
Description |
|
|
|
string |
uuid |
The system id of the record. |
Record ID |
|
|
string |
|
Needs to exist in the Trade Item Journal Templates list |
primary key |
|
|
string |
|
Needs to exist in the Trade Item Journal Batches list |
primary key |
|
|
integer |
|
Line number |
primary key |
|
|
date |
|
The posting date, if skipped it will get a default value. |
optional |
|
|
string |
max 20 |
The production lot |
MANDATORY |
|
|
string |
|
The processing stage to post the consumption on. |
MANDATORY |
|
|
string |
max 20 |
Stock Center, must match the lot, if lot lot has specific stock center. |
MANDATORY |
|
|
string |
max 10 |
Location Code |
MANDATORY |
|
|
string |
max 20 |
To relate to a specific trade item, the Stage |
optional |
|
|
Integer |
|
To relate to a specific trade item, the line number |
optional |
|
|
string |
max 22 |
If the created trade item is to be barcoded. |
optional |
|
|
string |
max 20 |
The item needs to be either a WIP item or a Product item. |
MANDATORY |
|
|
string |
max 100 |
Description |
optional |
|
|
number |
|
Number of trad items |
MANDATORY |
|
|
string |
max 10 |
The unit for the |
optional |
|
|
number |
|
Quantity, if given the number of trade items will be calculated. |
optional |
|
|
string |
max 10 |
The unit for the |
optional |
|
|
string |
date-time |
Timestamp of last modification |
non-editable |
Example Object
Usage
Create an output journal line
To create a new line in the journal, use POST and all necessary values.
Example:
POST .../outputJournalLines
{
"templateName": "OUTPUT",
"batchName": "BOXES",
"lineNo": 30000,
"lot": "LANDING-LOT-1",
"processingStage": "LANDED",
"postingDate": "2026-01-20",
"productionDate": "2026-01-18",
"stockCenterCode": "FROSTI",
"locationCode": "BLUE",
"itemNumber": "0900",
"tradeItems": 20
}
→ Next step - or any time it suits the user - this journal needs to be posted.