Breadcrumbs

API - Production Output


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.


Endpoint name

outputJournalLines

Source table

WiFi Trade Item Journal Line

Fixed view

None

Requests allowed

GET, POST, PATCH, DELETE

Primary Key

"Journal Template Name", "Journal Batch Name", "Line No."

Record ID

SystemId

Procedures

None. In this version, the line is only inserted, then it needs to be posted from within BC.


Data

Field List

Property

Type

Max Len

Description


systemId

string uuid

GUID

The system id of the record.

Record ID

templateName

string


Needs to exist in the Trade Item Journal Templates list

primary key

batchName

string


Needs to exist in the Trade Item Journal Batches list

primary key

lineNo

integer



primary key

lot

string

20

A production lot


processingStage

string




postingDate

date




processingStage

string




productionDate

date




stockCenterCode

string

20



locationCode

string




itemNumber

string

20

The item needs to be either a WIP item or a Product item.


description

string

100



tradeItems

decimal




tradeItemUnitOfMeasure

string


The unit for the tradeItems value.


quantity

decimal




unitOfMeasure

string


The unit for the quantityvalue.


tradeItemBarcode

string


If the created trade item is to be barcoded.


palletBarcode

string


This pallet needs to exist. First it can be created with the createPallet endpoint.


reserveToType

enum


These fields are used to instantly reserve the created trade item to an agreement.


reserveToNo

string



reserveToLineNo

integer



lastModified

datetime



non-editable

Example Object

Expand to see the example json

An example of one object :

JSON
{
    "systemId": "a1bedbfb-6bf8-f011-b02e-b42d5a9dc7e2",
    "templateName": "OUTPUT",
    "batchName": "BOXES",
    "lineNo": 10000,
    "lot": "LANDING-LOT-1",
    "processingStage": "LANDED",
    "postingDate": "2026-01-22",
    "productionDate": "2025-12-09",
    "stockCenterCode": "FROSTI",
    "locationCode": "BLUE",
    "itemNumber": "0900",
    "description": "Þorskflök",
    "tradeItems": 20,
    "tradeItemUnitOfMeasure": "BOX",
    "quantity": 200,
    "unitOfMeasure": "KG",
    "tradeItemBarcode": "",
    "palletBarcode": "",
    "reserveToType": "Delivery",
    "reserveToNo": "",
    "reserveToLineNo": 0,
    "lastModified": "2026-01-23T14:59:00.827Z"
}


Usage

Create an output journal line

To create a new line in the journal, use POST and all necessary values.

Example:

JSON
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.