Akinon Release Notes (05/12/2025) are now live! Click here to learn what's new.
LogoLogo
API Reference
  • Home
  • Quick Start
  • Tutorials
  • Technical Guides
  • Release Notes
  • Glossary
  • Welcome to Akinon Technical Guides
  • ACC
    • ACC CLI
    • Create Application via CLI
    • Deploy Environment Variables
    • App Store for Developers
  • Omnitron
    • Product Types
    • Product Categorization
    • Splitting a Merged Order Item
  • Commerce
    • Shipping Rules Calculator
    • Data Source Shipping Options
    • Attribute Based Shipping Options
    • Filtering Products
    • Conversation & Messages
    • Sitemap Configuration
    • Weight-Based Product Sales
    • Group Attribute Sets
    • Contract Management
    • Find in Store for Whippy Ware
    • Plugins
    • Remote Price
    • E-mail Templates
    • Loyalty Accounts
    • Search Structure
    • User Segmentation & Rules
    • Promotions
  • OMS
    • Getting Started with OMS
    • Basic Setup
    • Scenarios
    • Capacity Feature
    • Package Management
      • Packages
      • Transfer
      • States
    • Commands
      • Packages
        • Package Command Parameters
        • DeAllocate Package Reservations Command
        • Channel Based Complete Packaging without Shipment Command
        • Complete Packaging with Shipment Command
        • Complete Packaging without Shipment Command
        • Package Refuse with Denial Reason Command
        • Product Not Found & Wrong Product Command
        • Product Not Found & Wrong Product Command Advanced
        • Package Packed for Refund Command
        • Block The Package For Action Command
        • Unblock the Package For Action Command
        • Update The Package’s Invoice
        • Manual Planning Command
      • Transfer
        • Transfer Order Advanced Command
        • Product for Transfer Not Found & Wrong Product Command
        • Transfer Delivered Command
        • Transfer Dispatch Command
        • Transfer Ready for Dispatch Command
        • Transfer Out Of Stock
      • Shipment
        • Shipment Order Command
        • Package Advanced Shipment Command
        • Ship The Package Command
        • Ship The Package without Shipment Integration Command
        • Update The Package’s Shipment Status Command
        • Update Shipment Info of Package Command
    • Inventory Locations & Engine
      • Properties & Domain Relation
      • Customization
      • Inventory Engine
    • Fulfillment
      • Shipments
      • Invoice Integration
    • Webhooks
      • Webhook Examples
        • Order Webhook
        • Package Webhook
        • Shipment Webhook
        • Stock Location Webhook
        • Transfer Webhook
    • Integrating OMS with Seller Center
  • Instore
    • Getting Started
    • Cash Register Integration
    • OTP (One Time Password) Process
    • Services
      • Password Reset Services
  • Marketplace Dashboard
    • N11 Marketplace Setup Configurations
    • Trendyol Marketplace Setup Configurations
    • Walmart Marketplace Setup Configurations
    • Amazon Marketplace Setup Configurations
    • Hepsiburada Marketplace Setup Configurations
  • Project Zero
    • Django
      • Basic Setup
      • Project Structure
        • Templates & Components
        • Private Dependencies
        • Omnife Project Submodule
        • Webpack
        • ESLint Rules
        • Bundles
        • Multilanguage & Translation
        • Environmental File
        • Custom Error Pages
        • Icon Font
      • Page Types
        • Static Pages & Flatpages
        • Account Page
          • Template Rendering in Account Pages
          • Forms & Validation
        • Basket Page
          • Redux Basket State
          • Basket Page - View
        • Checkout
          • Redux Checkout State
          • View & Template Rendering
          • Masking & Validation
      • Theming & Styling
      • Widgets
      • SEO Management
      • Extending Project Zero
    • Next.js
      • Basic Setup
      • Deployment
      • Static Assets
      • Plugins
      • Widgets
      • Icons
      • Localization
      • SEO Management
      • Advanced Usage
      • Data Fetching
        • Client
          • Account
          • Address
          • Basket
          • Checkout
          • Misc
          • Product
          • User
          • Wishlist
        • Server
          • Category
          • Flat Page
          • List
          • Menu
          • Product
          • SEO
          • Special Page
          • Widget
  • App Maker
    • Setup Your Environment
    • Plugin Quickstart
    • Create Project
    • Setup Existing Project
    • Deploy Project
    • Users and Roles
    • Add Public Key
    • App Maker CLI
    • Create App on Stores
      • Creating App on Apple App Store
      • Creating App on Google Play Store
    • Mobile App Framework
      • Configuration
      • Framework
      • Project Structure
        • Structure
        • Data Containers
        • Pages
      • Dependency Integration
        • Plugins
        • Akinon Plugin Adapter
  • Akifast
    • HPP
      • Getting Started
      • Authorization
      • Payment Session Creation
        • Key Points Before Creating a Payment Session
        • Creating Payment Session
        • Redirecting to the Payment Page
        • Errors Encountered During Payment Session Creation
      • Merchant Services
        • Shipping Query URL
        • Agreement Query URL
        • Other URLs
  • B2B
    • Getting Started
    • B2B Setup
  • Adds-on
    • Invoicer
      • Introduction
      • Invoice & Pay On Delivery Service
  • Channel App Template
    • Introduction
    • Installation and Usage
    • Development Steps
      • Folder Structure
      • Starting Step
      • Encoding the Sales Channel
        • Introduction
        • Setup
        • Products
        • Product Price
        • Product Stock
        • Product Image
        • Orders
        • Product Data
      • Adding a New Command to Akinon
      • Listening for External Requests
    • Architecture
      • Introduction
      • Integration
      • Services (Flows)
        • Introduction
        • Product Service
        • Price Service
        • Stock Service
        • Image Service
        • Order Service
  • Multi Regional Settings
    • Multi Regional Settings
