Overview
This API is for posting output on Production Lots. Lines are created into the Trade Item Output 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 |
max 10 |
Needs to exist in the Trade Item Journal Templates list |
primary key |
|
|
string |
max 10 |
Needs to exist in the Trade Item Journal Batches list |
primary key |
|
|
integer |
|
Line number |
primary key |
|
|
string |
max 20 |
The production lot |
MANDATORY |
|
|
string |
max 20 |
Processing stage |
MANDATORY |
|
|
sting |
date |
The posting date, if skipped it will get a default value. |
optional |
|
|
string |
date |
The posting date, if skipped it will get a default value, but this should rather be given for every request. |
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 |
The item needs to be either a WIP item or a Product item. |
MANDATORY |
|
|
string |
max 100 |
|
optional |
|
|
number |
|
|
MANDATORY |
|
|
string |
max 10 |
The unit for the |
optional |
|
|
number |
|
|
optional |
|
|
string |
max 10 |
The unit for the |
optional |
|
|
string |
max 10 |
If the created trade item is to be barcoded. |
optional |
|
|
string |
max 20 |
This pallet needs to exist. First it can be created with the |
optional |
|
|
string |
enum |
These fields are used to instantly reserve the created trade item to an agreement.
reservetoNo is then the delivery agreement no. reserveToLineNo is the line number on the agreement |
optional |
|
|
string |
max 20 |
optional |
|
|
|
integer |
|
optional |
|
|
|
string |
date-time |
|
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.