Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Go to Support > REST Testing Tool > Find “Retrieve Stock LotNo Quantity”

Notes:

  • This service can only retrieve product stock quantity that was lot controlled enabled. If not, then user will receive an error message: "No results found for search criteria"

  • If the product has multiple LotNumber assigned, then the result stock quantity will be separated by LotNumber.

HTTP
Method

/<service>/<version>/<parameters>

GET

/stock/v3/lotnoquantity

...

JSON Format

Body

N/A

Example success Response Body

{
"CallStatus": {
"Success": true,
"Code": 0,
"Message": ""
},
"List": {
"StockLotNoQuantityLineItem": [
{
"LotNumber": "22",
"ProductCode": "AFG_Sample_Lot1",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 92
},
{
"LotNumber": "13",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 100
},
{
"LotNumber": "25",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 10
},
{
"LotNumber": "27",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 95
},
{
"LotNumber": "28",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 10
},
{
"LotNumber": "4",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 5
},
{
"LotNumber": "55",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 10
},
{
"LotNumber": "65",
"ProductCode": "AFG_Sample_Lot2",
"DCCode": "DCCL01",
"LocationType": "Available Stock",
"Quantity": 10
}
]
}
}

Example failure Response Body

{
"CallStatus": {
"Success": false,
"Code": 100,
"Message": "No results found for search criteria"
}
}

Notes:

...

This service will only retrieve product stock quantity that was lot controlled enabled. If not, then user will receive an error message: "No results found for search criteria"

...