Akinon Release Notes (06/09/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
    • Configuring User Segmentation
    • Promotions
    • Email Redirection in Multi-Frontend Structure
  • 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
    • Fashfed Marketplace Setup Configurations
    • Mono Marketplace Setup Configurations
    • Passo Marketplace Setup Configurations
    • Package Splitting Flow
    • Marketplace Dashboard Flow Trigger
  • 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
      • Icons
      • SEO Management
      • Advanced Usage
      • Plugins
        • Akinon Next
          • Data Fetching
            • Client
              • Account
              • Address
              • Basket
              • Checkout
              • Misc
              • Product
              • User
              • Wishlist
            • Server
              • Category
              • Flat Page
              • Landing Page
              • List
              • Menu
              • Product
              • SEO
              • Special Page
              • Widget
          • Localization
          • Widgets
        • Akifast
        • B2B
        • Basket Gift Package
        • BKM Express
        • Checkout Gift Package
        • Click&Collect
        • Credit Payment
        • GarantiPay
        • Hepsipay
        • Masterpass
        • Multi Basket
        • One Click Checkout
        • OTP
        • Pay on Delivery
        • Saved Card
        • Tabby Payment Gateway
        • Tamara Payment Gateway
  • 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
  • 3rd Party Integration
    • NKolay POS Payment Integration
    • ShipX (Inpost) Shipment Extension
    • Checkout Flow Integration
    • Ngenius Payment Integration
    • ShypV Shipment Extension
    • Masterpass via Craftgate POS
    • Benefit via Tap
    • Tap Credit Card
    • PayU Payment Extension
    • Pay with Iyzico Payment Extension
    • Multisafepay Payment Extension
    • Masterpass Installment Integration
    • Masterpass Iframe Extension
    • Mollie Payment Extension
    • Masterpass Rest POS
    • Masterpass Rest Payment Option
    • Yoomoney Payment Extension
    • MyFatoorah Payment Installation
    • Checkout Payment Extension
    • CyberSource Credit Card Integration
    • QNBPay Integration
    • KNET Payment Integration
    • MNG Seller Pays Shipment Extension
    • Porter Express Shipment Extension
    • Akbank Installation
    • Fero AI Shipment Extension
    • Horoz Lojistik Satıcı Öder Shipment Extension
    • Kolay Gelsin Shipment Extension
    • Falcon Flex Shipment Extension
    • Tap Saved Card Installation
    • NAPS QPay via Tap Installation
    • Tamara Payment Extension
    • Paywall Payment Integration
    • Horoz Lojistik Shipment Extension
    • Monist Shipment Extension
    • Sipay Integration
    • Nestpay Integration
Powered by GitBook

© 2025 Akinon. All rights reserved.

On this page
  • Extension Installation
  • Preliminary Works
  • Environment Variables
  • Omnitron Settings
  • Shipping Provider
  • Easy Return Shipping Option
  • Mapping
  • Additional Notes

Was this helpful?

  1. 3rd Party Integration

Monist Shipment Extension

Extension Installation

Preliminary Works

The following information is requested from the provider for the brand-specific and production (live) environment.

  • API_URL

  • AUTH_TOKEN

  • ACCOUNT_ID

  • PRICE_LIST

  • DELIVERY_TYPE

A secret_key is generated with a minimum length of 41 characters. The generated key must be kept throughout the installation. An example command line to generate a random key:

openssl rand -base64 41

An address ID must be set for the default destination information in easy-return shipments. It can be created using the extension's address creation method (example curl is given below). Ensure that the address ID is accurately configured to facilitate the smooth handling of return shipments within the Omnitron configuration.

curl --location 'https://8ad8dd652c004daeb009293f10def9ff.lb.akinoncloud.com/addresses' \
--header 'x-akinon-request-id: 50dac251-048c-402f-91c9-e5573b5a6057' \
--header 'x-akinon-api-version: 1.0' \
--header 'Authorization: Basic YWtpbm9uOmFraW5vbg==' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "1ac38925-6a04-42a5-b3b1-044eb4095e45", // return_destination_extension_id in Omnitron config,
    "addressName": "Jacobs Group",
    "addressDescription": "totam quisquam qui",
    "phone": "+90 216 555 1234",
    "email": "Marlee42@example.net",
    "type": "PICK_UP_LOCATION",
    "address": {
        "country": {
            "id": 0, // optional
            "code": "TR",
            "name": "Turkey"
        },
        "city": {
            "id": 0, // optional
            "name": "Istanbul"
        },
  "township": {
            "id": 0, // optional
            "name": "Kadıköy"
        },
        "district": {
            "id": 0, // optional
            "name": "ACIBADEM"
        },
        "coordinates": {
            "latitude": -80.2031,
            "longitude": 11.2438
        },
        "zipcode": "1724042906",
        "addressLine": "Caferağa Mahallesi, Dr. Esat Işık Caddesi No:35"
    }
}'

In order to send the correct data to Monist, the product attribute with the code names “barcode”, "description" and “name” must be defined.

Environment Variables

