Pack Inventory
The Pack Inventory API allows you to pack inventory based on the source OBLPN (from OBLPN), item, quantity and the destination OBLPN (to OBLPN) information you send. In repack pack inventory, the system currently allows sending only one packing detail per request.
URL
POST.../lgfapi/v10/repack/pack_inventory
Request Level Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
facility_id | Integer | Facility context by id | ||
facility_id__code | String | Facility context by code | ||
company_id | Integer | Company context by id | ||
company_id__code | String | Company context by code | ||
restrict_multiorder_combine_flg | Boolean | False |
When 'False', destination OBLPN can be repacked from source OBLPNs having different orders. When 'True', destination OBLPN can't be repacked from source OBLPN having different orders and the destination OBLPN will always have inventory corresponding to a single order |
|
suppress_serial_warning_flg | Boolean | True |
When 'True', system will not validate serial number validations that are of type warning When 'False', both validations of type warning and error will be treated as errors |
|
from_oblpn_nbr | X | String |
OBLPN/temporary tote that is going to be repacked. |
|
item_alternate_code | C | string | Item identifier | |
item_barcode | C | string | Item identifier | |
qty | X | number | 0 |
If short_flg is false, Quantity to be packed into destination OBLPN from source OBLPN If short_flg is true, Quantity to be shorted in source OBLPN |
allocation_uom | string | "UNITS", "PACKS", "CASES", LPNS" | ||
uom_qty | number | Provides the inventory/standard pack qty or case qty when
allocation_uom is 'PACKS' or 'CASES' Gor FULL LPN type: quantity can be <= to the total quantity of the source OBLPN, since user may be packing into multiple to OBLPNs. |
||
batch_nbr | C | string | Inventory batch/lot - should be provided if the inventory to be packed has batch number | |
expiry_date | C | date | Expiry date of inventory present in the picked OBLPN (From OBLPN). Format - YYYY-MM-DD. Should be provided if the inventory to be packed has expiry date | |
invn_attr_a to invn_attr_o |
C | string | Inventory attributes A to O specified on the inventory. Should be provided if the inventory to be packed has inventory attributes | |
serial_nbr_list | C | list | List of serial numbers for the inventory packed (single SKU can have multiple serial numbers) | |
to_oblpn_nbr | X | string | Destination OBLPN where contents are going to be packed into. The "to_oblpn_nbr" will be the new destination OBLPN that will be substituted in place of the "orig_to_oblpn_nbr" | |
orig_to_oblpn_nbr | string | This field will be used for substitution of destination OBLPN (to OBLPN.) The orig_to_oblpn_nbr" will be the final OBLPN number that has been suggested by the system and will be the OBLPN that is going to be substituted | ||
to_oblpn_lpn_type | string | LPN Type for the destination OBLPN (to OBLPN) | ||
packing_station_barcode | string | Packing station location identifier, location barcode to be provided. | ||
short_flg | Boolean | False |
short_flg = false; quantity provided will be Packed. short_flg= true; quantity provided will be shorted. |
- Destination OBLPN (to OBLPN) is updated to status “In Packing”
- System reduces the packed quantity for the source LPN based on the quantity packed
- System increases the packed quantity for the destination OBLPN based on the quantity packed
- IHT 10 container detail packed is written for the destination OBLPNs being packed
- IHT 85 order detail status change and IHT 20 order status change is written for the orders associated with the OBLPNs that are being packed
- If the complete source OBLPN is packed into destination OBLPN, the source OBLPN is moved into cancelled status and IHT 32 OB container cancelled is written for the source OBLPN
- Based on the Expiry Date/inventory attribute/batch number values passed in the request, system packs the respective inventory from the source OBLPN into destination OBLPN
- If OBLPN type is provided, destination OBLPN must be updated with that LPN type, volume for the OBLPN is calculated based on the LPN type dimensions and the existing dimensions for the OBLPN are cleared
- WMS activity is written for the packing activity being done
Sample JSON Request
{
"facility_id__code": "FAC",
"company_id": 1,
"restrict_multiorder_combine_flg": True,
"from_oblpn_nbr": "TMPOBLPN0001",
"item_alternate_code": "ITEM0001",
"qty": 5,
"batch_nbr":"B1",
"expiry_date": "2024-02-24",
"invn_attr_a" : "TESTA",
"invn_attr_b" : "TESTB",
"invn_attr_c" : "TESTC",
"invn_attr_d" : "TESTD",
"invn_attr_e" : "TESTE",
"invn_attr_f" : "TESTF",
"invn_attr_g" : "TESTG",
"invn_attr_h" : "TESTH",
"invn_attr_i" : "TESTI",
"invn_attr_j" : "TESTJ",
"invn_attr_k" : "TESTK",
"invn_attr_l" : "TESTL",
"invn_attr_m" : "TESTM",
"invn_attr_n" : "TESTN",
"invn_attr_o" : "TESTO",
"to_oblpn_nbr": "OBLPN0001",
"to_oblpn_type": "KNMEDBOX1",
"packing_station_barcode": "KNP0101",
"short_flg": false
}
Shorting
If Short flag is set to True, then it should allow:
- Source OBLPN provided by user is considered for shorting
- User must provide source OBLPN, item and quantity to be shorted in the request
- Currently, we are not planning to provide an option for shorting all remaining contents in the source OBLPN (this is to avoid concurrency issues during multiple API requests).
- If the inventory to be shorted has inventory attributes/batch number/expiry date - the respective values should also be provided during shorting, so that the system is aware of exact inventory to be shorted
Sample JSON Request
{
"facility_id__code": "FAC",
"company_id": 1,
"from_oblpn_nbr": "TMPOBLPN0002",
"item_alternate_code": "ITEM0001",
"qty": 2,
"to_oblpn_nbr": "OBLPN0002",
"short_flg": true
}
- In the sample request above, once the request is successfully processed, "TMPOBLPN0002" OBLPN will be shorted by 2 units for "ITEM0001."
Serial Number Support
Serial number is supported during packing through Repack API. This tells you which serial number inventory is packed in the respective request sent. In your request you can send a serial number list. Sending serial numbers during repack API is not mandatory.Sample Request with Serial Number:
{
"facility_id__code": "FAC",
"company_id": 1,
"from_oblpn_nbr": "TMPOBLPN0001",
"item_alternate_code": "ITEM0001S",
"qty":3,
"serial_nbr_list": [ <== Single Inventory can have multiple serial numbers.
"SLN1",
"SLN2",
"SLN3" ],
"to_oblpn_nbr": "OBLPN0001",
"short_flg": false
}
Track User Activity
If you have purchased WFM (Oracle Workforce Management), you can also send user activity data using the following parameters in the Pack Inventory API
- Screen_name: Name of the application or screen in the external system that was used by the user to repack OBLPN.
- Begin_ts: Time at which the user started repacking the OBLPN.
- End_ts: Time at which the user completed the repack.
If all the three parameters are sent in the API, and if WFM is enabled, user activity is written to the WMS Activity view and subsequently interfaced to WFM, enabling you to analyze user productivity through productivity reports in WFM.
- All three parameters must be sent for WMS Activity to be written.
- If WFM is not enabled, WMS Activity is not written even if the three parameters are sent.
- In order for WMS Activity data to interface successfully to WFM, screen_name that is sent in the API has to be configured as a screen in WMS using an RF module and mapped to a work area activity in WFM.
- Screen_name sent on the API is also written on the corresponding IHTs that are written with this API.
- If only screen_name is sent without begin_ts and end_ts, the screen_name is written on the IHT, even if WFM is not enabled.
- Begin_ts and End_ts cannot be greater than the current timestamp of the facility in the API.
- WMS Activity is not written if short_flg is true.
Request Body with User Activity Data
{
"facility_id": 101,
"company_id": 102,
"from_oblpn_nbr": "TMPOBLPN0001",
"item_alternate_code": "ITEM0001",
"qty": 5,
"to_oblpn_nbr": "OBLPN0001",
"begin_ts": "2024-05-27T18:30:00",
"end_ts": "2024-05-27T18:45:00",
"screen_name": "Repack OBLPN Screen"
}