Unblock the Package For Action Command
Actors
- Akinon Order Management System (OMS)
Domain Objects
- Packaging Order
- OMS Command (Packaging Order Command)
Process
The OMS application copies orders from the Akinon Omnitron Application to itself in order to prepare delivery/distribution plans, generate packaging orders, and transfer them to operation points.
The products in the order are distributed to the Packaging Orders by running the rules in the distribution scenarios designated by the brand.
Packaging Orders are transferred to the Akinon Instore App or the brand’s integrated software. (Packaging Orders Webhooks)
Packaging orders assigned to the Store/Warehouse commence in the Waiting status.
To unblock a Blocked package, the package status is updated to one of the following by running the UNBLOCK_THE_PACKAGE command:
- Waiting
- Waiting Remote Action
- Preparing
- Ready for Packaging
This enables the package to be processed once again.
- After running the command, the package status must be one of the following:
- Waiting
- Waiting Remote Action
- Preparing
- Ready for Packaging
Running the command in other states will trigger a validation error.
Command Parameters and Prerequisites
For each packaging order:
- Packaging Order ID (integer – dynamic for each order)
- Command Transition ID (integer prepared and reported during OMS installation)
- slug (string - unique for each state transition - Either slug or Command Transition ID is required)
This command may only be executed for Blocked packaging orders. Running the command in other states will trigger a validation error.
Regardless of scenarios, the process of lowering and raising quotas continues, the quota amount continues to increase and decrease on a location basis. However, for these alterations to impact planning, the scenario rules must have the SELECT_BY_QUOTA value.
The maximum quota value specifies how many packages can be created from the respective location. The quota value is a user-unspecified parameter used for monitoring the maximum quota value and performing increase or decrease operations.
max_quota - quota = available_quota
If the available_quota value is 0, no packages can be created. (To encounter this scenario, the SELECT_BY_QUOTA value must be chosen in the scenario rules.)
For packages with a status below 400 and in the cancellation_waiting state, the quota value increases by 1. (During this stage, when the package is in the waiting state, the quota amount is considered to increase by 1.)
Upon packaging a package, the quota value decreases by 1. Consequently, the available_quota increases, enhancing the likelihood of packaging from the respective location.
In the event of a package cancellation, the quota amount decreases by 1 in a similar way.
POST
Unblock the Package For Action
Path: https://{customer_api_url}-oms.akinon.net/api/v1/oms/packages/{package_id}/command/
Request Header
{
"Authorization": "Token <token>"
}
Request Parameters
- transition: XXX (set after OMS installation)
- slug: SSS (Unique Slug Value)
- input_parameters: Field for the barcode and order_item_id values of the package products. For this command, this field can be an empty dictionary as shown below.
Request Body
{
"transition": XXX,
"slug": SSS,
"input_parameters": {}
}
Successful Response
Status Code: 204 No Content