Replenish to Active
The replenish_to_active API allows you to complete an open replenishment task for an active location.
You can replenish to active with the following POST request:
POST .../lgfapi/v10/replenishment/replenish_to_active/
Parameters
The following table provides details about the Input Parameters/Filters:
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. |
- Used if the replenishment is in a context other than the requesting user's default.
- The requesting user's default facility/company context will be assumed if values are not provided.
- Either "facility_id" or "facility_id__code" may be used, but not both.
- Either "company_id" or "company_id___code" may be used, but not both.
The following table details the functional options:
Name | Required | Type | Default | Description |
---|---|---|---|---|
task_id | C | integer | "id" of task to be completed. | |
task_id__task_nbr | C | string | Business key for task to be completed. | |
replen_location_id | C | integer | "id" of active location to be replenished. | |
replen_location_id__barcode | C | string | Barcode of active location to be replenished | |
qty | decimal | Allocation Qty | Quantity to replenish. |
- Either "task_id" or "task_id__task_nbr" is required.
- Either "replen_location_id" or "replen_location_id__barcode" is required.
- If 'qty' is not provided, the full allocation quantity of the associated
allocation will be used.
- If 'qty' is provided, it must be greater than 0.
The following is an example body for Replenish Location ID Barcode:
{
"facility_id": 1,
"company_id_code": "COMPANY",
"task_id": 1,
"replen_location_id__barcode": "LOCN1"
}
Track User Activity
If you have purchased WFM (Oracle Workforce Management), you can also send user activity data using the following parameters in the Replenish to Active API
- Screen_name: Name of the application or screen in the external system that was used by the user to complete the open replenishment task.
- Begin_ts: Time at which the user started executing the task.
- End_ts: Time at which the user completed the task.
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.
Request Body with User Activity Data
{
"facility_id": 1,
"company_id_code": "COMPANY",
"task_id": 1,
"replen_location_idbarcode": "LOCN1",
"begin_ts": "2024-05-27T18:30:00",
"end_ts": "2024-05-27T18:45:00",
"screen_name": "Replen To Active Screen"
}