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 Product Price
  • Create or Update Product Price
  • Bulk Create or Update Product Price

Was this helpful?

  1. Omnitron
  2. Integration
  3. Price

Product Price

This article provides comprehensive information and documentation on a set of API methods specifically designed to handle product prices. By leveraging these methods, users can retrieve, search, and create product prices, allowing for seamless integration and management of product price data within the system.

The article includes detailed explanations, parameter descriptions, and usage examples for each API method, empowering developers to effectively utilize the capabilities provided by the product price API.

Get Product Price

Product Price is used to assign a price to a product. Product price objects relate to a price list. Thus, a catalog item can have a price via relation between the catalog, price list and product price.

Parameter

Data Type

In

Description

api_token

string

header

limit

integer

query

Amount of items per page that will be returned

page

string

query

Page number to return

Note: If limit and page parameters are not sent, response returns 10 product prices by default.

Request GET

GET request is used for reading current product prices from Omnitron (both i1 and v1 can be used). This request is expected to return all product prices data according to page and limit parameters.

‘content_type’ header represents the response type.

‘Authorization’ header is a required header for authentication. You can retrieve api_token with login.

Path: product_price/


import requests

url = "https://{customer_api_url}/api/v1/product_price/"
api_token = "f532eXXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'content-type': 'application/json',
    'Authorization': 'Token {}'.format(api_token)
}

params = {
    'limit': '2',
    'page': '1'
}

response = requests.get(url, headers=headers , params=params)
print(response.text)

Response

Returns product prices as paginated. Successful response status is expected to be HTTP-200 OK. If ‘i1’ is used in the request, the response may not contain some of the below fields (properties).

Resource properties are in Python format.

Property

Data Type

Description

product

Related product id (product_sku for i1)

Related product ID (product_sku for i1)

price

float

Product price

currency_type

string enum

Currency of the price field, default currency is ‘try’

tax_rate

float

Ad valorem tax rate (Ex: 18.00)

retail_price

float

Retail price

price_list

id

Price list which includes this product

discount_percentage

float

(retail_price-price)/retail_price)*100

extra_field

Json

Campaign and discount info regarding the price

modified_date

datetime

Last modified date of the product price

created_date

datetime

Shows the date when the product price was created

“count” shows how many product prices exist in the system.

“next” shows the next cursor url to retrieve the desired product prices.

“previous” shows the previous page url to retrieve the desired product prices.

“results” shows every product price property with detailed field descriptions for the current page.


{
  "count": 1013,
  "next": "https://{customer_api_url}/api/v1/product_price/?limit=2&page=2",
  "previous": null,
  "results": [
    {
            "pk": 2,
            "product": 913,
            "price": "62.44",
            "price_list": 1,
            "currency_type": "try",
            "tax_rate": "8.00",
            "retail_price": "249.75",
            "extra_field": {},
            "discount_percentage": "75.00",
            "modified_date": "2017-01-23T18:29:23.716095Z",
            "created_date": "2017-01-23T00:20:46.274433Z"
        },
        {
            "pk": 3,
            "product": 911,
            "price": "62.44",
            "price_list": 1,
            "currency_type": "try",
            "tax_rate": "8.00",
            "retail_price": "249.75",
            "extra_field": {},
            "discount_percentage": "75.00",
            "modified_date": "2017-01-23T18:29:22.861177Z",
            "created_date": "2017-01-23T00:20:46.321359Z"
        },
        {
            "pk": 4,
            "product": 910,
            "price": "62.44",
            "price_list": 1,
            "currency_type": "try",
            "tax_rate": "8.00",
            "retail_price": "249.75",
            "extra_field": {},
            "discount_percentage": "75.00",
            "modified_date": "2017-01-23T18:29:22.390819Z",
            "created_date": "2017-01-23T00:20:46.370001Z"
        }
  ]
}

Create or Update Product Price

This service has the upsert logic. If the price list has the product SKU, the price of the product will be updated with the given parameters. If there is no product SKU available in the price list, a price will be created in the list with the product SKU.

To create or update the price of the product, it is necessary to know the ID of the price list. How to get the price list ID and other details are explained under this section.

Parameter

Data Type

Description

id

id

Product Price ID

product

id string

Related product ID (product_sku for i1)

price

float

Sale price

price_list

id

Price list which includes this product

currency_type

string enum

Currency unit

tax_rate

float

Body

retail_price

float

Retail price

discount_percentage

float

(retail_price-price)/retail_price)*100

extra_field

Json

Campaign and discount info for regarding price

Request POST

POST request is used to create a new product price object. ‘Product’ and ‘price_list’ are unique_together fields.

‘content_type’ header represents the response type.

‘Authorization’ header is a required header for authentication. You can retrieve api_token with login.

Path: i1/product_price/


import requests
import json

