Overview
This API returns the Warehouse Receipts which are documents linked to Purchase Orders that are waiting to be received. There are also procedures to post the received items.
|
Endpoint name |
|
|
Source table |
|
|
Fixed view |
No filter |
|
Requests allowed |
GET |
|
Primary Key |
|
|
Record ID |
|
|
Procedures |
Additionally POST requests can be done on a procedure endpoints
|
Data
Field List
|
Property |
Type |
Max Len |
Description |
non-editable |
|
|
string uuid |
|
The system id of the record. |
|
|
|
string |
20 |
No. of the Warehouse Receipt. |
Record ID |
|
|
string |
10 |
Location Code |
|
|
|
string |
|
The type of BC document that is being received, this can be either a Purchase Order, or a Sales return |
|
|
|
Decimal |
20 |
The number of the document |
|
|
|
string |
20 |
Sender of the receipt, this would most of the time be a Vendor number. |
|
|
|
string |
50 |
The name, i.e. usually a vendor name. |
|
|
|
string |
|
The status of the document, it can be Released, Partly Received |
|
|
|
string |
20 |
If the vendor has his own shipment reference. |
|
|
|
date |
|
The expected receipt date, for a Purchase order, else it is blank. |
|
|
|
integer |
|
The number of lines (items) on the warehouse receipt. Usually it matches the lines on the (purchase) document. |
|
|
|
date-time utc |
|
Timestamp for the Warehouse Receipt. |
|
|
|
array |
|
The array that contains the lines of the Warehouse Receipt lines. TODO: Link to the documentation page. |
|
Example Object
Procedures
Service-enabled procedures are the following, see below.
This is exactly what it does behind the scenes, just like a use would be working on the Warehouse Receipt.
-
Removes the Qty to Receive from all lines of the Warehouse Receipt
-
Then finds the line for the given item, updates the Qty to Receive there
-
Update the Bin Code, if given
-
Then posts the receipt, same method as if user would post from BC.
If there are still items to be received, the Warehouse Receipt document remains in the system. Else it will be deleted.
Receive Item
To post the receipt of an item, usually for a Purchase Order in Wisefish, but it could also be a Sales Return Order.
Usage
POST .../warehouseReceipts([number])/Microsoft.NAV.receiveItem
Body:
{
"itemNumber": "[item number]",
"quantity": [quantity],
"lotNo": "[lot number]"
}
Parameters
|
|
The item number. There must be a line on the Warehouse Receipt for this item. |
|
|
How many items to receive in the base unit |
|
|
May be empty if this item is not lot tracked. |
Receive Item To Bin
Same as above, but with a Bin Code. This should be used when the Location requires a Bin.
Usage
POST .../warehouseReceipts([number])/Microsoft.NAV.receiveItemToBin
Body:
{
"itemNumber": "[item number]",
"quantity": [quantity],
"binCode": "[bin code]",
"lotNo": "[lot number]"
}
Parameters
|
|
The item number. There must be a line on the Warehouse Receipt for this item. |
|
|
How many items to receive in the base unit |
|
|
May be empty if this item is not lot tracked. |
|
|
Bin Code, that must exist as a Bin on the Location of the receipt line. |
Example
POST .../warehouseReceipts('RE000014')/Microsoft.NAV.ReceiveItemToBin
Body:
{
"itemNumber": "80216-T",
"quantity": 1,
"binCode": "C",
"lotNo": "25-01"
}