GET Inventory History
The Inventory History API allows you to query inventory histories for default Companies and Facilities configured for the user. Previously, inventory history was not supported or exposed as an entity in lgfapi. Now, users can fetch the inventory history as an entity since it has been exposed to the lgfapi.
You can get inventory history details with paginated results using the following GET request:
GET....../entity/inventory_history
To fetch non-paginated result by specific 'ID':
GET....../entity/inventory_history/{id}
To fetch paginated result by query string parameters:
GET....../entity/inventory_history?key1=value1&key2=value2
To check for object existence or modification:
HEAD .../entity/inventory_history?key1=value1&key2=value2
HEAD .../entity/inventory_history/{id}
Query String Parameters
Since inventory history is a large table, to avoid performance issues, certain combinations of query string fields are required when querying using query parameters. One of the following combinations must be used (in addition to any other field):
- company_id__code, facility_id__code, group_nbr
- company_id__code, facility_id__code, history_activity_id, status_id
- company_id__code, facility_id__code, history_activity_id, item_code
- company_id__code, facility_id__code, history_activity_id, item_alternate_code
- company_id__code, facility_id__code, history_activity_id, container_nbr
Support for ISO-8601 Format Date/Time Values
Type | Format | Example |
---|---|---|
Date | yyyy-mm-dd | 2020-08-01 |
Time | HH:MM:SS | 15:01:30 |
Datetime | yyyy-mm-ddTHH:MM:SSz | 2020-08-0IT15:01:30-04:00 |
Format | Definition |
---|---|
YYYY | 4 digit year |
MM | 2 digit month |
DD | 2 digit day |
T | The literal letter "T" used as a delimeter between the date and time components. |
HH | 2 digit hour (24-hour clock) |
MM | 2 digit minute |
SS | 2 digit seconds |
z | Time zone offset from UTC in the format (+/-)HH:MM |