The extension installed to the relevant project in ACC must have the following environment variables. Environment variables can be entered before or after the deployment phase. As changes are made to the environment variables, the deployment process must be performed again.

Variable
Description

Extension-specific

API_URL

URL received during the preliminary works phase (without a trailing slash at the end)

AUTH_TOKEN

AUTH TOKEN received during the preliminary works phase

ACCOUNT_ID

ACCOUNT ID received during the preliminary works phase

PRICE_LIST

"MPL" value is used for shipments that apply Monist pricing when the company is processing transactions through their own current accounts. "OPL" value is used for other pricing scenarios not involving Monist pricing.

RECIPIENT_EMAIL

Default email address to be used in the recipient information

DELIVERY_TYPE

“1” value is used for “Standard Delivery”, “2” value is used for “Next Day Delivery” and “3” value is used for “Same Day Delivery”.

Generic

SECRET_KEY

The generated secret key during the preliminary works phase

ADMIN_EMAIL

The e-mail address of the installer can be entered

ADMIN_PASSWORD

A newly created and extension-specific strong password

ADMIN_USERNAME

A username can be entered (example: ‘akinon’)

Omnitron Settings

Monist can be selected as the Shipment Provider in Omnitron to integrate with the extension installed. Additionally, an easy return option can be defined to enable easy return methods. Explanations on how these settings can be configured are detailed in the sections below. Please note that these two operations are independent and optional.

Shipping Provider

To add Monist, a new shipping provider is added to SHIPPING_PROVIDERS in Dynamic Settings through Omnitron.

Example Omnitron Configuration:

Field
Description

Klass

ExtensionShippingProvider Class

Urls Code

{ "urls": { "base_url": "{SHIPMENT_EXTENSION_URL}" } }

Serializers

Order Serializer: ExtensionShippingOrderSerializer Class Response Serializer: ExtensionShippingResponseSerializer Class

Configurations Code

{ "strategies": { "query_type": "SHIPMENT_ID", "generate_shipment_origin_strategy": "<addressId>", "generate_shipment_product_strategy": true, "generate_shipment_product_attributes": [ "barcode", “description”, “name” ] }, "pay_on_delivery_option": false, "delivery_type": "CUSTOMER", "auth": { "username": "{SHIPMENT_EXTENSION_ADMIN_USERNAME}", "password": "{SHIPMENT_EXTENSION_ADMIN_PASSWORD}" }, "is_active": { "query": true, "send_shipping_info": true, "delete_shipping_info": true, "query_by_order": true }, "label_options": { "file_extension": "pdf" } }

Easy Return Shipping Option

One easy return shipping option must be defined in Omnitron to be specific for the extension installed. Explanations on how the settings should be made at this stage are in the section below.

Example Omnitron Configuration:

Field
Description

Shipping Company

Extension Cargo

Shipping Company Auth Code

{ "url": "{SHIPMENT_EXTENSION_URL}", "username": "{SHIPMENT_EXTENSION_ADMIN_USERNAME}", "password": "{SHIPMENT_EXTENSION_ADMIN_PASSWORD}", “send_user_address”: True, “easy_return_product_strategy”: True, "return_destination_extension_id":"{address_id}" “product_attributes”: { "barcode": "{product_barcode_attribute}", "description": "{product_description_attribute}", "name": "{product_name_attribute}" } }

Start Date Gap

This variable is used to delay the start date for using the return code. If this value is set to 0, the customer can request a refund on the same day.

Delivery Time

The delivery_time variable indicates the duration for which the return code will be valid and usable. If the product is not shipped by the customer within this period, the code becomes invalid.

Shipping Company Prefix

If a prefix is to be added to the return code, this field should contain the short name of the brand. This short name can be any value determined by the brand.

Shipping Company Rules

{ "product": { "field_key": "attributes__easy_return_method", "field_values": [ [ "", null ] ] } }

Status

active

Mapping

Mapping is mandatory to use Monist Shipment Extension properly. There are 2 types of mapper that need to be defined:

Mapper Type
Description

ADDRESS

ADDRESS value formatted using the address values provided by the Monist Delivery Module. It is used for extension’s address information. Key must be formatted as “{akinon_country_name}//{akinon_city_name}//{akinon_township_name}”. Value must be formatted as “{country_name}$${country_id}//{city_name}$${city_id}//{district_name}$${district_id}”. Example: {“Turkey//Istanbul//Kadikoy”: “TÜRKİYE$$1//İSTANBUL$$34//KADIKÖY$$455”}

ORIGIN_ID

WAREHOUSE ID value provided by the Monist Delivery Module. It is used for mapping the extension's address_id information, which corresponds to the addresses designated as the departure point for shipments and/or the destination for returns, to the Monist Warehouse ID.

Notes

* In the Monist Delivery Module, the address flow is defined in the sequence of Country, City, District. To ensure the correct utilization of this flow, the TOWNSHIP information is equated to the DISTRICT information. ** Below are examples of the requests that need to be sent to the Monist Delivery Module to obtain the information specified here.

Countries:

curl --location 'https://api.delivery.monist.co/getCountries' \
--header 'auth_token: {auth_token}' \
--header 'account_id: {account_id}'

