POST Product/ProductLotNumberValidation
Returns the list of Products passed in, showing lot number warn types and whether lot numbers are allowed.
Request Information
URI Parameters
Body Parameters
List of Product identifiers; either a ProductGuid or both DepartmentId and ProductId.
Collection of ClsProductToCheckName | Description | Type | Additional Information |
---|---|---|---|
ProductGuid |
The unique identifier for a product |
globally unique identifier |
Either ProductGuid or the DepartmentId and ProductId must be populated |
DepartmentId |
Department ID of the product |
string |
Either this and ProductId or else the ProductGuid must be populated Max length: 6 |
ProductId |
ID of the product |
string |
Either this and DepartmentId or else the ProductGuid must be populated Max length: 10 |
Request Formats
application/json, text/json
[ { "ProductGuid": "540a078e-4b59-48c4-8ae2-923d669ccf86", "DepartmentId": "sample string 3", "ProductId": "sample string 4" }, { "ProductGuid": "540a078e-4b59-48c4-8ae2-923d669ccf86", "DepartmentId": "sample string 3", "ProductId": "sample string 4" } ]
application/xml, text/xml
<ArrayOfClsProductLotTracking.ClsProductToCheck xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory"> <ClsProductLotTracking.ClsProductToCheck> <DepartmentId>sample string 3</DepartmentId> <ProductGuid>540a078e-4b59-48c4-8ae2-923d669ccf86</ProductGuid> <ProductId>sample string 4</ProductId> </ClsProductLotTracking.ClsProductToCheck> <ClsProductLotTracking.ClsProductToCheck> <DepartmentId>sample string 3</DepartmentId> <ProductGuid>540a078e-4b59-48c4-8ae2-923d669ccf86</ProductGuid> <ProductId>sample string 4</ProductId> </ClsProductLotTracking.ClsProductToCheck> </ArrayOfClsProductLotTracking.ClsProductToCheck>
application/x-www-form-urlencoded
Response Information
Resource Description
Returns the list of Products passed in, showing lot number warn types and whether lot numbers are allowed.
AgvProductLotValidationName | Description | Type | Additional Information |
---|---|---|---|
Status |
0 - Success; 1 - An error occurred; 2 - An error occurred; 3 - Descriptive message, process was successful |
string | |
Message |
Informational message that corresponds to the Status returned; 0 - Message will be "OK"; 1 - Detailed message returned to give user an indication of what went wrong; 2 - Less detailed message returned that may not mean anything to the user but that the application might use to take a corrective action; 3 - Not an error but something the user might need to know |
string | |
Count |
Number of results returned |
string | |
ProductLotValidations |
List of Products that match the Products in the request with lot number validation settings |
Collection of ClsProductLotValidation |
Response Formats
application/json, text/json
{ "Status": "sample string 1", "Message": "sample string 2", "Count": "2", "ProductLotValidations": [ { "DisallowLotNumbers": true, "MissingLotNumWarnType": "sample string 2", "InvalidLotNumWarnType": "sample string 3", "ProductGuid": "6714cdd4-b557-415f-958a-8c185713950b", "DepartmentId": "sample string 6", "ProductId": "sample string 7" }, { "DisallowLotNumbers": true, "MissingLotNumWarnType": "sample string 2", "InvalidLotNumWarnType": "sample string 3", "ProductGuid": "6714cdd4-b557-415f-958a-8c185713950b", "DepartmentId": "sample string 6", "ProductId": "sample string 7" } ] }
application/xml, text/xml
<AgvProductLotValidation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Product"> <Message>sample string 2</Message> <ProductLotValidations xmlns:d2p1="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory"> <d2p1:ClsProductLotValidation> <d2p1:DepartmentId>sample string 6</d2p1:DepartmentId> <d2p1:ProductGuid>6714cdd4-b557-415f-958a-8c185713950b</d2p1:ProductGuid> <d2p1:ProductId>sample string 7</d2p1:ProductId> <d2p1:DisallowLotNumbers>true</d2p1:DisallowLotNumbers> <d2p1:InvalidLotNumWarnType>sample string 3</d2p1:InvalidLotNumWarnType> <d2p1:MissingLotNumWarnType>sample string 2</d2p1:MissingLotNumWarnType> </d2p1:ClsProductLotValidation> <d2p1:ClsProductLotValidation> <d2p1:DepartmentId>sample string 6</d2p1:DepartmentId> <d2p1:ProductGuid>6714cdd4-b557-415f-958a-8c185713950b</d2p1:ProductGuid> <d2p1:ProductId>sample string 7</d2p1:ProductId> <d2p1:DisallowLotNumbers>true</d2p1:DisallowLotNumbers> <d2p1:InvalidLotNumWarnType>sample string 3</d2p1:InvalidLotNumWarnType> <d2p1:MissingLotNumWarnType>sample string 2</d2p1:MissingLotNumWarnType> </d2p1:ClsProductLotValidation> </ProductLotValidations> <Status>sample string 1</Status> </AgvProductLotValidation>