Powered by GitBook

© 2025 Akinon. All rights reserved.

On this page
  • Actors
  • Domain Objects
  • Process
  • Command Parameters and Prerequisites
  • POST Update The Package’s Shipment Status
  • Transitions and Validations

Was this helpful?

  1. OMS
  2. Commands
  3. Shipment

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

  1. 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.

  2. The products in the order are distributed into Packaging Orders according to the rules of the distribution scenarios chosen by the brand.

  3. Packaging Orders are transferred to the Akinon Instore Application or the brand's integrated software (Packaging Orders Webhooks).

  4. Packaging orders assigned by the Store/Warehouse begin in the Waiting status.

  5. 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).

  6. 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.

  7. The shipping company may then update the package's status to Attempted Delivery or Delivery Failed.

  8. 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

Path: https://{customer_api_url}-oms.akinon.net/api/v1/oms/packages/{package_id}/command/

Body Parameters

Parameter
Data Type
In
Description

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

{
    "transition": <transition-id>,
    "package": <package-id>,
    "input_parameters": {
        "awb_number": <tracking-number>,
        "cargo_company": <shipping-company>,
        "query_number": <query-number>
    }
}

Example Response (204 No Content)

Status Code: 204 No Content

Example Response of the Validation Error

Status Code: 400 Bad Request

{
  "error": {
    "awb_number": [
      "This field is required."
    ]
  },
  "status_code": 400
}

Example Response of the Command Error

Status Code: 406 Not Acceptable

{
  "error": {
    "non_field_errors": "Shipment information could not be updated for package: {number}, due to an error: {errors}",
    "error_code": "package_commands_100_13"
  },
  "status_code": 406
}

Example Response of the Command Error

Status Code: 406 Not Acceptable

{
  "error": {
    "non_field_errors": "Invalid state transition ({source_state} -> {destination_state}) for ({package_state}) package.",
    "error_code": "package_100_5"
  },
  "status_code": 406
}

Transitions and Validations

The command transition source and destination values must be the same.

valid source states:
- PackageStatus.packed
- PackageStatus.shipped
- PackageStatus.attempted_delivery
- PackageStatus.delivery_failed

Valid destination states:
- PackageStatus.packed
- PackageStatus.shipped
- PackageStatus.attempted_delivery
- PackageStatus.delivery_failed

Valid state transitions:
- PackageStatus.packed → PackageStatus.packed
- PackageStatus.shipped → PackageStatus.shipped
- PackageStatus.attempted_delivery → PackageStatus.attempted_delivery
- PackageStatus.delivery_failed → PackageStatus.delivery_failed
PreviousUpdate The Package’s Shipment Status CommandNextInventory Locations & Engine

Last updated 15 days ago

Was this helpful?