Cities:

curl --location 'https://api.delivery.monist.co/getCities \
--header 'auth_token: {auth_token}' \
--header 'account_id: {account_id}'

Districts:

curl --location 'https://api.delivery.monist.co/getDistricts' \
--header 'auth_token: {auth_token}' \
--header 'account_id: {account_id}'

Warehouses:

curl --location 'https://api.delivery.monist.co/getWarehouses' \
--header 'auth_token: {auth_token}' \
--header 'account_id: {account_id}'

Steps to Use the Mapper Method for the ORIGIN ID:

  1. Get the Warehouse Information: First, access the warehouse information by using the Monist Delivery Module’ s “getWarehouses” method, an example of which is provided above.

  2. Create an Address: Create an address using accessed warehouse information and obtain its ID.

  3. Map Address ID with warehouse_id: The mapping method takes three values: type, key, and value.

    • Type: Currently, the type is fixed as ORIGIN_ID.

    • Key: Use the created address ID as the key. Example: 61b2f0d5-42a2-4746-a090-c162099a0809.

    • Value: Assign the warehouse_id as the value. Example: 1.

When a request comes in with a specific address ID, the outgoing request should include the corresponding warehouse_id if a mapping exists. For example, if the address ID 61b2f0d5-42a2-4746-a090-c162099a0809 is mapped to 1, any request with this address ID should include warehouse_id as 1.

Steps to Use the Mapper Method for the Address Information:

  1. Get the Address Information: First, access the desired address type’ s information by using the Monist Delivery Module’ s methods, examples of which are provided above. Example: The “getCities” method can be used to obtain the defined city list out of Monist Delivery Module. Obtained city list includes item_id and name information.

  2. Prepare the Mapper Key: Mapper key must include all three desired address information sorted as Country, City, Township separated by Double Slash (“//”). Example: “Turkiye//Istanbul//Kadikoy”.

  3. Prepare the Mapper Value: Mapper value must include the name and the id values of desired address information in a specific format: “{name}item_id”∗Example:ObtainedcitylistbeforeincludesIstanbul’sinformation;“I˙STANBUL”asnameand34asitem_id.ThevalueforIstanbulcanbeformattedas“I˙STANBUL{item\_id}” *Example: Obtained city list before includes Istanbul’ s information; “İSTANBUL” as name and 34 as item\_id. The value for Istanbul can be formatted as “İSTANBULitem_id”∗Example:ObtainedcitylistbeforeincludesIstanbul’sinformation;“I˙STANBUL”asnameand34asitem_id.ThevalueforIstanbulcanbeformattedas“I˙STANBUL34”.* Address value must include all three address information. The final value example: “TÜRKİYE$$1//İSTANBUL$$34//KADIKÖY$$455”

  4. Map Address Key with Formatted Value: The mapping method takes three values: type, key, and value.

    1. Type: Currently, the type is fixed as ADDRESS.

    2. Key: Use the formatted address key as the key. Example: “Turkiye//Istanbul//Kadikoy”.

    3. Value: Assign the formatted value as the value. Example: “TÜRKİYE$$1//İSTANBUL$$34//KADIKÖY$$455”.

When a request comes in with a specific address key, the outgoing request should include the corresponding name and item_id of all address information if a mapping exists. For example, if the address key “Turkiye//Istanbul//Kadikoy” is mapped to “TÜRKİYE$$1//İSTANBUL$$34//KADIKÖY$$455”, any request with this address key should include “TÜRKİYE” as country name, 1 as country id, “İSTANBUL” as city name, 34 as city id, “KADIKÖY” as district name, 455 as district id.

Field
Description

Extension URL

The URL of the shipment extension

Username

Extension user's name for authorization

Password

Extension user's password for authorization

Type

Mapping type

Key

Formatted address name series for Address Information or Address ID for Origin ID

Value

Formatted address name and id series for Address Information or Warehouse ID for Origin ID

Generate Mapping Request:

curl -X POST {{extension_url}}/mapper \
     -u username:password \
     -H "Content-Type: application/json" \
     -d '{
           "type": "",
           "key": "",
           "value": ""
         }'

Update Mapping Request:

* The values for key, type, and value should be updated.

curl -X PATCH "{{extension_url}}/mapper/<id>" \
     -u username:password \
     -H "Content-Type: application/json" \
     -d '{
           "type": "",
           "key": "",
           "value": ""
         }'

Get Mapping Request:

* When making a query request, it can be filtered by the fields type, key, value, created_date and modified_date.

curl -X GET "{{extension_url}}/mapper?key=<key>" \
     -u username:password \
     -H "Content-Type: application/json"

Delete Mapping Request:

curl -X DELETE "{{extension_url}}/mapper/<id>" \
     -u username:password \
     -H "Content-Type: application/json"

Additional Notes

  • There is no endpoint that allows for a created easy-return to delete. Unused easy-return deliveries will be deleted automatically by the Monist Delivery Module.

PreviousHoroz Lojistik Shipment ExtensionNextSipay Integration

Last updated 6 hours ago

Was this helpful?