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 |
Max Len |
Description |
|
|
|
string |
10 |
The unique id of this stock center. |
Record ID primary key |
|
|
string |
|
Name |
mandatory |
|
|
string (UUID) |
|
|
non-editable |
|
|
string |
50 |
Address |
optional |
|
|
string |
50 |
Address 2 |
optional |
|
|
string |
20 |
Post Code |
optional |
|
|
string |
30 |
City |
optional |
|
|
string |
10 |
Country Code |
optional |
|
|
string |
50 |
Contact Name |
optional |
|
|
string |
|
|
optional |
|
|
string |
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 |
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 |
20 |
The number of a linked Customer |
optional |
|
|
string (enum) |
|
Options:
|
optional |
|
|
boolean |
|
Default value is false. |
optional |
|
|
string |
|
Options:
|
optional |
|
|
string |
20 |
|
optional |
|
|
string (enum) |
|
Options:
|
optional |
|
|
boolean |
|
|
optional |
|
|
array |
|
Certification Programs. This can be added as a child array with
|
|
|
|
string (datetime) |
|
|
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"
}