Confirm LPN Count

This API allows you to confirm the LPN count. This is if you need to confirm the number of LPNs available in a Reserve Location, so you just need to specify the number of LPNs you see in the location.

URLs

POST .../wms/lgfapi/v10/entity/location/{id}/cc_confirm_lpn_count
Note: that with ID in the URL, there are no request parameters, just options.

OR

POST .../wms/lgfapi/v10/entity/location/cc_confirm_lpn_count

with parameters and options

Request Parameters

Parameters (filters)
  • Only applicable when `id` is not present in the URL.
Name Required Type Default Description
facility_id C Integer

Facility context by id.

one of id or code should be provided

facility_id__code C String

Facility context by code.

one of id or code should be provided

barcode Y String Location user is doing Cycle Count. Must be a reserve location.
  • If facility is provided, set login context accordingly.
  • Only one of `facility_id` or `facility_id__code` may be provided.

Options

Name Required Type Default Description
lpn_count Y integer Number of LPNs in the location
validate_only_flg Y Boolean True or false

Example:

POST .../wms/lgfapi/v10/entity/location/cc_confirm_lpn_coun
{
    "parameters": {
        "facility_id__code": "FAC",
        "barcode": "Location001"
    },
    "options": {
        "lpn_count": 5,
        "validate_only_flg": "Y",
    }
}

Request sent with an ID:

POST .../wms/lgfapi/v10/entity/location/{id}/confirm_lpn_coun
{
    "options": {
        "lpn_count": 5,
        "validate_only_flg": "N",
    }
}

Response

If validate only flag is set to true you will get a Response 200 - OK (No Pagination)

{
    "current_lpn_count": 3
}

If validate only flag is True, you will get a Response 204 and a new record will be added to the module SummaryAuditView.

If Validate only flag is set to true and there is no variance, the system will also write IHT- 38 - Reserve Location Cycle Count Complete.

If validate only flag is set to False, a record is created - Response 204 and new record will be added to the module SummaryAuditViewGroup Number.