DataMobile

docs/logs (PUT)

Тип метода

PUT

Назначение

Передача записанных в документе строк

Где используется

В документах

Запрос

Параметры

Наименование Тип Описание
username string Имя пользователя
device_id string Идентификатор устройства

Тело

Наименование Тип Описание Значения
doc_detail object Объект строки документа -
doc_id string Идентификатор документа -
operation_type int Тип операции 0 – подбор
1 – размещение

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

Запись строки с обычным товаром

http://192.168.1.1/DM/hs/DataMobileExch/api/docs/logs?device_id=1&username=Администратор

{
    "detail": {
        "marking": {
            "raw_barcode": "",
            "tnvd": "",
            "raw_mrc": "",
            "decoded_mrc": "",
            "sn": "",
            "ean": "",
            "mark": "",
            "gtin": ""
        },
        "egais": {
            "blank_b": "",
            "blank_a": "",
            "bate_bottling": "",
            "mark": "",
            "alcocode": ""
        },
        "weight_task": 0,
        "limit_qty": 0,
        "qty": 1,
        "sn": "",
        "pack": "",
        "tare": {
            "name": "",
            "barcode": ""
        },
        "box_pack": "",
        "created_at": 1643969541,
        "price": 0,
        "pack_attributes": "",
        "changed_price": 0,
        "gs1_barcode": "",
        "data_matrix_barcode": "",
        "barcode": {
            "is_deleted": false,
            "use_sn_mode": 2,
            "unit_coef": 1,
            "unit_name": "",
            "value": ""
        },
        "date": "04.02.2022 13:12:21",
        "art": {
            "barcodes": [],
            "rest": 0,
            "sn_types": [],
            "measure_type": 0,
            "is_deleted": false,
            "is_use_sn": false,
            "price_discount": 0,
            "price": 0,
            "attributes": {
                "attr_10": "",
                "attr_9": "",
                "attr_8": "",
                "attr_6": "",
                "attr_5": "",
                "attr_4": "",
                "attr_3": "",
                "attr_2": "",
                "attr_7": "",
                "attr_1": ""
            },
            "name": "Harvest White",
            "mark_type": 0,
            "id": "8U-9936b201-c444-11eb-b08f-00a0c600004800000000-0000-0000-0000-000000000000"
        },
        "group_row_id": "",
        "row_id": 8,
        "cell": {
            "name": "",
            "barcode": "195171589514805721134711768197818530411"
        },
        "attributes": [
      {
            "number": 1,
        "form_id": "123",
        "value": "id342553453456346",
        "value_name": "Наименование значения доп. формы",
        },
        {
            "number": 2,
        "form_id": "123",
        "value": "Строка",
        "value_name": "Наименование значения доп. формы",
        }
    ]
    },
    "operation_type": 0,
    "doc_id": "d82-b322e1a5-859b-11ec-aa42-18c04d302a2e"
}

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

Запись строки с ЕГАИС товаром

http://192.168.1.1/DM/hs/DataMobileExch/api/docs/logs?device_id=1&username=Администратор

{
    "detail": {
        "egais": {
            "blank_b": "",
            "blank_a": "",
            "date_bottling": "",
            "mark": "173400005111381018001QNWO6T64S2UQKT26P4BWQGNIVICB72P7AZ3XCZK45K5MRHO2NNGNXW47Q6PI5BDZG3F5TKP52IU6WP4UETB5BLFT4KB3VHYLT5K6HF7F7YIDD67FIEC4EURK2CDEM4VUQ",
            "alcocode": ""
        },
        "date": "15.02.2022 13:34:24",
        "pack_attributes": "",
        "created_at": 1644921264,
        "weight_task": 0,
        "barcode": {
            "is_deleted": false,
            "use_sn_mode": 2,
            "unit_coef": 1,
            "unit_name": "",
            "value": ""
        },
        "qty": 1,
        "box_pack": "01000000014611219000176673",
        "pack": "",
        "marking": {
            "raw_barcode": "",
            "tnvd": "",
            "raw_mrc": "",
            "decoded_mrc": "",
            "mark": "",
            "sn": "",
            "ean": "",
            "gtin": ""
        },
        "limit_qty": 0,
        "tare": {
            "name": "",
            "barcode": ""
        },
        "price": 0,
        "data_matrix_barcode": "",
        "barcode": {
            "is_deleted": false,
            "use_sn_mode": 2,
            "unit_coef": 1,
            "unit_name": "",
            "value": ""
        },
        "changed_price": 0,
        "art": {
            "barcodes": [],
            "rest": 0,
            "measure_type": 0,
            "is_deleted": false,
            "is_use_sn": false,
            "sn_types": [],
            "price": 0,
            "attributes": {
                "attr_9": "",
                "attr_8": "",
                "attr_10": "",
                "attr_7": "",
                "attr_6": "",
                "attr_5": "",
                "attr_4": "",
                "attr_3": "",
                "attr_2": "",
                "attr_1": ""
            },
            "mark_type": 0,
            "price_discount": 0,
            "name": "Российское шампанское брют белое \"Абрау-Дюрсо\"",
            "id": ""
        },
        "sn": "",
        "gs1_barcode": "",
        "cell": {
            "name": "",
            "barcode": ""
        },
        "egais_art": {
            "sn": "",
            "is_need_date_bottling": true,
            "is_need_blank_b": false,
            "is_need_blank_a": false,
            "type_alco": "",
            "percent_alco": 0,
            "is_registered": false,
            "capacity": 0,
            "importer": "",
            "box_coef": 1,
            "manufacturer": "",
            "alcocode": "",
            "name": "Российское шампанское брют белое \"Абрау-Дюрсо\"",
            "id": "8e-00000000-0000-0001-2389-000001423569"
        },
        "group_row_id": "",
        "row_id": 27
    },
    "operation_type": 0,
    "doc_id": "d82-59805049-8014-11ec-941f-902b346e641d"
}

Пример #3

Получение строк задания документа

{
    "art": {
        "id": "8U-9936b201-c444-11eb-b401с-00a0c600004800000000-0000-0000-0000-000000000000"
    },
    "cell": {
        "barcode": "195171589514805721134711768197818530411"
    },
    "unit_id": "GUID_UNIT_2",
  "unit_qty": 5,
  "unit_name": "UNIT_2_NAME",
  "unit_coef": 100,
    "limit_qty": 10,
    "qty": 2,
    "sn": "",
    "attributes": [
    {
          "number": 1,
      "form_id": "123",
      "value": "id342553453456346",
      "value_name": "Наименование значения доп. формы",
      },
      {
          "number": 2,
      "form_id": "123",
      "value": "Строка",
      "value_name": "Наименование значения доп. формы",
      },
      {
          "number": 3,
      "form_id": "123",
      "value": "2",
      "value_name": "Наименование значения доп. формы",
      }
  ],
  "is_kit": false
}

Ответ

Тело

Наименование Тип Описание
is_success *обязательное boolean Статус операции

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

{
    "is_success": true
}

Полезные статьи

doc_detail
Оценить статью