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

Was this helpful?

  1. OMS
  2. Webhooks
  3. Webhook Examples

Package Webhook

Webhook event types that can be sent for the package:

  • package.created

  • package.status.transitioned

  • package.status.packed

  • package.status.cancelled

  • package.status.shipped

  • package.shipment.awb_number

For each event, data is sent in the following scheme. The part that changes is the package status.

Example of a “package created” event data​

{
  "event": {
    "type": "package.created",
    "uuid": "c9591f0d1c1d4da58ade880921bd7e93"
  },
  "payload": {
    "id": 73,
    "city": "İstanbul",
    "state": {
      "id": 50,
      "name": "Contains out of stock products",
      "config": {},
      "enum_class": "PackageStatus",
      "enum_value": "920",
      "content_type": 26,
      "created_date": "2020-04-27T14:47:49.786741Z",
      "modified_date": "2020-04-27T14:47:49.786759Z"
    },
    "number": "000000000",
    "commands": [],
    "order_id": 73,
    "shipment": null,
    "remote_id": null,
    "date_placed": "2020-05-12T14:11:10.580441Z",
    "order_notes": null,
    "channel_name": "Shop",
    "order_number": "00000000000",
    "payment_type": "credit_card",
    "shipment_date": null,
    "delivery_range": null,
    "invoice_number": null,
    "shipping_label": null,
    "stock_location": {
      "id": 8,
      "conf": {},
      "name": "Example shop location",
      "email": "",
      "engine": 1,
      "address": {
        "id": 8,
        "city": {
          "pk": 40,
          "name": "ISTANBUL",
          "country": 1,
          "latitude": null,
          "is_active": true,
          "longitude": null
        },
        "line": "Example address",
        "notes": null,
        "title": "Example Location",
        "country": {
          "pk": 1,
          "code": "tr",
          "name": "Türkiye",
          "latitude": null,
          "is_active": true,
          "longitude": null
        },
        "mapping": null,
        "district": null,
        "latitude": "41.07019600",
        "postcode": null,
        "township": {
          "pk": 468,
          "city": 40,
          "name": "EYUPSULTAN",
          "latitude": null,
          "is_active": true,
          "longitude": null
        },
        "is_active": true,
        "longitude": "28.91708900"
      },
      "erp_code": "369",
      "priority": 10,
      "is_active": true,
      "fax_number": "",
      "created_date": "2020-05-12T14:20:07.677690Z",
      "daytime_phone": "0 212 777 97 21",
      "evening_phone": "0 212 777 97 21",
      "modified_date": "2020-05-12T14:30:36.315525Z",
      "is_pickup_location": false,
      "is_return_available": true,
      "stock_location_type": "store",
      "is_delivery_location": false,
      "is_fulfillment_center": true,
      "target_packing_interval": "5 00:00:00",
      "target_transfer_interval": "3 00:00:00"
    },
    "packageitem_set": [
      {
        "id": 152,
        "state": {
          "id": 60,
          "name": "Out of Stock",
          "config": {},
          "enum_class": "PackageItemStatus",
          "enum_value": "520",
          "content_type": 27,
          "created_date": "2020-04-27T14:47:49.905768Z",
          "modified_date": "2020-04-27T14:47:49.905786Z"
        },
        "package": 73,
        "commands": [],
        "order_item": {
          "id": 152,
          "image": null,
          "order": 73,
          "price": "489.00",
          "state": {
            "id": 23,
            "name": "Approved",
            "config": {},
            "enum_class": "OrderStatus",
            "enum_value": "400",
            "content_type": 21,
            "created_date": "2020-04-27T14:47:49.406417Z",
            "modified_date": "2020-04-27T14:47:49.406436Z"
          },
          "product": {
            "id": 48,
            "sku": "1006905",
            "name": "Example brand name",
            "barcode": null,
            "base_code": "52811",
            "attributes": {
            },
            "omnitron_id": 221603,
            "created_date": "2020-05-12T15:20:21.072491Z",
            "modified_date": "2020-05-12T15:20:21.072513Z",
            "extra_attributes": {},
            "productimage_set": [
              {
                "id": 185,
                "url": "https:/{url}/lorem.jpg",
                "order": 1,
                "product": 48
              },
              {
                "id": 186,
                "url": "https:/{url}/lorem.jpg",
                "order": 2,
                "product": 48
              },
              {
                "id": 187,
                "url": "https:/{url}/lorem.jpg",
                "order": 3,
                "product": 48
              },
              {
                "id": 188,
                "url": "https:/{url}/lorem.jpg",
                "order": 4,
                "product": 48
              },
              {
                "id": 189,
                "url": "https:/{url}/lorem.jpg",
                "order": 5,
                "product": 48
              }
            ],
            "attributes_kwargs": {
              "erp_line": {
                "label": "Other",
                "value": "999"
              }
            }
          },
          "commands": [],
          "tax_rate": "8.00",
          "attributes": {},
          "net_amount": "489.00",
          "price_list": {
            "pk": 1,
            "code": "shop_price_list",
            "name": "shop_price_list",
            "created_date": "2020-02-24T13:43:42.004315Z",
            "is_auto_sync": true,
            "modified_date": "2020-02-24T13:43:42.004345Z"
          },
          "stock_list": {
            "pk": 1,
            "code": "shop_stock_list",
            "name": "shop_stock_list",
            "created_date": "2020-02-24T13:44:03.073917Z",
            "is_auto_sync": true,
            "modified_date": "2020-02-24T13:44:03.073944Z"
          },
          "tax_amount": null,
          "omnitron_id": 1060,
          "created_date": "2020-05-12T15:20:21.128397Z",
          "retail_price": "489.00",
          "modified_date": "2020-05-12T15:20:21.128424Z",
          "price_currency": "try",
          "discount_amount": "0.00",
          "attributes_kwargs": {},
          "without_net_amount": null,
          "installment_interest_amount": null
        },
        "created_date": "2020-05-13T11:39:46.845590Z",
        "modified_date": "2020-05-13T11:39:46.945551Z",
        "transfer_order": null,
        "selected_barcode": null
      },
      {
        "id": 151,
        "state": {
          "id": 60,
          "name": "Out of Stock",
          "config": {},
          "enum_class": "PackageItemStatus",
          "enum_value": "520",
          "content_type": 27,
          "created_date": "2020-04-27T14:47:49.905768Z",
          "modified_date": "2020-04-27T14:47:49.905786Z"
        },
        "package": 73,
        "commands": [],
        "order_item": {
          "id": 151,
          "image": null,
          "order": 73,
          "price": "79.90",
          "state": {
            "id": 23,
            "name": "Approved",
            "config": {},
            "enum_class": "OrderStatus",
            "enum_value": "400",
            "content_type": 21,
            "created_date": "2020-04-27T14:47:49.406417Z",
            "modified_date": "2020-04-27T14:47:49.406436Z"
          },
          "product": {
            "id": 47,
            "sku": "1157696",
            "name": "Example product name",
            "barcode": null,
            "base_code": "TKE12-",
            "attributes": {
            },
            "omnitron_id": 196239,
            "created_date": "2020-05-12T15:20:21.031882Z",
            "modified_date": "2020-05-12T15:20:21.031907Z",
            "extra_attributes": {},
            "productimage_set": [
              {
                "id": 183,
                "url": "https:/{url}/lorem.jpg",
                "order": 1,
                "product": 47
              },
              {
                "id": 184,
                "url": "https:/{url}/lorem.jpg",
                "order": 3,
                "product": 47
              }
            ],
            "attributes_kwargs": {
              "erp_line": {
                "label": "Sports",
                "value": "1"
              }
            }
          },
          "commands": [],
          "tax_rate": "8.00",
          "attributes": {},
          "net_amount": "79.90",
          "price_list": {
            "pk": 1,
            "code": "shop_price_list",
            "name": "shop_price_list",
            "created_date": "2020-02-24T13:43:42.004315Z",
            "is_auto_sync": true,
            "modified_date": "2020-02-24T13:43:42.004345Z"
          },
          "stock_list": {
            "pk": 1,
            "code": "shop_stock_list",
            "name": "shop_stock_list",
            "created_date": "2020-02-24T13:44:03.073917Z",
            "is_auto_sync": true,
            "modified_date": "2020-02-24T13:44:03.073944Z"
          },
          "tax_amount": null,
          "omnitron_id": 1059,
          "created_date": "2020-05-12T15:20:21.061545Z",
          "retail_price": "79.90",
          "modified_date": "2020-05-12T15:20:21.061568Z",
          "price_currency": "try",
          "discount_amount": "0.00",
          "attributes_kwargs": {},
          "without_net_amount": null,
          "installment_interest_amount": null
        },
        "created_date": "2020-05-13T11:39:46.839098Z",
        "modified_date": "2020-05-13T11:39:46.952188Z",
        "transfer_order": null,
        "selected_barcode": null
      }
    ],
    "tracking_number": null,
    "shipping_address": {
      "id": 17,
      "city": {
        "pk": 1,
        "name": "ADANA",
        "country": 1,
        "latitude": null,
        "is_active": true,
        "longitude": null
      },
      "line": "Teknopark Bölgesi, YTÜ-Davutpaşa Kampüsü, B2 Blok D:Kat:2, No: 417, 34220 Esenler/İstanbul",
      "email": "abc@akinon.com",
      "notes": null,
      "title": "iş",
      "tax_no": "",
      "country": {
        "pk": 1,
        "code": "tr",
        "name": "Turkiye",
        "latitude": null,
        "is_active": true,
        "longitude": null
      },
      "mapping": null,
      "customer": {
        "pk": 8,
        "email": "abc@akinon.com",
        "channel": 2,
        "erp_code": null,
        "last_name": "lorem",
        "first_name": "Bar",
        "phone_number": "05000000000"
      },
      "district": {
        "pk": 828,
        "city": 1,
        "name": "AKOREN STREET",
        "latitude": null,
        "township": 15,
        "is_active": true,
        "longitude": null
      },
      "postcode": "56665",
      "township": {
        "pk": 15,
        "city": 1,
        "name": "ALADAG",
        "latitude": null,
        "is_active": true,
        "longitude": null
      },
      "is_active": true,
      "last_name": "lorem",
      "first_name": "bar",
      "tax_office": "",
      "omnitron_id": 123,
      "address_type": "customer",
      "company_name": "",
      "created_date": "2020-05-12T15:14:51.321819Z",
      "phone_number": "05000000000",
      "modified_date": "2020-05-12T15:20:21.015169Z",
      "e_bill_taxpayer": false
    },
    "order_gift_box_note": null,
    "target_packing_date": "2020-05-17T14:11:10.580441Z",
    "is_click_and_collect": false,
    "order_retail_store_id": null
  }
}
PreviousOrder WebhookNextShipment Webhook

Last updated 23 days ago

Was this helpful?