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
  • 1. User Allocation Errors​
  • 2. Discrepancy Between Basket and Amount​
  • 3. Discrepancy Between Amounts in the Basket​
  • 4. Use of the Same Order Number​

Was this helpful?

  1. Akifast
  2. HPP
  3. Payment Session Creation

Errors Encountered During Payment Session Creation

PreviousRedirecting to the Payment PageNextMerchant Services

Last updated 24 days ago

Was this helpful?

In this section, major errors that may occur during payment session creation are outlined. To access all API error codes in general, .

1. User Allocation Errors​

The following errors can be encountered regarding user allocation.

If both Akinon-User-Access-Token and session_owner_id are defined in the request, and the user ID associated with Akinon-User-Access-Token does not match the session_owner_id, the following error is received.

{
    "trace_id": "fc3ffea0-7261-4eb7-XXe1-db4f4079afed",
    "response": {
        "errors": [
            {
                "error_code": "INVALID_USER_FOR_PAYMENT_SESSION",
                "message": "Kullanıcı adı ödeme oturumu için geçerli değil.",
                "argument": null
            }
        ]
    }
}

If only the session_owner_id parameter is defined in the request, and no user is found in the system with this ID, the following error is received.

{
    "trace_id": "35ec0c18-7f7f-404a-XXd0-7921a97b1d42",
    "response": {
        "errors": [
            {
                "error_code": "USER_NOT_FOUND",
                "message": "Kullanıcı bulunamadı.",
                "argument": null
            }
        ]
    }
}

2. Discrepancy Between Basket and Amount​

If the total amount of the products sent under the basket parameter in the request does not match the amount parameter, the following error response is returned.

Discounts sent under the discounts parameter have a negative impact.

{
    "trace_id": "ef7c0a36-c8ae-XXce-adfb-39a3ea40ac2b",
    "response": {
        "errors": [
            {
                "error_code": "AMOUNTS_DONT_MATCH",
                "message": "Sepet ve Sipariş tutarları örtüşmüyor.",
                "argument": null
            }
        ]
    }
}

3. Discrepancy Between Amounts in the Basket​

Following errors are received due to discrepancies in the amount parameters sent within the basket.

If a different value is sent in the total_product_amount parameter than the total amount of the products in the basket_items, the following error is returned. discounts in this amount are not taken into account.

{
    "trace_id": "5b426641-7853-42XX-9ffe-08be01bfdf55",
    "response": {
        "errors": [
            {
                "error_code": "INVALID_TOTAL_PRODUCT_AMOUNT",
                "message": "Toplam ürün bedeli (total_product_amount) parametresi hatalı",
                "argument": null
            }
        ]
    }
}

If a different value is sent in the total_amount parameter than the total amount of products in the basket_items, the following error is returned. discounts in this amount are taken into account.

{
    "trace_id": "8a4ca0f9-9d28-4dXX-a585-1d49475967d0",
    "response": {
        "errors": [
            {
                "error_code": "INVALID_TOTAL_AMOUNT",
                "message": "Sepet toplam tutar (total_amount) parametresi hatalı",
                "argument": null
            }
        ]
    }
}

If a different value is sent in the total_discount_amount parameter than the total amount of discounts in the discounts parameter, the following error is returned.

{
    "trace_id": "b001f490-38b7-4XXc-81a9-b863d63846e5",
    "response": {
        "errors": [
            {
                "error_code": "INVALID_TOTAL_DISCOUNT_AMOUNT",
                "message": "Toplam indirim tutarı (total_discount_amount) parametresi hatalı",
                "argument": null
            }
        ]
    }
}

Values for

  • basket.total_discount_amount,

  • basket.basket_items[i].unit_price,

  • basket.basket_items[i].price,

  • basket.discounts[i].amount

can be equal to 0 (zero).

In this case, no error is received. But if these values are equal to 0 (zero) and there is only one product in the basket, the amount value becomes 0 (zero), and only in this case, the following error is received.

{
    "trace_id": "4f58e075-345e-48XX-8855-9453ceef7ee0",
    "response": {
        "errors": [
            {
                "error_code": "INVALID_AMOUNT_VALUE",
                "message": "Invalid amount. Please provide a valid, positive value.",
                "argument": "basket.totalProductAmount"
            },
            {
                "error_code": "INVALID_AMOUNT_VALUE",
                "message": "Invalid amount. Please provide a valid, positive value.",
                "argument": "basket.totalAmount"
            },
            {
                "error_code": "INVALID_AMOUNT_VALUE",
                "message": "Invalid amount. Please provide a valid, positive value.",
                "argument": "amount"
            }
        ]
    }
}

4. Use of the Same Order Number​

If a previously used order number in another payment session is used in the request, the following error response is returned.

{
    "trace_id": "8bc1d536-a1f6-4e81-835b-73XX5b28d081",
    "response": {
        "errors": [
            {
                "error_code": "ORDER_ID_EXISTS",
                "message": "Bu Order Id ile daha önceden bir oturum oluşturulmuş.",
                "argument": null
            }
        ]
    }
}
click here