url = "https://{customer_api_url}/api/i1/product_price/"
api_token = "f532eXXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'content-type': 'application/json',
    'Authorization': 'Token {}'.format(api_token)
}

data = {
    "product": 1,
    "price": "62.44",
    "price_list": 6,
    "currency_type": "usd",
    "tax_rate": "8.00",
    "retail_price": "249.75"
}

response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.text)

Response

Returns the created object data after successfully creating the object. Successful response status is expected to be HTTP-201 Created.

Resource properties are in Python format.

Property

Data Type

Description

id

integer

ID number of product price

product_sku

string

Product SKU

price

float

Product price

currency_type

string enum

Currency of the price field, default currency is ‘try’

tax_rate

float

Ad valorem tax rate (Ex: 18.00)

retail_price

float

Retail price

price_list

id

Price list which includes this product

extra_field

Json

Campaign and discount info for regarding price


{
    "pk": 12842,
    "product": 1,
    "price": "62.44",
    "price_list": 6,
    "currency_type": "usd",
    "tax_rate": "8.00",
    "retail_price": "249.75",
    "extra_field": {},
}

Bad Request Responses

When the requested action cannot be executed, API gives an explanation about the request.

When creating a product price, product and price_list combination should be unique. Otherwise, the below error appears (‘product’ and ‘price_list’ are unique_together fields).

{
    u'non_field_errors': [ErrorDetail(string=u'The fields product, price_list must make a unique set.', code=u'unique')]
}

name and code fields should be unique.

{
    'name': [ErrorDetail(string=u'price list with this name already exists.', code=u'unique')]
}
{
    'code': [ErrorDetail(string=u'price list with this code already exists.', code=u'unique')]
}

Bulk Create or Update Product Price

This service has the same logic as the Create or Update Product Price Service. The only difference is that this service accepts a maximum of 10 instances to be updated or created at a time. It also accepts batch_id as a parameter which is described in the table below.

Parameter

Data Type

Description

Required

product__sku

string

Product SKU field

YES

price

float

Sale price

YES

price_list

id

Price list which includes this product

YES

currency_type

string enum

Currency unit

NO. Default is ‘try’

tax_rate

float

Body

NO

retail_price

float

Retail price

NO

discount_percentage

float

(retail_price-price)/retail_price)*100

NO

extra_field

Json

Campaign and discount info regarding the price

NO

batch_id

string

Enables to track your actions. The value does not insert in the Omnitron Database. It will return in the response.

NO

Request POST

POST request is used to create a new product price object. ‘Product’ and ‘price_list’ are unique_together fields.

‘content_type’ header represents the response type.

‘Authorization’ header is a required header for authentication. You can retrieve api_token with login.

Path: /api/i1/product_price/bulk_upsert/


import requests
import json

url = "https://{customer_api_url}/api/i1/product_price/bulk_upsert/"
api_token = "f532eXXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'content-type': 'application/json',
    'Authorization': 'Token {}'.format(api_token)
}

data = [
    {
        "product_sku": "SKU-001",
        "price": "62.44",
        "price_list": 6,
        "currency_type": "usd",
        "tax_rate": "8.00",
        "retail_price": "249.75",
        "batch_id": "2423uh2u-234-234-23-42342"
    },
    {
        "product_sku": "SKU-001",
        "price": "62.44",
        "price_list": 6,
        "currency_type": "usd",
        "tax_rate": "8.00",
        "retail_price": "249.75",
        "batch_id": "2423uh2u-234-234-23-42342"
    },
    {
        "product_sku": "SKU-003",
        "price": "62.44",
        "price_list": 6,
        "currency_type": "usd",
        "tax_rate": "8.00",
        "retail_price": "249.75",
        "batch_id": "2423uh2u-234-234-23-42342"
    },
]

response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.text)

Response

Returns each object status information. Successful response status is expected to be HTTP-200 Successful.

Resource properties are in Python format.

Property

Data Type

Description

product__sku

string

Product SKU

created_or_updated

boolean

True means Product Price is created. False means Product Price is updated.

success

boolean

Shows whether the operation is successfully completed or not.

batch_id

string

Given batch_id

errors

string

If the operation has failed, it shows the reason.

[
    {
        "sku": "SKU-001",
        "created_or_updated": False,
        "success": True,
        "batch_id": "2423uh2u-234-234-23-42342"
    },
    {
        "product_sku": "SKU-002",
        "created_or_updated": True,
        "success": True,
        "batch_id": "2423uh2u-234-234-23-42342"
    },
    {
        "product_sku": "SKU-003",
        "error": "Error Message",
        "success": False,
        "batch_id": "2423uh2u-234-234-23-42342"
    },
]
PreviousPrice ListNextCurrency Unit Table

Last updated 16 days ago

Was this helpful?

The API key of the customer’s account