Product Receiving Information
The GetProductReceivingInfo endpoint returns product receiving information from the MIMS system.
How to query product receiving information
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/GetProductReceivingInfo |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetProductReceivingInfo" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| BranchNo | String(25) | Yes | External branch code |
| ProductReceivingCode | Integer | No | Product receiving code |
| SalesOrderNo | String(25) | No | External origin sales order code |
| LoadNo | String(25) | No | External origin load code |
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information on method execution |
| ProductReceivingInfoData | GetProductReceivingInfo | Yes | Product receiving information |
📝 GetProductReceivingInfo Object
The GetProductReceivingInfo object represents a product receiving.
Return Parameters
Parameter Type Required Description BranchNo String(25) Yes External branch code ProductReceivingCode Integer Yes Product receiving code ReceivingDate DataHora Yes Product receiving date SalesOrderNo String(25) Yes External origin sales order code LoadNo String(25) Yes External origin load code Status String(2) Yes Product receiving status BeginDate DataHora Yes Product receiving registration start date/time EndDate DataHora Yes Product receiving registration end date/time ItemList ProductReceivingItemList Yes List of objects with receiving item information
📝 ProductReceivingItemList Object
The ProductReceivingItemList object represents a product receiving item.
Return Parameters
Parameter Type Required Description ProductNo String(25) Yes External product code of the receiving ProductName String(40) Yes Product description of the receiving TransferQty Integer Yes Quantity of packages sent CheckedQty Integer Yes Quantity of packages confirmed TransferWeight Float Yes Sent weight ConfirmedWeight Float Yes Confirmed weight
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetProductReceivingInfo"' \
--header 'Content-Type: application/json' \
--data '{
"BranchNo": "02",
"ProductReceivingCode": 11058,
"SalesOrderNo": "9AJLNG",
"LoadNo": "14072020192"
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"BranchNo": "001",
"ProductReceivingCode": 123456,
"ReceivingDate": "2024-02-07T14:30:00",
"SalesOrderNo": "SO-789",
"LoadNo": "LD-456",
"Status": "AP",
"BeginDate": "2024-02-07T15:00:00",
"EndDate": "2024-02-07T16:30:00",
"ItemList": [
{
"ProductNo": "P-001",
"ProductName": "Produto A",
"TransferQty": 100,
"CheckedQty": 95,
"TransferWeight": 500.0,
"ConfirmedWeight": 495.0
},
{
"ProductNo": "P-002",
"ProductName": "Produto B",
"TransferQty": 50,
"CheckedQty": 50,
"TransferWeight": 250.0,
"ConfirmedWeight": 250.0
}
]
}
🐞 Possible Errors
| Code | Message |
|---|---|
| GPR‑001 | The Product Receiving was not found! |