Product Data
Product Simple Data
{
"pk": 12227,
"name": "Kırmızı Tişört",
"base_code": "1KBATC0231",
"sku": "1KBATC0231001",
"product_type": "0",
"is_active": true,
"parent": null,
"attributes": {
"boyut": "34X34",
"renk": "001",
"uretim_yeri": "Türkiye",
"materyal": "%100 POLYESTER",
},
"productimage_set": [
{
"pk": 20044,
"status": "active",
"image": "http://localhost:8001/media/products/2021/10/17/12227/1bfe74b4-175e-4c1a-80f2-b355feae498c.jpg"
}
],
"attribute_set": 2,
"productization_date": "2017-01-23T16:40:58.578504Z"
}Mapping Data in the Product
This refers to the result of the mapping service applied to the product data, which includes the characteristics of the sales channel on Akinon.
The mapped_attributes property name is included in the product data and contains the mapping results that the company requires.
In the mapped_attribute_values section, you can access the attribute’s Omnitron ID along with the special code in the sales channel (remote_id) and other attribute information. The attribute_set_id and attribute_set_name indicate which attribute set this product corresponds to in Omnitron. The attribute_set_remote_id is the unique code representing the attribute set in the sales channel.
Stock Data in the Product
This refers to the inclusion of stock information in the product data.
The data is contained within productstock in the product data, which includes:
stock: The quantity of available stock for sale.
stock_list: The ID information of the stock list in Akinon.
unit_type: The unit of measurement for the quantity.
sold_quantity_unreported: The reserved stock quantity in Akinon.
modified_date: The date of the last update.
Price Data in the Product
This refers to the inclusion of price information in the product data.
The data is contained within productprice in the product data, which includes:
price: The sale price of the product.
price_list: The ID information of the price list in Akinon.
currency_type: The unit of currency for the price information.
tax_rate: The tax rate applied to the product.
retail_price: The store price of the product.
discount_percentage: The discount information applied to the product.
modified_date: The date of the last update.
Category Data in the Product
This refers to the inclusion of category information in the product data.
The category data is contained within category_nodes in the product data, which includes:
name: The name of the category.
Synchronous or Asynchronous Sales Channel Process
The is_sync parameter relates to whether the product process will be synchronous or asynchronous.
If operations such as insert, update, or delete are processed immediately upon being sent to the sales channel, and the result is returned in the response, then this is a synchronous process. In synchronous operations, the commands related to the product must return data in the ProductBatchRequestResponseDto format:
classProductBatchRequestResponseDto(status: channel_app.omnitron.constants.ResponseStatus, sku: str, remote_id: Optional[str] = '', message: Optional[str] = '')
If the processes are handled asynchronously, a code must be returned from the relevant sales channel for later verification (remote_batch_request_id).
If a process is asynchronous but has pre-checks in the sales channel, and some records are processed while immediate results are shared for others, the errors for problematic records must still be indicated, even though the process is asynchronous. These issues appear in the error reports.
Source code of the channel_app.core.data item:
Was this helpful?

