Get

[POST] …/v1/RetailOperationList/Get

Возвращает операцию розничной торговли.

Входные параметры

Название Тип данных Обязательность Описание
operating_cash_ids Array of Int64 Необязательный Массив ID касс
retail_card_ids Array of Int64 Необязательный Массив ID карт покупателей
customer_ids Array of Int64 Необязательный Массив ID покупателей
start_date Int64 Необязательный Дата начала периода в формате unix time в секундах
end_date Int64 Необязательный Дата окончания периода в формате unix time в секундах
search String Необязательный Поиск про значениям параметров: item/name - Наименование номенклатуры, item/articul - Артикул номенклатуры, item/code - Код номенклатуры, document/code - Код чека, document/card/barcode_value - Штрих-код карты покупателя, document/card/customer/full_name - ФИО покупателя
limit Int32 Необязательный Количество возвращаемых элементов выборки
offset Int32 Необязательный Смещение от начала выборки

Пример запроса

{
    "operating_cash_ids": [1],
    "retail_card_ids": [1],
    "customer_ids": [1],
    "start_date": 1712345678,
    "end_date": 1712345678,
    "search": "example",
    "sort_orders": [
        {
          "column": "Code",
          "direction": "ASC"
        }
    ],
    "limit": 1,
    "offset": 1
}

Выходные параметры

Название Тип данных Описание
result Array of RetailOperationList Массив операций розничной торговли
next_offset Int32 Смещение для следующей выборки данных
total Int32 Количество элементов выборки

Пример ответа

