LogoLogo
  • Welcome to Akinon Documentation
  • Products
    • ACC
    • Omnitron
    • Commerce
    • Order Management System (OMS)
    • Instore
    • Integrator
    • Marketplace Dashboard (MPD)
    • Project Zero (PZ)
    • Seller Center
    • Akifast
    • App Maker
  • API Reference
    • Welcome to Akinon API Reference
  • Omnitron
    • Getting Started
    • Integration
      • Product
        • Product
        • Pre-Product
        • Attribute
        • Attribute Value
        • Attribute Set
        • Product Image
      • Price
        • Price List
        • Product Price
        • Currency Unit Table
      • Stock
        • Stock List
        • Product Stock
      • Order
        • Get Orders
        • Search Order
        • Get Order Detail by Order Number
        • Get Order Item Detail
        • Orders ID Detail Integration
        • Orders Waiting to Send to ERP
        • Update Order and Order Item
        • Stock Reservation Release
        • Order Cancellation
        • Cancellation & Refund Pending Orders
        • Order Discount Items
        • Order Status Codes & Cancellation Statuses
      • Migration
        • Getting Started
        • User Migration
        • Address Migration
        • Old Order Migration
        • Old Order Item Migration
        • View Migration Progress
        • Currency Options
    • PIM
      • Attributes & Sets
      • Mapping
      • Localization
      • Media
    • Catalogue
      • Introduction
      • Price List
      • Stock List
      • Catalogue Item
      • Category Trees
      • Product Collection
      • Product Sorting
    • Channels
      • Introduction
      • Payments
      • Customers
    • Order
      • Getting Started
      • Fulfillment
      • Cancellations & Refunds
    • Retail Stores
      • Retail Stores
    • User Management
      • Roles & Permissions
      • Add & Remove
    • Whippy Ware
      • Introduction
      • Stock
      • Stock Lists
      • Stock List Rules
      • Stock Providers
      • Stock Locations
  • Omnitron OpenAPIs
    • Without Server
      • Customers
      • Reporting
      • Deleted Items
      • Pos
      • AttributeValues
      • Attribute Values
      • Providers
      • LDAPProviders
      • Healthcheck
      • LoyaltyTransactions
      • Policies
      • Exports
      • Dashboard
      • AuthTOTP
      • Price Lists
      • ProductPrices
      • Districts
      • Cities
      • Countries
      • Townships
      • PrometheusMetrics
      • Language
      • Content Types
      • Mappings
      • Applications
      • ApplicationPermissions
      • Error Reports
      • MailTemplates
      • UploadLogo
      • SalesChannelMarketPlaceAttributeSetConfig
      • SalesChannelCancellationRequestImage
      • SalesChannelCities
      • SalesChannelCancellationReasons
      • SalesChannelCargoCompany
      • SalesChannelProductImage
      • SalesChannelAttributeConfig
      • SalesChannelAttributeValueConfig
      • SalesChannelTownships
      • SalesChannelCustomers
      • SalesChannelFailedIntegrations
      • SalesChannelGetStockList
      • SalesChannelRetailStore
      • IntegrationActions
      • SalesChannelOrderShippingInfo
      • SalesChannelBatchRequests
      • SalesChannelAddresses
      • SalesChannelMarketPlaceAttributeSet
      • SalesChannelErrorReports
      • SalesChannelCategoryNodes
      • SalesChannelDistricts
      • SalesChannelProductStock
      • SalesChannelExtraProductStock
      • SalesChannelOrders
      • SalesChannelCancellationPlans
      • SalesChannelExtraProductPrices
      • SalesChannelProduct
      • SalesChannelAttributeSchemas
      • SalesChannelProductCategories
      • SalesChannelCancellationRequests
      • SalesChannelMarketPlaceAttributeValue
      • SalesChannelMappedProduct
      • SalesChannelMarketPlaceAttribute
      • SalesChannelOrderItem
      • SalesChannelProductPrice
      • SalesChannelCreateOrder
      • GetPriceList
      • SalesChannelCountries
      • SalesChannelGetPriceList
      • SalesChannelCategoryTree
    • With Server
      • Customers
      • Reporting
      • Deleted Items
      • Pos
      • AttributeValues
      • Attribute Values
      • Providers
      • LDAPProviders
      • Healthcheck
      • LoyaltyTransactions
      • Policies
      • Exports
      • Dashboard
      • AuthTOTP
      • Price Lists
      • ProductPrices
      • Districts
      • Cities
      • Countries
      • Townships
      • PrometheusMetrics
      • Language
      • Mappings
      • Content Types
      • Applications
      • ApplicationPermissions
      • Error Reports
      • MailTemplates
      • UploadLogo
      • SalesChannelMarketPlaceAttributeSetConfig
      • SalesChannelCancellationRequestImage
      • SalesChannelCities
      • SalesChannelCancellationReasons
      • SalesChannelCargoCompany
      • SalesChannelProductImage
      • SalesChannelAttributeConfig
      • SalesChannelAttributeValueConfig
      • SalesChannelTownships
      • SalesChannelCustomers
      • SalesChannelFailedIntegrations
      • SalesChannelGetStockList
      • IntegrationActions
      • SalesChannelRetailStore
      • SalesChannelOrderShippingInfo
      • SalesChannelBatchRequests
      • SalesChannelAddresses
      • SalesChannelMarketPlaceAttributeSet
      • SalesChannelErrorReports
      • SalesChannelDistricts
      • SalesChannelCategoryNodes
      • SalesChannelProductStock
      • SalesChannelExtraProductStock
      • SalesChannelCountries
      • SalesChannelOrders
      • SalesChannelProduct
      • SalesChannelCancellationPlans
      • SalesChannelExtraProductPrices
      • SalesChannelProductCategories
      • SalesChannelAttributeSchemas
      • SalesChannelCancellationRequests
      • SalesChannelMarketPlaceAttributeValue
      • SalesChannelMappedProduct
      • SalesChannelMarketPlaceAttribute
      • SalesChannelOrderItem
      • SalesChannelProductPrice
      • SalesChannelCreateOrder
      • GetPriceList
      • SalesChannelGetPriceList
      • SalesChannelCategoryTree
  • Commerce
    • Users
      • Getting Started
      • User Management & Authentication
      • Password & OTP Operations
      • User Profile & Segment Management
      • User Payment & Card Management
      • User Orders & Cancellations
      • Anonymous User Orders & Cancellations
      • User Support & Conversation
      • Captcha Validation
      • Currency & Akifast Operations
    • Checkout
      • Payment Related
      • Payment Strategy Related
      • Shipping Related
      • Independent Pages
    • Product
    • User Collections
    • Basket
    • Discount
    • Autocomplete
    • Breadcrumb
    • Pretty URLs
    • Menu
    • Widgets
    • Loyalty Accounts
    • Address Migration
    • Index Configuration
    • Favourite Products
    • User Address
    • Data Warehouse
    • Introduction
      • Filtering Parameters
    • Data Warehouse
    • Default
  • OMS
    • Package Services
    • Package Item Services
    • Package Denial Reason Services
    • Order Services
    • Order Item Services
    • Transfer Order Services
    • Transfer Item Services
    • Channel Services
    • Cancellation Plan Services
    • Cancellation Reason Services
    • Address Setup Services
    • City Services
    • District Services
    • Township Services
    • Stock Location Address Services
    • Webhook Setup Services
    • Webhook Event Services
    • Omnitron Order Webhooks
    • Undelivered Webhook Event Services
    • Inventory Discrepancy Services
    • OMS Setup Services
    • UI Settings Services
    • OMS Audit Events Service
    • Customer Address Services
    • Application Settings Services
    • Content Type Services
    • Customer Services
    • Channel Setup Services
    • Demo Data Service
    • Order Execution Plan Services
    • Invoice Services
    • Localization Services
    • Action Log Services
    • Order Log Services
    • Celery Metrics Service
    • Stock Location Services
    • Stock Location Address Services
    • Stock Location Sender Address Services
    • Stock Location Sender Address Setup Services
    • Cargo Company Condition Services
    • Permission Group Services
  • OMS OpenAPIs
    • Package Services
      • Default
    • Transfer Order Services
      • Default
  • Instore
    • Password Reset Services
  • Integrator
    • Projects
    • Flows
    • Logs
  • Seller Center
    • Languages
    • Categories
    • Introduction
    • Products
    • Packages
    • Orders
    • Claims
    • Shipping Methods
  • Akifast
    • Authentication
  • B2B
    • Quotation
    • Basket
    • Division
    • User
    • Staff User
    • Groups
    • Notification
    • Notification Template
  • Flows
    • Shipment Flows
    • Payment Flows
    • SMS Flows
    • Basket Offer Flows
