Breadcrumbs

API - Stock Centers


Overview

The list page that contains the Stock Centers of Wisefish. All Trade Items must belong to a stock center at every point of time.

Endpoint name

stockCenters

Source table

WiFi Stock Center

Fixed view


Requests allowed

GET, POST, PATCH, DELETE

Primary key

Code

Record ID

code

Procedures

createOriginLot

createProductionLot


Data

Field List

Property

Type

Max Len

Description


code

string 

10

The unique id of this stock center.

Record ID

primary key

name

string


Name

mandatory

systemId

string (UUID)



non-editable

address

string

50

Address

optional

address2

string

50

Address 2

optional

postCode

string

20

Post Code

optional

city

string

30

City

optional

countryCode

string

10

Country Code

optional

contact

string

50

Contact Name

optional

eMail

string


Email

optional

gln

string

13

Global location number (GLN)

optional

vendorId

string (UUID)


Stock centers can be linked to a Vendor. Then this field will show the GUID of the Vendor.

non-editable

vendorCode

string

20

The number of a linked Vendor

optional

customerId

string (UUID)


Stock centers can be linked to a Customer. Then this field will show the GUID of the Customer.

non-editable

customerCode

string

20

The number of a linked Customer

optional

stockCenterType

string (enum)


Options:

  • (blank) - this is the default

  • External Producer

  • 3rd Party Producer

optional

itemMixOnPalletAllowed

boolean


Default value is false.

optional

palletBarcodeUsage

string


Options:

  • SSCC (GS1)

  • Not Used

optional

ssccAllocationCode

string

20


optional

certificationProcess

string (enum)


Options:

  • No Certification

  • Single Certification

  • Multiple Certifications"

optional

transferCertificateRequired

boolean



optional

certificationPrograms

array


Certification Programs.

This can be added as a child array with
?$expand=certificationPrograms


lastModified

string (datetime)



non-editable


Example Object

Expand to see the example json

An example of one object :

JSON
{
    "code": "OWN",
    "systemId": "04daea07-a0a1-ef11-b017-aa2d6f3d6955",
    "address": "Katrínartún 4",
    "address2": "",
    "postCode": "105",
    "city": "Reykavik",
    "countryCode": "IS",
    "contact": "",
    "eMail": "",
    "gln": "0000123456784",
    "vendorId": "00000000-0000-0000-0000-000000000000",
    "vendorCode": "",
    "customerId": "00000000-0000-0000-0000-000000000000",
    "customerCode": "",
    "stockCenterType": " ",
    "itemMixOnPalletAllowed": true,
    "palletBarcodeUsage": "SSCC (GS1) Nos.",
    "ssccAllocationCode": "OUR",
    "certificationProcess": "Single Certification",
    "transferCertificateRequired": false,
    "lastModified": "2025-12-15T11:54:10.823Z"
}


Usage

Read all entries

JSON
GET
.../stockCenters

Read a specific entry

JSON
GET
.../stockCenters('INSIDE')


Create a Lot for Stock Center

The number series for production lot is on the stock center, therefore it has procedures to create lots, either an origin lot or a production lot.

Create an origin Lot

Usually origin lots are created automatically by the system when received items are posted, but they could also be made beforehand.

JSON
POST
.../stockCenters([record-id])/Microsoft.NAV.createOriginLot

Body:
{
    "description" : [some description],
    "lotGroup" : [a code for Lot Group that exists]
}

Parameters

Type

Max Len

Description


description

string

20

The description to put on the lot.
If skipped, it will be set as “Origin Lot”

optional

lotGroup

string

20

If the lot is to be put into a Lot Group.

optional

An entry in the table Lot is created, and the number is shown in the value property of the response .

Example:

JSON
POST .../stockCenters('OWN')/Microsoft.NAV.createOriginLot
{
    "description" : "Received items",
    "lotGroup" : "WEEK-1"
}

Response:
{
    "@odata.context": "https://containers.wisefish.com/BC/api/wisefish/base/v1.0/$metadata#Edm.String",
    "value": "Lot LOT0206 created"
}


Create a production Lot

JSON
POST
.../stockCenters([record-id])/Microsoft.NAV.createProductionLot

Body:
{
    "description" : [some description],
    "lotGroup" : [a code for a Lot Group that exists]
    "startingDate": [a date]
}

Parameters

Type

Max Len

Description


description

string

20

The description to put on the lot.
If skipped, it will be set as “Production Lot”

optional

lotGroup

string

20

If the lot is to be put into a Lot Group.

optional

startingDate

date


The starting date of the lot.

mandatory

An entry in the table Lot is created, and the number is shown in the value property of the response .

Example:

JSON
POST .../stockCenters('OWN')/Microsoft.NAV.createOriginLot
{
    "startingDate": "2025-12-02",
    "description": "Production 2nd Dec - 2",
    "lotGroup": "Arna"
}

Response:
{
    "@odata.context": "https://containers.wisefish.com/BC/api/wisefish/base/v1.0/$metadata#Edm.String",
    "value": "Lot LOT0207 created"
}