❗️ Brand product information
Method for retrieving product information by brand.
Request
GET
/nomenclature/composition
Headers
|
Name |
Description |
|
Authorization* |
Type: string Token received in response to the |
Responses
200 OK
Current brand nomenclature.
Body
application/json
{
"categories": [
{
"id": "some-uniq-identifier",
"name": "Milk'",
"parentId": "some-uniq-identifier"
}
],
"items": [
{
"barcode": {
"type": "ean13",
"value": "987654321098",
"values": [
"987654321098",
"987654321099",
"987654321000"
],
"weightEncoding": "ean13-tail-gram-4"
},
"categoryId": "some-uniq-identifier",
"description": {
"composition": "normalised milk (whole milk, skimmed milk)",
"expiresIn": "60",
"general": "string",
"nutritionalValue": "600 kcal, 8g protein, 3.2g fat, 40g carbohydrates",
"packageInfo": "carton",
"purpose": "string",
"storageRequirements": "from −5 to 5 degrees Celsius",
"vendorCountry": "Russia",
"vendorName": "Dairy Plant LLC"
},
"exciseValue": "ССН",
"id": "some-uniq-identifier",
"images": [
{
"order": 0,
"url": "https://ya.ru/images/image_1.jpg"
}
],
"isCatchWeight": false,
"labels": [
"adult",
"prescription"
],
"limitPerOrder": 3,
"markingType": "default",
"measure": {
"quantum": 0.3,
"unit": "GRM",
"value": 1000
},
"name": "Milk",
"vat": -1,
"vendorCode": "string",
"vendorInn": "string",
"volume": {
"unit": "DMQ",
"value": 100
}
}
]
}
|
Name |
Description |
|
items* |
Type: BrandItems[] Brand product list |
|
categories |
Type: NomenclatureCategories[] Product categories. |
BrandItems
Brand product list
|
Name |
Description |
|
barcode* |
Type: Barcode Product barcode |
|
description* |
Type: ItemDescription Product description |
|
id* |
Type: string Internal unique product identifier in the Partner’s system Example: Max length: |
|
images* |
Type: BrandImages[] Product image |
|
isCatchWeight* |
Type: boolean Parameter indicating whether the product is catch-weight or not. For catch-weight products it is |
|
measure* |
Type: Measure Product measurement characteristic, e.g., weight or volume |
|
name* |
Type: string Product name Example: |
|
vendorCode* |
Type: string Product article in the Partner’s system. |
|
categoryId |
Type: string Internal unique category identifier in the Partner’s system from the #/categories block. Example: Max length: |
|
exciseValue |
Type: string Excise type. Example, ССН (Cyrillic; stands for “сахаросодержащие напитки”, sugar-containing beverages). Enum: |
|
labels |
Type: string[] List of special product characteristics. For example,
Example: |
|
limitPerOrder |
Type: integer Order quantity limit per order (per customer). Only for special cases of high demand or temporary promotions. For catch-weight products it is calculated as 'how many product quanta can be put in the cart'. Example: |
|
markingType |
Type: string Type of mandatory product marking. Example: |
|
vat |
Type: integer VAT included in the cost, as a percentage. Available values: Example: |
|
vendorInn |
Type: string Passed only in rare cases when products from different sellers with different details are placed in one store. When passing INN per product, verify that you provide data for the entire assortment, not selectively. If all products of your brand in the receipt are sold by a single seller, passing the INN value in the /composition method is not required. |
|
volume |
Type: Volume Volume occupied by the product. Useful for delivery calculation. Can significantly differ from the nominal product volume. For example, gift sets, large packages. |
NomenclatureCategories
Product categories.
|
Name |
Description |
|
id* |
Type: string Internal unique category identifier in the Partner’s system Example: Max length: |
|
name* |
Type: string Category name. Example: |
|
parentId |
Type: string Internal unique identifier of the parent category in the Partner’s system for tree structure. Example: Max length: |
Barcode
Product barcode
|
Name |
Description |
|
type* |
Type: string Barcode type Example: Enum: |
|
value* |
Type: string Product barcode. If there’s no barcode in the Partner’s system, then you can pass a random number (unique for each product) Example: |
|
weightEncoding* |
Type: string Weight encoding algorithm in the barcode Example: Enum: |
|
values |
Type: string[] List of product barcodes Example: |
ItemDescription
Product description
|
Name |
Description |
|
composition |
Type: string Composition information Example: |
|
expiresIn |
Type: string Shelf life in days Example: |
|
general |
Type: string General product description |
|
nutritionalValue |
Type: string Nutritional value Example: |
|
packageInfo |
Type: string Package information Example: |
|
purpose |
Type: string Purpose |
|
storageRequirements |
Type: string Storage requirements Example: |
|
vendorCountry |
Type: string Country of origin Example: |
|
vendorName |
Type: string Producer Example: |
BrandImages
|
Name |
Description |
|
url* |
Type: string<uri> Link to product image for download Example: |
|
order |
Type: integer Ascending sort order Example: Min value: |
Measure
Product measurement characteristic, e.g., weight or volume
|
Name |
Description |
|
unit* |
Type: string Unit of measurement. MLT – milliliters, GRM – grams. Example: Enum: |
|
value* |
Type: integer Measurement value. For catch-weight products pass 1000. For unit products, use the actual product weight. Example: |
|
quantum |
Type: number<float> Smallest quantity of product (quantum) available for ordering. Value is calculated from Example: |
Volume
Volume occupied by the product. Useful for delivery calculation. Can significantly differ from the nominal product volume. For example, gift sets, large packages.
|
Name |
Description |
|
unit* |
Type: string Volume measurement unit Example: Enum: |
|
value* |
Type: integer Volume value Example: Min value: |
400 Bad Request
Request error. The response is expected to contain an array with an object from the error list.
ErrorItem
|
Name |
Description |
|
code* |
Type: integer Numeric error code agreed with Yango Deli. Example: |
|
description* |
Type: string Error description Example: |
401 Unauthorized
Authorisation failed.
Body
application/json
{
"reason": "Access token has been expired. You should request a new one"
}
|
Name |
Description |
|
reason* |
Type: string The reason why authorisation failed. Example: |
500 Internal Server Error
Internal server errors. The response is expected to contain an array with an object from the error list.
No longer supported, please use an alternative and newer version.