Powered by GitBook

© 2025 Akinon. All rights reserved.

On this page
  • GET Discounts Available for Authenticated Users
  • GET Discounts to be Active in Future
  • GET Expired Discounts for Authenticated User
  • GET Discounts Used in Checkout Step

Was this helpful?

  1. Commerce

Discount

Omnitron offers a variety of promotions, including coupons, discount codes, and campaigns, to enhance the user experience. This guide provides comprehensive information about these discounts and how they are utilized by authenticated users.

GET Discounts Available for Authenticated Users

This method is used to list the discounts available for the authenticated user. The benefit_type parameter can take three values: fixed, percentage, and shipping_free. Note that for discounts, the benefit_type can only take fixed as a valid value.

Path: https://{commerce_url}/account/basket-offers/

Requirement: Authorization Token

Example Request

To retrieve information about discounts available for authenticated users, a GET request should be sent to the https://{commerce_url}/account/basket-offers/ endpoint. In the headers, set the Authorization header to include the api token for authentication. Here's an example of how to make the request using cURL:

import requests

url = "https://{commerce_url}/account/basket-offers/"

headers = {
	'Authorization': 'Token <token>',
	'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)

print(response.text)

Example Response

This response provides detailed information about a Special Offer discount, offering a fixed reduction of 50 TL. This discount is valid until January 1, 2025.

{
    "discounts": [
        {
            "label": "Special Offer",
            "amount": 50,
	        "percentage": null,
			"end_datetime": "2025-01-01T00:00:00Z",
			"start_datetime": "2020-02-12T13:45:00Z",
 			"currency": {
                "label": "TL",
                "value": "try"
            },
			"voucher_code": null,
			"offer_type": {
                "label": "Coupon",
                "value": "coupon"
            },
			"condition": {
                "type": "Amount",
                "value": null
            },
            "benefit_type": {
                "label": "Fixed",
                "value": "fixed"
            }
        }
    ],
    "total_discount": 50,
    "all_discounts": [
        {
            "label": "Special Offer",
            "amount": 50,
	        "percentage": null,
			"end_datetime": "2025-01-01T00:00:00Z",
			"start_datetime": "2020-02-12T13:45:00Z",
 			"currency": {
                "label": "TL",
                "value": "try"
            },
			"voucher_code": null,
			"offer_type": {
                "label": "Coupon",
                "value": "coupon"
            },
			"condition": {
                "type": "Amount",
                "value": null
            },
            "benefit_type": {
                "label": "Fixed",
                "value": "fixed"
            }
        }
    ]
}

GET Discounts to be Active in Future

This method is used to list discounts available for authenticated user that will be activated in the future. The benefit_type parameter can take three values: fixed, percentage, and shipping_free.

Path:https://{commerce_url}/account/future-basket-offers/

Requirement: Authorization Token

Example Request

To retrieve information about discounts available for authenticated users that will be activated in the future, a GET request should be sent to the https://{commerce_url}/account/future-basket-offers/ endpoint. In the headers, set the Authorization header to include the api token for authentication. Here's an example of how to make the request using cURL:

import requests

url = "https://{commerce_url}/account/future-basket-offers/"

headers = {
	'Authorization': 'Token <token>',
	'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)

print(response.text)

Example Response

This response indicates a Special Offer coupon that offers a 50% discount on purchases over 500 TL (Turkish Lira). This offer is valid from July 31, 2023, until July 3, 2024.

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "label": "Special Offer",
            "amount": 0,
            "percentage": 50,
            "end_datetime": "2024-07-03T12:52:58.438000Z",
            "start_datetime": "2023-07-31T12:52:55.914000Z",
            "currency": {
                "value": "try",
                "label": "TL"
            },
            "voucher_code": null,
            "offer_type": {
                "value": "coupon",
                "label": "Coupon"
            },
            "condition": {
                "type": "Amount",
                "value": 500
            },
            "benefit_type": {
                "value": "percentage",
                "label": "Percentage"
            }
        }
    ]
}

