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 |
|
|
Source table |
|
|
Fixed view |
|
|
Requests allowed |
GET, POST, PATCH, DELETE |
|
Primary key |
Code |
|
Record ID |
code |
|
Procedures |
|
Data
Field List
|
Property |
Type |
Format |
Description |
|
|
|
string |
max 10 |
The unique id of this stock center. |
Record ID primary key |
|
|
string |
|
Name |
mandatory |
|
|
string |
uuid |
|
non-editable |
|
|
string |
max 50 |
Address |
optional |
|
|
string |
max 50 |
Address 2 |
optional |
|
|
string |
max 20 |
Post Code |
optional |
|
|
string |
max 30 |
City |
optional |
|
|
string |
max 10 |
Country Code |
optional |
|
|
string |
max 50 |
Contact Name |
optional |
|
|
string |
|
|
optional |
|
|
string |
max 13 |
Global location number (GLN) |
optional |
|
|
string |
uuid |
Stock centers can be linked to a Vendor. Then this field will show the GUID of the Vendor. |
non-editable |
|
|
string |
max 20 |
The number of a linked Vendor |
optional |
|
|
string |
uuid |
Stock centers can be linked to a Customer. Then this field will show the GUID of the Customer. |
non-editable |
|
|
string |
max 20 |
The number of a linked Customer |
optional |
|
|
string |
enum |
Options:
|
optional |
|
|
boolean |
|
Default value is false. |
optional |
|
|
string |
|
Options:
|
optional |
|
|
string |
max 20 |
|
optional |
|
|
string |
enum |
Options:
|
optional |
|
|
boolean |
|
|
optional |
|
|
array |
json |
Certification Programs. This can be added as a child array with
|
|
|
|
string |
date-time |
|
non-editable |
Example Object
Usage
Read all entries
GET
.../stockCenters
Read a specific entry
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.
POST
.../stockCenters([record-id])/Microsoft.NAV.createOriginLot
Body:
{
"description" : [some description],
"lotGroup" : [a code for Lot Group that exists]
}
|
Parameters |
Type |
Max Len |
Description |
|
|---|---|---|---|---|
|
|
string |
20 |
The description to put on the lot.
|
optional |
|
|
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:
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
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 |
|
|---|---|---|---|---|
|
|
string |
20 |
The description to put on the lot.
|
optional |
|
|
string |
20 |
If the lot is to be put into a Lot Group. |
optional |
|
|
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:
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"
}
Create a Pallet
This method is used to create a new entry in the Pallet table, where the barcode is generated according to the settings on the Stock Center.
POST
.../stockCenters([record-id])/Microsoft.NAV.createPallet
Body:
{
"location"; "BLUE",
"fishingTripNo" : [if the pallet should be connected to a fishhing trip]
}
|
Parameters |
Type |
Max Len |
Description |
|
|---|---|---|---|---|
|
|
string |
10 |
If left blank, the Location Code will be taken from the User Profile |
optional |
|
|
string |
20 |
|
optional |
A barcode will be generated and an entry in the Pallet list is created
-
The pallet gets the current Stock Center Code.
-
Location Code must be populated, either with the parameter, or taken from the User Profile of the current user
-
Key Item No. on this pallet is blank, but will be populated when trade items are posted on the pallet.
-
Date Created is set as the date today
-
Status of the pallet is Empty