Get the results of the stock on hand report
Body·
application/json
- Type: string | nullattribute
Description The product attribute description to filter by
- Type: string | nullbatch
The product batch to filter by
- Type: string | nullFormat: datebest
Before Date The product best before date to filter by
- Type: string | nullFormat: uuidclient
Partner Id The client partner to filter by
- Type: string | nullFormat: datecustom
Date Time The custom date and time the report should be run for
- Type: string | nullFormat: dateexpiry
Date The product expiry date to filter by
- Type: booleaninclude
Critical Stock Only If the report should only include critical stock
- Type: booleaninclude
Serials If the report should include serials
- Type: string | nullFormat: datepackaging
Date The product packaging date to filter by
- Type: string | nullFormat: uuidpartner
Product Id The product to filter by
- Type: string | nullFormat: uuidproduct
Attribute Id The product attribute to filter by
- Type: string | nullFormat: dateproduction
Date The product production date to filter by
Responses
- application/json
Request Example for post/v1/reports/stock-on-hand
curl https://api.consignlyhq.com/v1/reports/stock-on-hand \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"reportTime": "enum (Now = 1, Custom = 2)",
"customDateTime": "datetime (YYYY-MM-DDTHH:MM:SSZ)",
"clientPartnerId": null,
"warehouseId": null,
"partnerProductId": null,
"batch": null,
"bestBeforeDate": "date (YYYY-MM-DD)",
"expiryDate": "date (YYYY-MM-DD)",
"packagingDate": "date (YYYY-MM-DD)",
"productionDate": "date (YYYY-MM-DD)",
"sellByDate": "date (YYYY-MM-DD)",
"includeSerials": true,
"includeCriticalStockOnly": true,
"productAttributeId": null,
"attributeDescription": null
}'
[
{
"warehouseCode": null,
"warehouseName": null,
"warehouseLocationName": null,
"clientName": null,
"productCode": null,
"productName": null,
"logisticUnit": {
"logisticUnitNumber": null,
"ssccNumber": null,
"referenceNumber": null
},
"serial": null,
"batch": null,
"bestBeforeDate": "date (YYYY-MM-DD)",
"expiryDate": "date (YYYY-MM-DD)",
"packagingDate": "date (YYYY-MM-DD)",
"productionDate": "date (YYYY-MM-DD)",
"sellByDate": "date (YYYY-MM-DD)",
"attributes": [
{
"name": null,
"description": null
}
],
"isCritical": true,
"productGroupName": null,
"unitTypeName": null,
"onHandQuantity": 1,
"onHandVolumeM3": 1,
"onHandWeightKG": 1,
"onHandVirtualPalletQuantity": 1
}
]