GET Expired Discounts for Authenticated User

This method is used to list expired discounts for authenticated user. The benefit_type parameter can take three values: fixed, percentage, and shipping_free.

Path: https://{commerce_url}/account/expired-basket-offers/

Requirement: Authorization Token

Example Request

To retrieve information about expired discounts for authenticated users, a GET request should be sent to the https://{commerce_url}/account/expired-basket-offers/ endpoint. In the headers, set the Authorization header to include the api token for authentication. Here's an example of how to make the request using cURL:

import requests

url = "https://{commerce_url}/account/expired-basket-offers/"

headers = {
	'Authorization': 'Token <token>',
	'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)

print(response.text)

Example Response

This response provides details about a previous Special Offer coupon that granted a 30% discount on purchases over 500 TL (Turkish Lira). However, this offer has now expired.

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "label": "Special Offer",
            "amount": 0,
            "percentage": 30,
            "end_datetime": "2023-07-25T13:16:28.155000Z",
            "start_datetime": "2023-07-25T13:12:53.936000Z",
            "currency": {
                "value": "try",
                "label": "TL"
            },
            "voucher_code": null,
            "offer_type": {
                "value": "coupon",
                "label": "Coupon"
            },
            "condition": {
                "type": "Amount",
                "value": 500
            },
            "benefit_type": {
                "value": "percentage",
                "label": "Percentage"
            }
        }
    ]
}

GET Discounts Used in Checkout Step

This method is used to list discounts used in the authenticated user's checkout step.

Path: https://{commerce_url}/account/discount-items/

Requirement: Authorization Token

Example Request

To retrieve information about discounts used in the authenticated user's checkout step, a GET request should be sent to the https://{commerce_url}/account/discount-items/ endpoint. In the headers, set the Authorization header to include the api token for authentication. Here's an example of how to make the request using cURL:

import requests

url = "https://{commerce_url}/account/discount-items/"

headers = {
	'Authorization': 'Token <token>',
	'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)

print(response.text)

Example Response

This response indicates a Special Offer with a discount amount of 127.97 TL (Turkish Lira). This offer was created on March 18, 2021, and the discount was applied to the order with the number "1608355573012183".

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "amount": "127.97",
            "created_date": "2021-03-18T08:53:07.888096Z",
            "currency": {
                "label": "TL",
                "value": "try"
            },
            "name": "Special Offer",
            "order_number": "1608355573012183"
        }
    ]
}
PreviousBasketNextAutocomplete

Was this helpful?