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
  • Prerequisites
  • Configurations
  • Remote Price Flow
  • POST Get Remote Price
  • Service Behavior

Was this helpful?

  1. Commerce

Remote Price

PreviousPluginsNextE-mail Templates

Last updated 16 days ago

Was this helpful?

The Remote Price feature allows product prices in the basket to be dynamically set at checkout, independently from the predefined price lists. This document provides the technical setup required to enable this feature, including backend configuration, storefront behavior, and how the external service (extension) should operate.

Prerequisites

  • Products must include an attribute named has_remote_price.

  • The value for this attribute must be the string "true" (not boolean).

  • The attribute key can be customized through the Sales Channels > Sales Channel Settings > Dynamic Setting REMOTE_PRICE_ATTRIBUTE_KEY.

Customizing this attribute key is optional. If not customized, the default key has_remote_price will be used.

Configurations

A dynamic configuration named BASKET_ITEM_REMOTE_PRICE_CLIENT_CONF must be defined via Sales Channels > Sales Channel Settings > Dynamic Setting in the admin panel. This configuration must include both a url and headers section:

  • The url refers to the endpoint of the external service responsible for calculating the product prices dynamically during the checkout step.

  • The headers section must include necessary authentication information required to authorize the request to the 3rd party service.

This configuration allows the Commerce to send requests to the extension, retrieving updated prices based on business logic.

{
  "headers": {
    "Authorization": "*******"
  },
  "url": "https://3rdparty.service"
}

Remote Price Flow

The Remote Price flow is triggered during the normal checkout steps as follows:

  1. After address selection, the system checks if the basket contains any items with the has_remote_price attribute.

  2. If such items exist, the next page becomes a hidden Remote Price calculation step.

  3. The customer does not see this page—it’s system-handled and immediately followed by the shipping method selection.

  4. Commerce sends a POST request to the external service defined in BASKET_ITEM_REMOTE_PRICE_CLIENT_CONF.

  5. Prices returned in the response are applied into the corresponding basket items.

POST Get Remote Price

Path: https://3rdparty.service

The extension must expose a POST endpoint that accepts the basket and address information in the following format:

Example Request

{
  "basket": {
    "basket_items": [
      {
        "pk": 4,
        "quantity": 1,
        "currency_type": "TL",
        "product": {
          "sku": "BASE0001REDS",
          "attributes": {
            "has_remote_price": true
          }
        },
        "unit_price": "100.00",
        "total_amount": "100.00",
        "form_data": {}
      }
    ]
  },
  "address": {
    "pk": 1,
    "email": "joe.doe@akinon.com",
    "phone_number": "phone number",
    "first_name": "Joe",
    "last_name": "Doe",
    "country": {
      "pk": 1,
      "is_active": true,
      "name": "Türkiye",
      "code": "TR",
      "translations": null
    },
    "city": {
      "pk": 1,
      "is_active": true,
      "name": "İstanbul",
      "country": 1,
      "translations": null,
      "priority": null,
      "postcode": null
    },
    "line": "address line",
    "title": "Ev",
    "township": {
      "pk": 1,
      "is_active": true,
      "name": "Kadıköy",
      "city": 1,
      "postcode": null,
      "translations": null
    },
    "district": {
      "pk": 1,
      "is_active": true,
      "name": "Moda",
      "city": 1,
      "township": 1,
      "postcode": null,
      "translations": null
    },
    "postcode": "34000",
    "notes": null,
    "company_name": "",
    "tax_office": "",
    "tax_no": "",
    "e_bill_taxpayer": false,
    "hash_data": "135b6352b4d63027a6fa9b7ec3ab43cd",
    "address_type": "customer",
    "retail_store": null,
    "remote_id": null,
    "identity_number": null,
    "extra_field": null,
    "user": {
      "pk": 3,
      "username": "joe.doe",
      "first_name": "Joe",
      "last_name": "Doe",
      "email": "joe.doe@akinon.com",
      "is_active": true,
      "date_joined": "2025-03-24T18:14:14.419000Z",
      "last_login": "2025-04-09T11:22:52.355150Z",
      "email_allowed": false,
      "sms_allowed": false,
      "call_allowed": null,
      "gender": null,
      "attributes": {
        "logged_ip": "127.0.0.1"
      },
      "phone": null,
      "date_of_birth": null,
      "attributes_kwargs": {},
      "user_type": null,
      "modified_date": "2025-03-24T18:14:26.554000Z"
    },
    "is_corporate": false,
    "primary": false
  }
}

Service Behavior

  • Only items with the has_remote_price attribute set to true should be considered.

  • The service must only return items whose prices were updated.

  • The system will retry the request up to 3 times if the response is not successful (HTTP 200).

  • The timeout is 20 seconds per request.

  • If the service fails or does not return valid data, the basket proceeds with original prices (the order process is not blocked).

Example Response

{
  "basket": {
    "basket_items": [
      {
        "pk": 4,
        "unit_price": 200,
        "currency_type": "try"
      }
    ]
  },
}

When placing the order, the final unit price for each order item is determined by the unit_price parameter in the response.