{
    "ok": true,
    "result": [
        {
            "uuid": "03033709-77b1-4a9e-91ac-555a43090a44",
            "has_storno": true,
            "storno_uuid": "03033709-77b1-4a9e-91ac-555a43090a44",
            "document": {
                "session": {
                    "uuid": "6ab5087b-64fa-4cd2-8bc9-d5099e0fd45c",
                    "code": "WEB-0000004",
                    "operating_cash_id": 1,
                    "start_date": 1592573622,
                    "start_user": {
                        "id": 1,
                        "full_name": "John Fitzgerald Kennedy",
                        "main_phone": "998123456789",
                        "user_group": {
                            "id": 1,
                            "parent_id": 1,
                            "name": "Administrators",
                            "child_count": 1,
                            "last_update": 1529755889
                        },
                        "enable_hints": true,
                        "system": true,
                        "last_update": 1532276019,
                        "first_name": "John",
                        "last_name": "Kennedy",
                        "middle_name": "Fitzgerald",
                        "sex": "Male",
                        "date_of_birth": "1993-12-21",
                        "address": "456 Elm Street, Suite 3, Los Angeles, CA 90001, USA",
                        "phones": "998123456789",
                        "email": "example@example.com",
                        "description": "example",
                        "login": "Admin",
                        "can_authorize": true,
                        "active": true,
                        "language_code": "RUS"
                    },
                    "start_amount": 10000.0,
                    "close_date": 1592573622,
                    "close_user": {
                        "id": 1,
                        "full_name": "John Fitzgerald Kennedy",
                        "main_phone": "998123456789",
                        "user_group": {
                            "id": 1,
                            "parent_id": 1,
                            "name": "Administrators",
                            "child_count": 1,
                            "last_update": 1529755889
                        },
                        "enable_hints": true,
                        "system": true,
                        "last_update": 1532276019,
                        "first_name": "John",
                        "last_name": "Kennedy",
                        "middle_name": "Fitzgerald",
                        "sex": "Male",
                        "date_of_birth": "1993-12-21",
                        "address": "456 Elm Street, Suite 3, Los Angeles, CA 90001, USA",
                        "phones": "998123456789",
                        "email": "example@example.com",
                        "description": "example",
                        "login": "Admin",
                        "can_authorize": true,
                        "active": true,
                        "language_code": "RUS"
                    },
                    "closed": true,
                    "close_amount": 10000.0,
                    "last_update": 1592573622
                },
                "uuid": "a0ac4d96-f193-4c15-8c9d-5e9e5fe78307",
                "date": 1635860191,
                "code": "1-0000210",
                "status": "Closed",
                "cashier": {
                    "id": 1,
                    "full_name": "John Fitzgerald Kennedy",
                    "main_phone": "998123456789",
                    "user_group": {
                        "id": 1,
                        "parent_id": 1,
                        "name": "Administrators",
                        "child_count": 1,
                        "last_update": 1529755889
                    },
                    "enable_hints": true,
                    "system": true,
                    "last_update": 1532276019,
                    "first_name": "John",
                    "last_name": "Kennedy",
                    "middle_name": "Fitzgerald",
                    "sex": "Male",
                    "date_of_birth": "1993-12-21",
                    "address": "456 Elm Street, Suite 3, Los Angeles, CA 90001, USA",
                    "phones": "998123456789",
                    "email": "example@example.com",
                    "description": "example",
                    "login": "Admin",
                    "can_authorize": true,
                    "active": true,
                    "language_code": "RUS"
                },
                "is_return": true,
                "seller": {
                    "id": 1,
                    "full_name": "John Fitzgerald Kennedy",
                    "main_phone": "998123456789",
                    "user_group": {
                        "id": 1,
                        "parent_id": 1,
                        "name": "Administrators",
                        "child_count": 1,
                        "last_update": 1529755889
                    },
                    "enable_hints": true,
                    "system": true,
                    "last_update": 1532276019,
                    "first_name": "John",
                    "last_name": "Kennedy",
                    "middle_name": "Fitzgerald",
                    "sex": "Male",
                    "date_of_birth": "1993-12-21",
                    "address": "456 Elm Street, Suite 3, Los Angeles, CA 90001, USA",
                    "phones": "998123456789",
                    "email": "example@example.com",
                    "description": "example",
                    "login": "Admin",
                    "can_authorize": true,
                    "active": true,
                    "language_code": "RUS"
                },
                "return_reason": {
                    "id": 1,
                    "name": "Не понравилось",
                    "description": "example",
                    "enabled": true,
                    "last_update": 1593611279
                },
                "card": {
                    "id": 2,
                    "group": {
                        "id": 1,
                        "parent_id": 0,
                        "name": "карты 5",
                        "child_count": 0,
                        "last_update": 1655116137
                    },
                    "customer": {
                        "id": 1,
                        "region": {
                            "id": 1,
                            "parent_id": 0,
                            "name": "Samarkand",
                            "last_update": 1718702656
                        },
                        "group": {
                            "id": 1,
                            "parent_id": 0,
                            "name": "Покупатели",
                            "last_update": 1718202013,
                            "child_count": 0
                        },
                        "last_purchase": 0,
                        "deleted_mark": false,
                        "last_update": 1718711661,
                        "first_name": "Megan",
                        "last_name": "Williams",
                        "middle_name": "Ann",
                        "full_name": "Megan Ann Williams",
                        "sex": "Female",
                        "date_of_birth": "1964-12-22",
                        "address": "Feliciashire",
                        "main_phone": "998952087619",
                        "phones": "+998952087619",
                        "email": null,
                        "refer_id": 1,
                        "description": "Customer 4"
                    },
                    "barcode_value": "12345678",
                    "barcode_type": {
                        "id": 1,
                        "name": "EAN13",
                        "last_update": 1533817902
                    },
                    "promo": {
                        "id": 1,
                        "name": "Накопительная",
                        "type": {
                            "id": 1,
                            "name": "Бонусная система",
                            "last_update": 1664715033
                        },
                        "active": false,
                        "days": [
                            1
                        ],
                        "start_time": "00:00:00",
                        "end_time": "23:59:00",
                        "start_date": "2023-12-11",
                        "end_date": "2024-01-11",
                        "description": null,
                        "sub_type": 0,
                        "priority": 1,
                        "last_update": 1719234620
                    },
                    "bonus_amount": 10000.1,
                    "date": 1541331489,
                    "unlimited": true,
                    "last_purchase": 1541331489,
                    "expiry_date": "2018-12-04",
                    "enabled": true,
                    "last_update": 1542217079
                },
                "amount": 1.1,
                "agregate_status": "Agregated",
                "last_update": 1641537703
            },
            "stock_id": 1,
            "item": {
                "id": 1,
                "group": {
                    "id": 1,
                    "parent_id": 1,
                    "name": "Бакалея",
                    "path": "Продукты/Бакалея",
                    "child_count": 1,
                    "last_update": 1533619486
                },
                "department": {
                    "id": 1,
                    "name": "Напитки",
                    "last_update": 1671689500
                },
                "vat": {
                    "id": 1,
                    "value": 12,
                    "name": "12%",
                    "enabled": true,
                    "last_update": 1672188628
                },
                "barcode_list": "9582638638288, 2042993381221",
                "base_barcode": "9582638638288",
                "unit": {
                    "id": 1,
                    "name": "Кг",
                    "type": 1,
                    "description": "Килограмм",
                    "kkm_code": 235,
                    "last_update": 1713435678
                },
                "unit2": {
                    "id": 1,
                    "name": "Кг",
                    "type": 1,
                    "description": "Килограмм",
                    "kkm_code": 235,
                    "last_update": 1713435678
                },
                "color": {
                    "id": 1,
                    "name": "Красный",
                    "last_update": 1671716048
                },
                "size": {
                    "id": 1,
                    "name": "S",
                    "last_update": 1671715998
                },
                "brand": {
                    "id": 1,
                    "name": "Coca-cola",
                    "last_update": 1671716103
                },
                "producer": {
                    "id": 1,
                    "name": "Coca-Cola Co.",
                    "last_update": 1688063968
                },
                "country": {
                    "id": 1,
                    "name": "СОЕДИНЕННЫЕ ШТАТЫ",
                    "fullname": "Соединенные Штаты Америки",
                    "code": "840",
                    "alfa2": "US",
                    "alfa3": "USA",
                    "last_update": 1535245932
                },
                "compound": true,
                "deleted_mark": false,
                "image_url": "https://cdn.regos.uz/5fbc650b-6166-4e1b-8864-f93c0617bbf8/i_1678063359_905ee850-3e41-4ec9-b70a-b78b5d7d52f0.png",
                "parent_id": 1,
                "has_child": false,
                "last_update": 1688064039,
                "type": "Item",
                "code": 1,
                "name": "Coca-Cola",
                "fullname": "Coca-cola 0.5l",
                "description": "Состав: вода, сахар, краситель.",
                "articul": "4780069000017",
                "kdt": 1,
                "min_quantity": 1,
                "icps": "02202002001000000",
                "assemblable": true,
                "disassemblable": true,
                "is_labeled": true,
                "comission_tin": "32641859724615",
                "package_code": "example123",
                "origin": "BuyingAndSelling",
                "partner_id": 1
            },
            "order": 1,
            "quantity": 1.1,
            "price": 10000.1,
            "price2": 10000.1,
            "promo_id": 1,
            "vat_value": 12.1,
            "last_update": 1693946880
        }
    ]
}