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 Product Not Found & Wrong Product​

Was this helpful?

  1. OMS
  2. Commands
  3. Packages

Product Not Found & Wrong Product Command

This document outlines the process for handling "Product Not Found" and "Wrong Product" scenarios within the Akinon Order Management System (OMS). These situations occur when certain products in a packaging order are unavailable or incorrect at the designated stock location, impacting the fulfillment process.

The document details the key actors, domain objects, and the step-by-step process that OMS follows to manage such incidents. It also explains the command parameters used to transition packaging orders to an appropriate status (e.g., "Out of Stock") and describes how quota values are adjusted based on the availability of items in different stock locations.

Additionally, this document provides a detailed API reference for running the POST command, allowing integrated applications to notify OMS about unavailable products in packaging orders. It includes request examples, command parameters, and response formats, ensuring seamless communication and workflow adjustments when products are not found or incorrect.

Actors​

  • Akinon Order Management System (OMS)

  • Integrated Application (ERP)

Domain Objects​

  • Packaging Order

  • OMS Command (Packaging Order 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 operation points.

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

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

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

  5. In the event that a particular product in the package is out of stock, the store/warehouse employee informs the OMS that packaging cannot be carried out. The relevant package and its items are moved to the Out of Stock status, and the package items that are suitable for packaging are rescheduled to create new packages.

  6. The DetectedOutOfStockItemCommand is run for a packaging order in the Waiting, Preparing and Ready for Packaging status, completing the transition of the Package and its items to the Out of Stock status.

Command Parameters and Prerequisites​

For each packaging order:

Parameter
Parameter Name
Parameter Type
Parameter Description
Requirement

Packaging Order ID

package

integer

Dynamic for each order

Mandatory

Command Transition ID

transition

integer

Prepared and reported during OMS installation

Optional if slug is given

Slug

slug

slug

Unique slug for stste transition

Optional if Command Transition ID is given

Package Item IDs

package_items

list

A list of package item IDs

Mandatory

Denial Reason

denial_reason

integer

Denial reason ID

Optional

This command may only be run for packages in the following states:

  • Waiting (enum_value: 100)

  • Preparing (enum_value: 200)

  • Ready for Packaging (enum_value: 400)

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 Product Not Found & Wrong Product​

Path: https://{customer_api_url}/api/v1/oms/packages/{package_id}/command/

  • Package ID: XXX

  • Transition ID: NNN (set after OMS installation)

  • Slug: SSS (Unique Slug Value)

Request Body​

{
  "transition": NNN, 
  "slug": SSS,
  "package": XXX,
  "package_items": [1,2,3]
}

Successful Response​

Status Code: 200 OK

After the successful execution of the command, the API returns following responses.

  1. If there are package items that are planned at the same location:

{
  "package__id": 123,
  "package__number": "1234567891234567P3",
  "package__stock_location__id": 2,
  "package__stock_location__name": "Test Store",
  "is_same_location": true
}
  1. If there are no package items that are planned at the same location, but there are package items planned for another location.

{
  "package__id": 123,
  "package__number": "1234567891234567P3",
  "package__stock_location__id": 2,
  "package__stock_location__name": "Test Store",
  "is_same_location": false
}
  1. If there are no package items that are planned at the same location:

{
  "package__id": null,
  "package__number": "",
  "package__stock_location__id": null,
  "package__stock_location__name": ""
}
PreviousPackage Refuse with Denial Reason CommandNextProduct Not Found & Wrong Product Command Advanced

Last updated 23 days ago

Was this helpful?