API - Output Entries


Overview

This is a list (query) of the trade items that have been produced (output) in production or repacking. One row is one produced trade item, i.e. one trade item ledger entry with creation type Production or Repacking.

The list includes produced trade items regardless of whether they are still in stock or have been closed (e.g. sold or consumed again).

The query has no totals, so to get the total output of a production lot, sum weight, tradeItems or quantityBase over the rows of that lot. Together with consumptionentries this can be used for production reports (input vs. output) and traceability.

Endpoint name

outputEntries

Source table

API query on WiFi Trade Item Ledger Entry

Fixed view

Only produced trade items are listed, so there is a fixed filter on Creation Type: "Creation Type" = filter(Production | Repacking)

Requests allowed

GET

Object Type

Query

Primary key

None (query)

Record ID

None (query)

Procedures

None

Note: productionStage and tradeItemStage both come from the field Stage and always have the same value.


Data

Field List

Property

Type

Format

Description


1

productionLot

string

max 20

The lot of the produced trade item (field Trade Item Lot Code).


2

productionStage

string

max 20

The stage the trade item was produced in (field Stage).


3

productionDate

string

date

Production Date of the produced trade item.


4

postingDate

string

date

Date when the output was posted (field Posting Date (Inbound)).


5

itemNo

string

max 20

Item number of the produced item.


6

itemDescription

string

max 100

Item description.


7

itemType

string

enum

Item type of the item. Options: (blank), Raw Material, WIP, Product


8

weight

number

decimal

Recorded weight of the produced trade item, in the base weight unit (field Weight (Recorded BWU)).


9

tradeItems

number

decimal

Number of trade items produced. The trade item unit can be different for each item.


10

tradeItemUnit

string

max 10

Trade item unit of measure (field TI UoM Code).


11

quantityBase

number

decimal

Quantity produced, in base unit of measure (field Quantity (Base)).


12

unitOfMeasureCode

string

max 10

Unit of Measure Code from the ledger entry.


13

tradeItemBarcode

string

max 22

Barcode of the produced trade item.


14

tradeItemStage

string

max 20

Stage of the trade item (field Stage; same value as productionStage). Together with tradeItemLineNo it identifies the trade item ledger entry.


15

tradeItemLineNo

integer


Line No. of the trade item (field Line No.). Together with tradeItemStage it identifies the trade item ledger entry.


Object Example

JSON
{
    "productionLot": "LOT0206",
    "productionStage": "PRODUCED",
    "productionDate": "2026-04-09",
    "postingDate": "2026-04-09",
    "itemNo": "70064",
    "itemDescription": "Salmon Pack of 3 boxes",
    "itemType": "Product",
    "weight": 6,
    "tradeItems": 1,
    "tradeItemUnit": "STK",
    "quantityBase": 3,
    "unitOfMeasureCode": "BOKS",
    "tradeItemBarcode": "",
    "tradeItemStage": "PRODUCED",
    "tradeItemLineNo": 65
}

Examples

Read output entries

All output entries

Returns every produced trade item. The response is a list of objects as shown in Object Example.

JSON
GET /api/wisefish/base/v1.0/companies({companyId})/outputEntries

Output of a production lot

Lists the trade items produced in production lot LOT0206.

JSON
GET .../outputEntries?$filter=productionLot eq 'LOT0206'

Response (shortened to one entry):

JSON
{
    "@odata.context": "https://containers.wisefish.com/BC/api/wisefish/base/v1.0/$metadata#companies(f5a90234-4e79-f111-b037-cca9ad943c7c)/outputEntries",
    "value": [
        {
            "productionLot": "LOT0206",
            "productionStage": "PRODUCED",
            "productionDate": "2026-04-09",
            "postingDate": "2026-04-09",
            "itemNo": "70064",
            "itemDescription": "Salmon Pack of 3 boxes",
            "itemType": "Product",
            "weight": 6,
            "tradeItems": 1,
            "tradeItemUnit": "STK",
            "quantityBase": 3,
            "unitOfMeasureCode": "BOKS",
            "tradeItemBarcode": "",
            "tradeItemStage": "PRODUCED",
            "tradeItemLineNo": 65
        }
    ]
}

Filter and select

Output of an item in a period

Lists output of item 70064 posted in April 2026.

JSON
GET .../outputEntries?$filter=itemNo eq '70064' and postingDate ge 2026-04-01 and postingDate le 2026-04-30

Selected fields only

Returns only the production lot, item and quantities of produced products, e.g. for a production yield report.

JSON
GET .../outputEntries?$filter=itemType eq 'Product'&$select=productionLot,itemNo,weight,tradeItems,tradeItemUnit