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​

Was this helpful?

  1. OMS
  2. Commands
  3. Packages

Update The Package’s Invoice

Actors​

  • Akinon Order Management System (OMS)

  • Akinon Omnitron System

  • Integrated Application (ERP)

Domain Objects​

  • Packaging Orders

  • Invoice Number

  • Invoice Document

  • OMS Command

Process​

  1. The OMS application copies orders from the Akinon Omnitron Application to itself to prepare a delivery/distribution plan and generate packaging orders, which are then transferred to the operation points.

  2. The products in the order are distributed to Packaging Orders by applying the rules in the distribution scenarios by the brand.

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

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

  5. When the packaging is physically prepared for distribution in one or more steps, it transitions to the Packed status either through screens in the Akinon Instore application or by executing OMS commands from another integrated software.

  6. Packages with the Packed status have a Packaging Document created by OMS, which can later be replaced with an Invoice produced by the brand's own software. The command for this change is defined in the OMS Commands API.

  7. A packaging order in the Packed status, as well as later statuses, can be created by executing the UpdateInvoiceOfThePackageCommand command:

  • Invoice number

  • Invoice document type

  • Invoice document content

  • Date of Invoice

Upon sending the parameters according to the service requirements, the transfer of Package and Invoice information to the financial section of the OMS application is completed.

After executing this command, a copy of the document becomes available in the OMS application, allowing it to be viewed and reported on the Packing Order detail pages (Akinon Instore + Akinon OMS Web).

Command Parameters and Prerequisites​

For each packaging order following parameters uses;

  • Packing Order ID (integer): Unique identifier for each order.

  • Command Transition ID (integer): Fixed value provided during OMS installation.

  • Invoice Number (string): Dynamic invoice number for each package.

  • Invoice Date (string): Date format: %Y-%m-%dT%H:%M:%S%z.

  • Data Type (String): Type of data (url, html, base64, text). The data type determines the format of the invoice data.

  • Invoice Data (String): HTML or PDF data, depending on the specified data type.

If this command is executed before a packaging order reaches the Packed status, it will result in a validation error. The prerequisite for all packaging orders that have reached the Packed status is considered to be completed (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/

Request 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)

Request Body​

{
    "transition": <transition-id>,
    "package": <package-id>,
    "invoice_number": "Inv-1234-XYZ-Any",
    "data_type": "url",
    "invoice_data": "http://ecommerce.com/invoices/any_invoice_page/<id>"
    "invoice_date": "2024-11-05T13:58:32.384293Z"
}

Successful Response​

Status Code: 204 No Content

Body: Empty

If the invoice information will be transferred in HTML format;

{
    "transition": <transition-id>,
    "package": <package-id>,
    "invoice_number": "Inv-1234-XYZ-Any",
    "data_type": "html",
    "invoice_data": "<html><head></head><body>.... any html string will be here ... </body></html>",
    "invoice_date": "2024-11-05T13:58:32.384293Z"
}

Base64 Data​

If the invoice information will be transferred in Base64 image or PDF format;

{
    "transition": <transition-id>,
    "package": <package-id>,
    "invoice_number": "Inv-1234-XYZ-Any",
    "data_type": "base64",
    "invoice_data": "data:image/png;base64,i....",
    "invoice_date": "2024-11-05T13:58:32.384293Z"
}

Transitions and Validations​

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

valid source states:

* PackageStatus.packed

* PackageStatus.shipped

* PackageStatus.delivered

* PackageStatus.waiting_transfer_operation

Valid destination states:

* PackageStatus.packed

* PackageStatus.shipped

* PackageStatus.delivered

* PackageStatus.waiting_transfer_operation

Valid state transitions:

* PackageStatus.packed → PackageStatus.packed

* PackageStatus.shipped → PackageStatus.shipped

* PackageStatus.delivered → PackageStatus.delivered

* PackageStatus.waiting_transfer_operation → PackageStatus.waiting_transfer_operation
PreviousUnblock the Package For Action CommandNextManual Planning Command

Last updated 23 days ago

Was this helpful?

HTML Data

​