Update Shipment Info of Package Command
Actors
Akinon Order Management System (OMS)
Akinon Omnitron System
Integrated Application (ERP)
Domain Objects
Packaging Orders
OMS 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 the operational points.
The products in the order are distributed into Packaging Orders according to the rules of the distribution scenarios chosen by the brand.
Packaging Orders are transferred to the Akinon Instore Application or the brand's integrated software (Packaging Orders Webhooks).
Packaging orders assigned by the Store/Warehouse begin in the Waiting status.
When the packaging is physically prepared for distribution in one or more steps, it is updated to the Packed status using the screens in the Akinon Instore application or by executing OMS commands through other software integrated with the OMS application (see: OMS Commands API).
When the package is handed over to the shipping company, its status is updated to Shipped using the screens in the Akinon Instore application or by executing OMS commands through other software integrated with the OMS application.
The shipping company may then update the package's status to Attempted Delivery or Delivery Failed.
This command can be run when the package is in the Packed, Shipped, Delivered, or Attempted Delivery status to update the package's shipment details, including the shipping company, tracking number, and query number information.
After this command is executed, the package's shipment will be tracked using the new shipping company and tracking number information. The package label file will also be updated to reflect the new shipping company and tracking number details.
Command Parameters and Prerequisites
For each packaging order;
Packing Order ID (integer - dynamic for each order)
Command Transition ID (integer - fixed - prepared and informed during OMS installation)
Shipment Tracking Number (referred to as `awb_number` in the parameters)
Shipment Query Number (optional)
Cargo Company
If this command is executed before a packaging order reaches the Packed status, it will result in a validation error. The prerequisite for all packages that have reached the Packed status is considered complete (e.g., shipped status).
POST
Update The Package’s Shipment Status
POST
Update The Package’s Shipment StatusPath: https://{customer_api_url}-oms.akinon.net/api/v1/oms/packages/{package_id}/command/
Body Parameters
token
string
header
The API key of the customer account
Package ID: package_id (integer)
Transition ID: transition_id (integer) (set after OMS installation)
Shipment Tracking Number: awb_number (string)
Shipment Query Number: query_number (string, optional)
Cargo Company: cargo_company (integer) (OMS id of the cargo company)
Request Body
Example Response (204 No Content)
Status Code: 204 No Content
Example Response of the Validation Error
Status Code: 400 Bad Request
Example Response of the Command Error
Status Code: 406 Not Acceptable
Example Response of the Command Error
Status Code: 406 Not Acceptable
Transitions and Validations
The command transition source and destination values must be the same.
Last updated
Was this helpful?