Split LPN
The Split LPN API allows you to split an Inbound LPN (IBLPN) into multiple LPNs.
URL
URL to Split an IBLPN into using IBLPN’s ID
POST .../wms/lgfapi/v10/entity/iblpn/{id}/split_lpn/
URL to Split an IBLPN into using IBLPN Number
POST .../wms/lgfapi/v10/entity/iblpn/split_lpn/
Request Parameters
parameters
| Field Name | Type | Required | Description |
| iblpn_nbr | String | Yes |
Source IBLPN number from where inventory will be moved. Note: If you are splitting an IBLPN using
IBLPN's ID, then parameters (iblpn_nbr) are not required to pass
in the payload.
|
options
| Field Name | Type | Required | Description |
| company_id | Integer | Yes | Company context by id |
| facility_id | Integer | Yes | Facility context by id |
| auto_generate_lpn | Boolean (True/False) | No |
This field allows to auto generate "To LPN" numbers. If this is set to “True”, then do not provide to_lpn to any of the to_lpn_list. |
| prevent_split_when_unlock_on_locate | Boolean (True/False) | No | If this is set to “True”, the system prevents LPNs with an LPN lock code (enabled with the flag “Unlock on Locate to Reserve”) from being split or combined until putaway is completed. |
| to_lpn_list | Array | Yes | List of Destination LPNs to where inventory will be moved. For details, refer to the "to_lpn_list" section. |
to_lpn_list
| Field Name | Type | Required | Description |
| to_lpn_nbr | String | Conditional | Destination LPN |
| item_code | String | No | |
| expiry_date | Date | Conditional | Expiry date of item. Format is "YYYY-MM-DD" example: 2010-11-01 |
| inv_attr_x (x varies from ‘a’ to ‘o’) | String | Conditional | Target attribute value for inventory attributes a to o. |
| uom_code | String | Yes | "units", "packs", or "cases" |
| batch_nbr | String | Conditional | Lot Number (Batch number) |
| qty | Number | Yes | Inventory quantity |
| alloc_info_list | Array | Yes |
List of fields for identifying allocation for the inventory. If inventory has allocations, the alloc_info_list is required and only allocations of type distribution are supported. |
alloc_info_list
| Field Name | Type | Required | Description |
| facility_code | String | Conditional | Destination Facility code. Store number is required for allocation type distribution. |
| wave_nbr | String | No | Default to empty. It will be used for strict matching. |
| order_nbr | String | Conditional | If store number is not provided, order number is required. |
| order_seq_nbr | Integer | Conditional | If order number is sent, this is required. |
Sample Payload
{
"parameters": {
"iblpn_nbr": "LPN0"
},
"options": {
"company_id": "369",
"facility_id ": "648",
"auto_generate_lpn": "False",
"prevent_split_when_unlock_on_locate": "False",
"to_lpn_list": [
{
"to_lpn_nbr": "LPN1",
"inv_list": [
{
"item_code": "ABC",
"batch_nbr": "BAT1",
"expiry_date": "2024-12-31",
"invn_attr_a": "",
"invn_attr_b": "",
"invn_attr_c": "",
"invn_attr_d": "",
"invn_attr_e": "",
"invn_attr_f": "",
"invn_attr_g": "",
"invn_attr_h": "",
"invn_attr_i": "",
"invn_attr_j": "",
"invn_attr_k": "",
"invn_attr_l": "",
"invn_attr_m": "",
"invn_attr_n": "",
"invn_attr_o": "",
"qty": 10,
"uom_code": "UNITS",
"alloc_info": {
"facility_code": "facility01"
}
},
{
"item_code": "ABC",
"batch_nbr": "BAT2",
"expiry_date": "2025-01-01",
"invn_attr_a": "A1",
"invn_attr_b": "B1",
"invn_attr_c": "C1",
"qty": 15,
"uom_code": "UNITS"
}
]
},
{
"to_lpn_nbr": "LPN2",
"inv_list": [
{
"item_code": "DEF",
"invn_attr_a": "A1",
"invn_attr_b": "B1",
"invn_attr_c": "C1",
"qty": 20
}
]
}
]
}
}
Sample Response
200 OK