| GET POST | /Product/BatchNumberGet | Gets information on existing batch numbers | Uses your API Key along with optional Filters, Sorting, and Pagination parameters to retrieve Batch Number information.
If no Filters are provided, all batch numbers will be returned.
- SortBy (string, optional) = ['Undefined', 'ByExpiryDate', 'ByCreationDate', 'ByName']
- Page (int, optional) = Page number starting from 1
- Limit (int, optional) = Maximum number of records per page (max 1000)
A. Return all batch numbers (no filters) with default sorting and pagination
Value:
{
"Page": 1,
"Limit": 100
}
Response:
{
"mvBatchNumbers": [
{
"BatchNumberId": 503,
"BatchNumberName": "BatchA",
"ProductId": 7571,
"InventoryLocationId": 6770,
"DateCreated": "/Date(1727691143980-0000)/",
"ExpiryDate": "/Date(1725397200000-0000)/",
"TotalBatchNumberQTY": 0,
"BatchNumberInventoryLocationName": "Paris Warehouse",
"BatchNumberProductSKU": "SKU-ABC123",
"BatchNumberArchiveFlag": false,
"BatchNumberProductDescription": "Premium Face Cream 50ml"
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
B. Return batch numbers with a BatchNumberName of either "BatchA" or "BatchB" sorted by Expiry Date, page 2 with 50 results per page
Value:
{
"SortBy": "ByExpiryDate",
"Page": 2,
"Limit": 50,
"Filters": [
{
"FieldName": "BatchNumberName",
"SearchOperator": "Equals",
"SearchValue": "BatchA"
},
{
"AndOr": "Or",
"FieldName": "BatchNumberName",
"SearchOperator": "Equals",
"SearchValue": "BatchB"
}
]
}
Response:
{
"mvBatchNumbers": [
{
"BatchNumberId": 503,
"BatchNumberName": "BatchA",
"ProductId": 7571,
"InventoryLocationId": 6770,
"DateCreated": "/Date(1727691143980-0000)/",
"ExpiryDate": "/Date(1725397200000-0000)/",
"TotalBatchNumberQTY": 0,
"BatchNumberInventoryLocationName": "Paris Warehouse",
"BatchNumberProductSKU": "SKU-ABC123",
"BatchNumberArchiveFlag": false,
"BatchNumberProductDescription": "Premium Face Cream 50ml"
},
{
"BatchNumberId": 341,
"BatchNumberName": "BatchB",
"ProductId": 7571,
"InventoryLocationId": 6770,
"DateCreated": "/Date(1725280940387-0000)/",
"ExpiryDate": "/Date(1727643600000-0000)/",
"TotalBatchNumberQTY": 10,
"BatchNumberInventoryLocationName": "Paris Warehouse",
"BatchNumberProductSKU": "SKU-ABC123",
"BatchNumberArchiveFlag": false,
"BatchNumberProductDescription": "Premium Face Cream 50ml"
},
{
"BatchNumberId": 347,
"BatchNumberName": "BatchB",
"ProductId": 7572,
"InventoryLocationId": 6770,
"DateCreated": "/Date(1725281874650-0000)/",
"ExpiryDate": "/Date(1727643600000-0000)/",
"TotalBatchNumberQTY": 0,
"BatchNumberInventoryLocationName": "Paris Warehouse",
"BatchNumberProductSKU": "SKU-XYZ789",
"BatchNumberArchiveFlag": false,
"BatchNumberProductDescription": "Vitamin D3 Supplement 30caps"
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|
|---|