Transfer Out Of Stock
Actors
- Akinon Order Management System (OMS)
Domain Objects
- Transfer Order
- OMS Command (Transfer Order Command)
Process
The OMS application copies orders from the Akinon Omnitron Application to itself to prepare delivery/distribution plans, generate packaging orders and transfer them to operation points.
In cases where the products in the package are not in stock, the transfer scenario added by the customer is executed, and transfer orders are created. (optional)
Thanks to these transfer orders, products that are not in stock can be transferred from a transfer center (a warehouse or store capable of performing transfer operations) to the departure location of the package.
Transfer Orders are transferred to the Akinon Instore App or the customer’s integrated software. (Transfer Orders Webhooks)
The resulting transfer orders begin their life in a “Waiting” status.
If any product within the transfer order is not found in the inventory of the transfer center or if the product to be transferred is defective, the transfer cannot be carried out.
This situation is reported to the OMS application by the staff at the transfer center with the command
TRANSFER_OUT_OF_STOCK
.After this command is executed, the relevant transfer order and transfer items are marked as
out-of-stock
, and all transfer items within the transfer order are replanned.When transfer items are marked as `out-of-stock' and replanned, they are not reassigned to the same transfer center. Depending on the stock status, they are assigned to another location.
Transfer items that are not marked as
out-of-stock
can be reassigned to the same transfer center when replanned.
Command Parameters and Prerequisites
For each Transfer Order:
- Transfer Order ID (integer – dynamic for each order)
- Command Transition ID (integer – constant – prepared and reported during OMS installation)
- Command Slug (string - unique - dynamic for each command)
If this command is run before a transfer order is moved to the “Waiting” status, a validation error will be triggered.
POST
Transfer Out Of Stock
Path: https://<customer>.omnitron.akinon.net/api/v1/oms/transfer_orders/<transferOrder_id>/command/
- transition: The ID of the command to be executed.
- slug: The unique value associated with the command to be executed. It is different for each command.
- input_parameters : The field where the IDs of transfer items to be marked as
out-of-stock
within the transfer order are added. It should be sent as an array within thetransfer items
key. When executing the command, only one of the fieldstransition
orslug
should be sent.
Request Header
{
"Authorization": "Token <token>"
}
Request Body
{
"transition": 111,
"slug": "transfer_out_of_stock",
"input_parameters": {
"transfer_items": [
111,
222
]
}
}
Successful Response
Status Code: 204 No Content