Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

API УКМ 5 доступно на кассовом сервере. Порт: 29017.

Описание API актуально для версии API 1.0, кассового сервера версии 1.25.

Совместимость версий API гарантируется в пределах мажорной версии. Т.е. версии 1.0, 1.1, 1.2 и т.д. совместимы, но версии 1.1 и 2.3, например, нет.

...

  • Сервер УКМ 5 всегда выступает в роли сервера. Клиентом является товаро-учетная система.
  • Авторизация не требуется. IT-службы клиента должны обеспечивать безопасность.
  • Загрузка данных всегда производится партиями. Размер партии ограничен выделенным ресурсами. Рекомендуемый размер партии – 10 000 записей.
  • Рекомендуется загружать данные в один поток. Следующий запрос можно посылать только после получения ответа на предыдущий.
  • При импорте проверяется соответствие данных схеме, а также наличие дубликатов.
  • Загрузка объектов (товары, цены, пик-листы и т.д.) всегда происходит в инкрементальном режиме. Т.е. данные о новых объектах прибавляются к уже имеющимся. При этом, признаки тех объектов, которые уже присутствуют в базе сервера, полностью перезаписываются на новые (за исключением атрибутов). Под признаками объекта понимаются как его атрибуты, так и прочие сущности, такие как штрих-коды, принадлежность к товарной группе, описание, налоговая группа и др.
  • Для удаления данных используется поле deleted, которое присутствует во всех сущностях.
  • Успешный импорт означает, что запрос сконвертирован во внутренний формат УКМ 5 и передан на дальнейшую обработку. Однако, из этого не следует, что он загружен в базу данных и передан на кассы.

Якорь

...

pricerules

...

pricerules
Правила загрузки основных и дополнительных цен

За загрузку цен отвечают два метода:

В обоих методах есть возможность указать дату-время начала и окончания действия цены. Этой возможностью следует пользоваться только в том случае, если есть реальная необходимость предварительной загрузки цен на кассы до начала их действия. Если такой необходимости нет, то либо эти параметры не надо указывать совсем, либо нужно всегда назначать им одинаковое значение: дату начала – «в далеком прошлом», дату окончания – «в далеком будущем». 

Наиболее распространенная ошибка – в качестве даты начала указывать дату формирования цены в торговой системе или дату выгрузки цены в кассовую систему. В этом случае, касса будет использовать правильную цену, но цены будут накапливаться в базе данных кассового сервера и кассы, что со временем станет проблемой.

Подробнее о том, как касса определяет актуальную цену на товар, можно узнать тут.

Якорь
taxes
taxes
Правила заполнения справочника налогов

На текущий момент, в России существует только один налог, учитываемый в розничной торговле. Это НДС, имеющий 3 ставки: 0%, 10% и 22%.

В некоторых случаях, или владелец ККТ или поставщик товара (в случае

На текущий момент, в России существует только один налог, учитываемый в розничной торговле. Это НДС, имеющий 3 ставки: 0%, 10% и 20%.

В некоторых случаях, или владелец ККТ или поставщик товара (в случае реализации по договорам комиссии или агентским договорам) могут быть освобождены от учета НДС, в этом случае товар регистрируется в ККТ по особой ставке «НДС не облагается». Также, для ряда операций товары регистрируются в ККТ по особым «расчетным» ставкам.

...

Id (код группы)

Tax_id

Percent

Fp_code

Advanced_tax_id

Is_preferential

Примечание

1

1

20



false

НДС=20%

2

1

10



false

НДС=10%

3

1

20


1

false

20/120 (расчетная)

4

1

10


2

false

10/110 (расчетная)

5

1

0



false

НДС=0%

6

1

0



true

НДС не облагается

7

1

5



false

НДС=5%

8

1

7



false

НДС=7%

9

1

5


7

false

5/105 (расчетная)

10

1

7


8

false

7/107 (расчетная)

11

1

22




НДС=22%

12

1

22


11

false

22/122 (расчетная)

Значения Percent должны быть целыми числами.

...

Для комиссионеров, пользующихся УСН, есть возможность передать в УКМ 5 размер используемой налоговой ставки для товара через API, заполнив поле payVat (запрос /api/v1/import/legalEntities) одним из следующих значений: usn_no_nds (УСН не плательщик НДС), osn (ОСН), usn5 (УСН 5%), usn7 (УСН 7%).

...

По мере развития продукта СуперМаг УКМ5, планируется реализация следующих параметров, формальное наличие которых в API-документации на текущий момент не означает, что они функционально реализованы:


/api/v1/import/store/{id}/barcodePrices

...

      isPromoPrice – признак того, что торговая система проводит акцию на данный товар в данном магазине

      dateTo – дата и время начала действия цены

      dateFrom – дата и время окончания действия цены


/api//api/v1/import/items

      descr – подробное описание товара

...

Внимание! Мапирование кодов средств оплаты не реализовано для запросов по выгрузке смен.

Расчет налогов

Расчет налогов кассой носит справочный характер и может не совпадать с расчетом налогов, выполненным ККТ (и переданным в ОФД), а также не совпадать с расчетом, сделанным в соответствии с правилами бухгалтерского учета.

Open API (Swagger) Viewer
{"paths":{"/api/v1/import/store/{id}/barcodePrices":{"post":{"operationId":"importBarcodePrices","tags":["routes"],"summary":"Импорт цен, назначенных на штрихкоды товара","description":"Импорт цен, назначенных на штрихкоды товара","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.BarcodePriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/items":{"post":{"operationId":"importItems","tags":["routes"],"summary":"Импорт товаров","description":"Импорт товаров","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.ItemList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/groupItems":{"post":{"operationId":"importGroupItems","tags":["routes"],"summary":"Импорт групп товаров","description":"Импорт групп товаров (товарная иерархия)","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.GroupItemList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/itemPrices":{"post":{"operationId":"importItemPrices","tags":["routes"],"summary":"Импорт цен на товары","description":"Импорт цен на товары","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.ItemPriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/AlternativeItemPrices":{"post":{"operationId":"importAlternativeItemPrices","tags":["routes"],"summary":"Импорт альтернативных цен на товары","description":"Импорт альтернативных цен на товары","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.AlternativeItemPriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/AdditionalItemPrices":{"post":{"operationId":"importAdditionalItemPrices","tags":["routes"],"summary":"Импорт дополнительных цен на товары","description":"Импорт дополнительных цен на товары","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.AdditionalItemPriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"400":{"description":"Плохой запрос (дубликаты или неверно заполнена структура)"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/picklists":{"post":{"operationId":"importPicklists","tags":["routes"],"summary":"Импорт picklist","description":"Импорт picklist (произвольные Перечни товаров)","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.PicklistList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/sellers":{"post":{"operationId":"importSellers","tags":["routes"],"summary":"Импорт продавцов и их карт","description":"Импорт продавцов и их карт (индивидуальные продажи)","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.SellerList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/taxGroups":{"post":{"operationId":"importTaxGroups","tags":["routes"],"summary":"Импорт групп налогов","description":"Импорт групп налогов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.TaxGroupList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/taxes":{"post":{"operationId":"importTaxes","tags":["routes"],"summary":"Импорт налогов","description":"Импорт налогов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.TaxList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/users":{"post":{"operationId":"importUsers","tags":["routes"],"summary":"Импорт пользователей","description":"Импорт пользователей касс (кассиров)","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.UserList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntityItemVendors":{"post":{"operationId":"importLegalEntityItemVendors","tags":["routes"],"summary":"Импорт поставщиков","description":"Импорт поставщиков товаров для магазинов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityItemVendorList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntityItemContractors":{"post":{"operationId":"importLegalEntityItemContractors","tags":["routes"],"summary":"Импорт продавцов товаров","description":"Импорт продавцов товаров для магазинов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityItemContractorList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntities":{"post":{"operationId":"importLegalEntities","tags":["routes"],"summary":"Импорт юр. лиц","description":"Импорт юридических лиц","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/itemProperties":{"post":{"operationId":"importItemProperties","tags":["routes"],"summary":"Импорт свойств товаров","description":"Импорт дополнительных свойств товаров","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.ItemPropertiesList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntityItemPaymentAgents":{"post":{"operationId":"importLegalEntityItemPaymentAgents","tags":["routes"],"summary":"Импорт привязки платежного агента к товару-услуге","description":"Импорт привязки платежного агента к товару-услуге","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityItemPaymentAgentList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/barcodeProperties":{"post":{"operationId":"importBarcodeProperties","tags":["routes"],"summary":"Импорт свойств штрих-кодов товаров","description":"Импорт дополнительных свойств штрих-кода товаров","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.BarcodePropertiesList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/exportimport/receiptstore/{storeIdid}/{date}securityScale":{"getpost":{"operationId":"exportReceiptsimportSecurityScale","tags":["routes"],"summary":"Экспорт чеков по запросу за датуИмпорт параметров контроля веса товара","description":"Импорт эталонных значений веса товара для КВП","parameters":[{"in":"path","name":"storeIdid","description":"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"pathbody","name":"datebody","descriptionschema":"Дата закрытия чека в формате `yyyy-MM-dd`","type":"string","required":true{"$ref":"#/definitions/models.importer.SecurityScaleWeightControlList"}}],"responses":{"200":{"description":"successУспешная загрузка"},"schema400":{"$refdescription":"#/definitions/models.exporter.ReceiptsList"}Ошибка валидации"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/export/receiptPackage/receipt/{storeId}/{date}":{"get":{"operationId":"getReceiptPackageexportReceipts","tags":["routes"],"summary":"Запрос очередного пакета чековЭкспорт чеков по запросу за дату","parameters":[{"in":"path","name":"storeId","description":"Экспорт пакета чеков с подтверждением обработки пакета чеков"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"path","name":"date","description":"Дата закрытия чека в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ReceiptsList"}},"404500":{"description":"НетОшибка необработанных чековобработки","schema":{"type":"string"}}}}},"423/api/v1/export/receiptPackage":{"descriptionget":"Получение пакета {"operationId":"getReceiptPackage","tags":["routes"],"summary":"Запрос очередного пакета чеков","description":"Экспорт пакета чеков с подтверждением обработки пакета чеков","responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ReceiptsList"}},"404":{"description":"Нет необработанных чеков","schema":{"type":"string"}},"423":{"description":"Получение пакета блокировано, так как нет подтверждения обработки предыдущего пакета","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}},"delete":{"operationId":"unlockReceiptPackage","tags":["routes"],"summary":"Сброс блокировки повторной выгрузки пакета чеков","description":"Сброс блокировки повторной выгрузки пакета чеков","responses":{"200":{"description":"success"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}},"put":{"operationId":"confirmReceiptPackage","tags":["routes"],"summary":"Подтверждение обработки пакета чеков","description":"Подтверждение обработки пакета чеков после операции запроса пакета чеков","responses":{"200":{"description":"success"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/shiftWOReceipts/{storeId}/{date}":{"get":{"operationId":"exportShiftsWOReceipts","tags":["routes"],"summary":"Экспорт смен без чеков по запросу за дату","parameters":[{"in":"path","name":"storeId","description":"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"path","name":"date","description":"Дата закрытия смены в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ShiftWOReceiptsList"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/shift/{storeId}/{posId}/{date}":{"get":{"operationId":"exportShifts","tags":["routes"],"summary":"Экспорт смены по запросу","description":"Экспорт конкретной смены со всеми имеющимися по ней данными","parameters":[{"in":"path","name":"storeId","description":"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"path","name":"posId","description":"Номер кассы","type":"string","required":true},{"in":"path","name":"date","description":"Дата закрытия смены в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ShiftWithReceiptsList"}},"404":{"description":"Смена по запрошенным параметрам не найдена","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/moneyOperation/{storeId}/{posId}/{date}":{"get":{"operationId":"exportMoneyOperations","tags":["routes"],"summary":"Экспорт операций с денежным ящиком.","description":"Экспорт операций с денежным ящиком с данными","parameters":[{"in":"path","name":"storeId","description":"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"path","name":"posId","description":"Номер кассы","type":"string","required":true},{"in":"path","name":"date","description":"Дата операции в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.MoneyOperationList"}},"404":{"description":"Операции с денежным ящиком по запрошенным параметрам не найдены","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/receipt":{"get":{"operationId":"index","tags":["routes"],"summary":"Экспорт чеков. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема","responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.Receipt"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/shift":{"get":{"operationId":"index","tags":["routes"],"summary":"Экспорт смены. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема","responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ShiftWithReceipts"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/moneyOperation":{"get":{"operationId":"index","tags":["routes"],"summary":"Экспорт операций с денежным ящиком. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема","responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.MoneyOperation"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}}},"produces":["application/json"],"definitions":{"models.importer.ItemPropertiesList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.ItemProperties"}}},"required":["elements"]},"models.importer.TaxRate":{"properties":{"tax":{"$ref":"#/definitions/models.importer.Tax"},"percent":{"format":"int32","description":"Налоговая ставка в процентах (10 или 20)","type":"integer"}},"required":["tax","percent"]},"ru.servplus.pos.common.models.receipt.common.AgentType":{"properties":{}},"models.exporter.ShiftWithReceipts":{"description":"Основная модель Информация о смене (включая чеки)","properties":{"receipts":{"type":"array","items":{"$ref":"#/definitions/models.exporter.Receipt"}},"expenseCount":{"type":"integer","format":"int32"},"kkmExpenseCount":{"type":"integer","format":"int32"},"expenseAmount":{"type":"number","format":"double"},"counters":{"$ref":"#/definitions/models.exporter.ShiftCounters"},"shift":{"$ref":"#/definitions/models.exporter.Shift"},"payments":{"type":"array","items":{"$ref":"#/definitions/models.exporter.ShiftPayment"}},"fnInfo":{"$ref":"#/definitions/models.exporter.ShiftFNInfo"},"kkmExpenseAmount":{"type":"number","format":"double"},"kkmInfo":{"$ref":"#/definitions/models.exporter.ShiftKKMInfo"}},"required":["shift","payments","receipts"]},"models.exporter.MoneyOperationList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.exporter.MoneyOperation"}}},"required":["elements"]},"models.importer.SellerCard":{"description":"Карта продавца","properties":{"number":{"description":"Код идентификации, записанный на карте","type":"string","maxLength":40},"dateTill":{"format":"date-time","description":"Дата окончания действия карты","type":"string","example":"2018-06-22T08:00:19"},"active":{"type":"boolean"},"dateFrom":{"format":"date-time","description":"Дата начала действия карты","type":"string","example":"2018-06-22T08:00:19"}},"required":["number","active"]},"models.exporter.ShiftCounters":{"description":"Информация о количестве чеков за смену по данным кассы","properties":{"receiptsExpense":{"type":"integer","format":"int32"},"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"shiftId":{"format":"int64","description":"Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"receiptsReturn":{"format":"int32","description":"Количество чеков возвратов за смену по данным кассы","type":"integer"},"receiptsCancel":{"format":"int32","description":"Количество аннулированных чеков за смену по данным кассы","type":"integer"},"moneyboxAmount":{"format":"double","description":"сумма наличных в денежном ящике после закрытия смены","type":"number"},"cumulativeSale":{"format":"double","description":"накопительный итог продаж с начала работы кассы","type":"number"},"insertion":{"format":"int32","description":"Количество внесений в денежный ящик за смену по данным кассы","type":"integer"},"withdrawal":{"format":"int32","description":"Количество изъятий из денежного ящика за смену по данным кассы","type":"integer"},"storeId":{"description":"ИД магазина","type":"string"},"receiptsSale":{"format":"int32","description":"Количество чеков продаж за смену по данным кассы","type":"integer"}},"required":["posId","storeId","shiftId","cumulativeSale","receiptsSale","receiptsReturn","receiptsCancel","insertion","withdrawal"]},"models.importer.AdditionalItemPriceList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.AdditionalItemPrice"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.DiscountKind":{"description":"manual-ручная скидка или отсутствует (пусто)","properties":{}},"models.importer.GroupItemList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.GroupItem"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.ReceiptNumber":{"properties":{"posNumber":{"format":"int64","type":"integer"},"shiftNumber":{"format":"int64","type":"integer"},"globalDocNumber":{"format":"int64","type":"integer"},"receiptNumber":{"format":"int64","type":"integer"}},"required":["posNumber","shiftNumber","receiptNumber","globalDocNumber"]},"models.exporter.ReceiptDates":{"description":"даты чека","properties":{"dateOpen":{"format":"date-time","description":"дата-время начала чека","type":"string","example":"2018-06-22T08:00:19"},"dateClose":{"format":"date-time","description":"дата-время окончания чека","type":"string","example":"2018-06-22T08:00:19"},"dateSubtotal":{"format":"date-time","description":"дата-время начала оплаты чека (последнего подытога)","type":"string","example":"2018-06-22T08:00:19"}},"required":["dateOpen","dateClose"]},"ru.servplus.pos.common.models.receipt.common.DiscountProgramSource":{"properties":{}},"ru.servplus.pos.common.models.receipt.common.OperationMode":{"description":"0 - расчет скидок выполнялся при наличие связи с сервером маркетинга УКМ5, 1 - при отсутствии связи","properties":{}},"models.exporterimporter.misc.AwardCouponSecurityScaleWeightControlAttributes":{"propertiesdescription":{"expiryDate":{"format":"date-time","type":"string"},"number"Атрибуты контроля веса товара","properties":{"weightSizeItemType":{"typeformat":"stringint32"},"amountdescription":{""Признак массогабаритности товара. 0-Обычные товары, 1-Крупногабаритный - товар размера или весом не помещающийся на КВП, 2-Легкий - товар с весом около погрешности КВП (до макс дельты), 3-Пакет - метафизический квантовый товар - пакет, 4-Неконтроллируемый - товар, который нельзя класть на КВП (услуга, карта покупателя и подобное), 5-Порционный - товар, продающийся целым или частями целого","type":"integer","example":2}}},"models.exporter.misc.AwardCoupon":{"properties":{"expiryDate":{"format":"date-time","type":"string"},"number":{"type":"string"},"amount":{"$ref":"#/definitions/Money"},"effectDate":{"format":"date-time","type":"string"},"comment":{"type":"string"}},"required":["number","comment"]},"models.importer.LegalEntity":{"description":"юр. лицо","properties":{"agentType":{"description":"тип агента","type":"string","enum":["broker","agent","bankAgent","notSet"]},"phoneNumber":{"type":"string"},"address":{"type":"string"},"deleted":{"type":"boolean"},"inn":{"description":"ИНН. Может быть или юр. лица, или физ. лица","type":"string","maxLength":40},"name":{"description":"название","type":"string","maxLength":100},"payVat":{"description":"Система налогообложения. Возможные варианты: \"usn_no_nds\" - УСН не плательщик НДС, \"osn\" - ОСН, \"usn5\" - УСН 5% НДС, \"usn7\" - УСН 7% НДС","type":"string","enum":["usn_no_nds","osn","usn5","usn7"]}},"required":["inn","name","payVat","agentType","deleted"]},"models.importer.LegalEntityItemVendorList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.LegalEntityItemVendor"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.DiscountInfo":{"properties":{"amount":{"description":"сумма скидки","$ref":"#/definitions/Money"},"code":{"type":"string"},"programSource":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountProgramSource"},"couponNumber":{"type":"string"},"externalCode":{"type":"string"},"kind":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountKind"},"couponQuantity":{"format":"int32","type":"integer"},"name":{"description":"название скидки","type":"string"},"discountCard":{"description":"номер диск.карты (если скидка была предоставлена по диск.карте) это НЕ карта клиента!","type":"string"},"mechanicId":{"format":"int32","type":"integer"},"id":{"format":"int32","description":"ИД скидки","type":"integer"},"efts":{"format":"int32","description":"код типа скидки","type":"integer"}},"required":["id","efts","name","amount"]},"models.importer.LegalEntityItemContractorList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.LegalEntityItemContractor"}}},"required":["elements"]},"ru.servplus.common.documents.rawreceipt.RawReceiptType":{"description":"sale - чек продажи, refundOnReceipt - возврат на основании чека","properties":{}},"models.exporter.ShiftWOReceipts":{"properties":{"shift":{"$ref":"#/definitions/models.exporter.Shift"},"counters":{"$ref":"#/definitions/Moneymodels.exporter.ShiftCounters"},"effectDatekkmInfo":{"format$ref":"date-time","type":"string#/definitions/models.exporter.ShiftKKMInfo"},"fnInfo":{"$ref":"#/definitions/models.exporter.ShiftFNInfo"},"commentpayments":{"type":"stringarray"}},"requireditems":[{"number$ref","comment"]:"#/definitions/models.exporter.ShiftPayment"}},"models.importer.LegalEntityexpenseAmount":{"descriptiontype":"юр. лицоnumber","propertiesformat":{"agentType"double"},"expenseCount":{"descriptiontype":"тип агентаinteger","typeformat":"stringint32"},"enumkkmExpenseAmount":[{"brokertype",:"agentnumber","bankAgentformat",:"notSetdouble"]},"phoneNumberkkmExpenseCount":{"type":"stringinteger"},"addressformat":{"type":"string"int32"}},"deletedrequired":{["typeshift":,"booleanpayments"]},"innmodels.importer.GroupAttribute":{"description":"ИНН. Может быть или юр. лица, или физ. лица",аттрибут группы. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service, energyDrink, naturalGas","properties":{"id":{"type":"string","maxLength":40}},"namerequired":["id"]},"models.importer.ItemProperty":{"description":"названиедополнительное свойство товара","typeproperties":{"stringshowToCashier",:{"maxLengthtype":100"boolean"},"payVatvalues":{"description":"Системавозможные значения налогообложениясвойства. Если Возможныене варианты: \"usn_no_nds\" - УСН не плательщик НДС, \"osn\" - ОСН, \"usn5\" - УСН 5% НДС, \"usn7\" - УСН 7% НДСзадано, должен ввести кассир. Если задано одно, оно подставляется по умолчанию. Если задан список, кассир выбирает из списка.","type":"stringarray","enumitems":["usn_no_nds","osn","usn5","usn7"]{"$ref":"#/definitions/models.importer.ItemPropertyValue"}},"requiredname":[{"inndescription",:"nameназвание свойства","payVattype","agentType","deleted"]:"string"},"models.importer.LegalEntityItemVendorListprintOnReceipt":{"propertiestype":{"elements"boolean"},"id":{"typedescription":"arrayидентификатор свойства","itemstype":{"$ref":"#/definitions/models.importer.LegalEntityItemVendor"string"}}},"required":["elementsid","name","values","showToCashier","printOnReceipt"]},"ru.servplus.pos.common.models.receiptimporter.common.DiscountInfo":{"propertiesbarcode.BarcodeProperty":{"amount":{"description":"сумма скидкидополнительное свойство штрих-кода товара","$refproperties":"#/definitions/Money"},"code"{"showToCashier":{"type":"stringboolean"},"programSourcevalues":{"$refdescription":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountProgramSource"},"couponNumber":{"type":"string"},"externalCode":{"type":"string"},"kindвозможные значения свойства. Если не задано, должен ввести кассир. Если задано одно, оно подставляется по умолчанию. Если задан список, кассир выбирает из списка.","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receiptimporter.commonbarcode.DiscountKindBarcodePropertyValue"},"couponQuantity":{"format":"int32","type":"integer"},"name":{"description":"название скидкисвойства","type":"string"},"discountCardprintOnReceipt":{"description":"номер диск.карты (если скидка была предоставлена по диск.карте) это НЕ карта клиента!","type":"stringboolean"},"mechanicIdid":{"formatdescription":"int32идентификатор свойства","type":"integerstring"}},"idrequired":{["formatid":,"int32name","descriptionvalues":,"ИД скидкиshowToCashier","type":"integer"printOnReceipt"]},"eftsmodels.exporter.ReceiptsList":{"formatproperties":"int32","description":"код типа скидки",{"elements":{"type":"integerarray"}},"requireditems":[{"id$ref","efts","name","amount:"#/definitions/models.exporter.Receipt"}}},"required":["elements"]},"ru.servplus.pos.common.models.importerreceipt.common.LegalEntityItemContractorListGift":{"description":"Перечень подарков, выданных по чеку в рамках системы лояльности","properties":{"elementsitem":{"description":"Код (артикул) товара, выданного как подарок","type":"arraystring"},"itemsquantity":{"$ref":"#/definitions/ru.servplus.pos.common.models.importer.LegalEntityItemContractorQuantity"}}},"required":["item","elementsquantity"]},"ru.servplus.pos.common.models.documentsreceipt.rawreceiptsale.RawReceiptTypeEGAISMark":{"description":"sale - чек продажимарка ЕГАИС, refundOnReceiptпрочитанная - возврат на основании чекас товара","properties":{}"mark":{"description":"марка","type":"string"}},"required":["mark"]},"ru.servplus.pos.common.models.exporterreceipt.common.ShiftWOReceiptsItemProperty":{"properties":{"shiftshowToCashier":{"$reftype":"#/definitions/models.exporter.Shiftboolean"},"countersvalues":{"$reftype":"#/definitions/models.exporter.ShiftCounters"}array","kkmInfoitems":{"$ref":"#/definitions/ru.servplus.pos.common.models.exporterreceipt.common.ShiftKKMInfoItemPropertyValue"}},"fnInfoname":{"$reftype":"#/definitions/models.exporter.ShiftFNInfostring"},"paymentsprintOnReceipt":{"type":"arrayboolean"},"itemsid":{"$reftype":"#/definitions/models.exporter.ShiftPaymentstring"}},"expenseAmountrequired":{["typeid":,"numbername","formatvalues":"double"},"expenseCount":{"type":"integer"showToCashier","format":"int32"printOnReceipt"]},"kkmExpenseAmountmodels.importer.BarcodePropertiesList":{"typeproperties":{"numberelements",:{"formattype":"doublearray"},"kkmExpenseCountitems":{"type$ref":"integer","format":"int32"#/definitions/models.importer.barcode.BarcodeProperties"}}},"required":["shift","paymentselements"]},"models.importer.GroupAttributeLegalEntityList":{"description":"аттрибут группы. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service, energyDrink, naturalGas","properties":{"idelements":{"type":"stringarray","maxLength":40items":{"$ref":"#/definitions/models.importer.LegalEntity"}}},"required":["idelements"]},"models.importer.ItemPropertyBarcode":{"description":"дополнительноеШтрихкод свойство товара","properties":{"showToCashierquantity":{"typeformat":"booleandouble"},"values":{"description":"возможныеКоличество значениятовара свойства.по Еслиштрихкоду не задано, должен ввести кассир. Если задано одно, оно подставляется по умолчанию. Если задан список, кассир выбирает из списка.","type":"array","items":{"$ref":"#/definitions/models.importer.ItemPropertyValue"}},"name(в упаковке) (для штучного товара значение 0 трактуется кассой как 1)","type":"number"},"id":{"description":"названиеШтрихкод свойстватовара","type":"string","maxLength":40}},"printOnReceiptrequired":{["typeid":,"booleanquantity"]},"idru.servplus.pos.common.models.receipt.sale.Requisite":{"descriptionproperties":{"идентификатор свойства",code":{"type":"string"}},"requiredrType":{"type":["idinteger","name"format":"int32"}},"valuesrequired",:["showToCashiercode","printOnReceiptrType"]},"models.importer.barcode.BarcodePropertyru.servplus.pos.common.models.User":{"description":"дополнительное свойство штрих-кода товаракассир","properties":{"showToCashier":{"type":"boolean"},"values":{"description":"возможные значения свойства. Если не задано, должен ввести кассир. Если задано одно, оно подставляется по умолчанию. Если задан список, кассир выбирает из списка.","type":"array","items":{"$ref":"#/definitions/models.importer.barcode.BarcodePropertyValue"}}roleId":{"format":"int64","description":"код роли кассира","type":"integer"},"name":{"description":"название свойстваФИО","type":"string"},"printOnReceiptinn":{"description":"ИНН кассира","type":"booleanstring"},"id":{"format":"int64","description":"идентификаторкод свойствакассира","type":"stringinteger"}},"required":["id","name","values","showToCashier","printOnReceipt"roleId"]},"models.exporterimporter.ReceiptsListTaxGroup":{"description":"Налоговая группа (ее id указывается у товара)","properties":{"elementstaxRates":{"type":"array","items":{"$ref":"#/definitions/models.exporterimporter.ReceiptTaxRate"}},"isPreferential":{"type":"boolean"},"advanceTaxId":{"format":"int64","requiredtype":["elementsinteger"]},"ru.servplus.pos.common.models.receipt.common.Giftid":{"format":"int64","description":"ПереченьКод подарков,налоговой выданныхгруппы по чекукодом в рамкахККТ не системы лояльности","properties":{"itemсвязан напрямую)","type":"integer"},"delete":{"type":"boolean"},"fpCode":{"description":"Код (артикул) товара, выданного как подарокНе используется","type":"string"},"quantitymaxLength":{"$ref20}},"required":"#/definitions/ru.servplus.pos.common.models.Quantity"}},"required":["item","quantity["id","fpCode","taxRates","delete"]},"ru.servplus.pos.common.models.receiptexporter.salemisc.EGAISMarkMarketingResult":{"description":"марка ЕГАИС, прочитанная с товара","properties":{"markefts":{"descriptiontype":"маркаinteger","typeformat":"stringint32"}},"requiredtransactionID":["mark"]},"ru.servplus.pos.common.models.receipt.common.ItemProperty":{"properties":{"showToCashier{"type":"string"},"transactionTime":{"type":"booleanstring"},"valuesoperationType":{"type$ref":"array","items"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationType"},"operationMode":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ItemPropertyValueOperationMode"}},"namecardNum":{"type":"string"},"printOnReceiptdiscountAmount":{"type$ref":"boolean#/definitions/Money"},"idawardBonuses":{"type$ref":"string#/definitions/Money"}},"requiredusedBonuses":[{"id$ref","name":"#/definitions/Money"},"valuesorigTransactionID",:{"showToCashiertype",:"printOnReceiptstring"]},"models.importer.BarcodePropertiesListawardCoupons":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importerexporter.barcodemisc.BarcodePropertiesAwardCoupon"}}},"required"usedCoupons":{"type":["elementsarray"]},"models.importer.LegalEntityListitems":{"properties":{"elements$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.UsedCoupon"}},"gifts":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.importercommon.LegalEntityGift"}}},"required":["elements["efts","transactionTime","operationType","operationMode","discountAmount","awardBonuses","usedBonuses","awardCoupons","usedCoupons","gifts"]},"ru.servplus.pos.common.models.importerreceipt.sale.BarcodeKKTKIZ":{"description":"Штрихкод товараинформация для маркир.товаров, отправленная в ККТ","properties":{"quantitykizType":{"format$ref":"double","#/definitions/ru.servplus.pos.common.models.receipt.sale.KIZType"},"kktCode":{"description":"Количество товара по штрихкоду (в упаковке) (для штучного товара значение 0 трактуется кассой как 1массив байт, который был отправлен в ККТ (тег 1162)","type":"numberstring"},"idserial":{"description":"Штрихкодуникальный код маркированного товара","type":"string"},"maxLengthrequisite":40}},"required{"$ref":["id","quantity"]},""#/definitions/ru.servplus.pos.common.models.receipt.sale.Requisite":{"properties":{"code":{"type":"string"},"rTypecheckResult":{"type$ref":"integer","format":"int32#/definitions/ru.servplus.pos.common.models.receipt.sale.CheckResult"}},"required":["codekktCode","rTypekizType"]},"ru.servplus.pos.common.models.receipt.sale.UserEGAISReceiptData":{"description":"кассир","properties":{"roleIdsign":{"format":"int64","description":"кодПодпись роли кассира","type":"integer"},"name":{"description":"ФИО","type":"string"},"inn":{"description":"ИНН кассирачека от УТМ","type":"string"},"id":{"format":"int64","description":"код кассира","type":"integerstring"}},"required":["idsign","name","roleIdid"]},"models.importer.TaxGroupru.servplus.common.documents.rawreceipt.RawReceiptResult":{"description":"Налоговая группа (ее id указывается у товара)","properties":{"taxRates":{"type":"array","items":{"$ref":"#/definitions/models.importer.TaxRate"}},"isPreferential":{"type":"boolean"},"advanceTaxId":{"format":"int64","type":"integer"},"id":{"format":"int64","description":"Код налоговой группы (с кодом в ККТ не связан напрямуюcompleted - нормально завершенный чек, canceled - отмененный чек","properties":{}},"models.importer.User":{"description":"Пользователь кассы (кассир)","properties":{"password":{"description":"Пароль кассира (в открытом виде)","type":"integerstring"},"deletemaxLength":{"type":"boolean"48},"fpCodecards":{"description":"НеПеречень карт используетсякассира","type":"stringarray","maxLengthitems":20}},"required{"$ref":["id","fpCode","taxRates","delete"]},"models.exporter.misc.MarketingResult"#/definitions/models.importer.UserCard"}},"roleId":{"propertiesformat":{"eftsint64":{,"typedescription":"integerКод роли (кассир, ст.кассир и т.д.)","formattype":"int32integer"},"transactionIDname":{"typedescription":"string"},"transactionTime":{Имя (ФИО) кассира","type":"string","maxLength":100},"operationTypeinn":{"$refdescription":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationType"},"operationMode":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationMode"},"cardNumИНН кассира","type":"string","maxLength":20},"id":{"typeformat":"stringint64"},"discountAmountdescription":{"$ref"Код кассира","type":"#/definitions/Moneyinteger"},"awardBonusesdelete":{"$reftype":"#/definitions/Moneyboolean"}},"usedBonusesrequired":{["$refid":"#/definitions/Money"},"name","origTransactionIDroleId":{,"typecards":,"stringdelete"]},"awardCouponsru.servplus.common.documents.misc.PosTypeExtended":{"typeproperties":"array","items{}},"ru.servplus.pos.common.models.receipt.sale.Client":{"$refdescription":"#/definitions/models.exporter.misc.AwardCoupon"}},"usedCouponsКлиент системы лояльности. Заполнение зависит от системы лояльноси","properties":{"refusePaperCheck":{"type":"arrayboolean"},"itemsregisterType":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.commonsale.UsedCouponRegisterType"}},"giftspatronymic":{"description":"Отчество клиента","type":"arraystring"},"itemsphone":{"$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.common.Giftstring"}}},"requiredsurname":[{"eftsdescription",:"transactionTimeФамилия клиента","operationTypetype",:"operationModestring"},"discountAmountname",:{"awardBonusesdescription",:"usedBonusesИмя клиента","awardCouponstype","usedCoupons","gifts"]:"string"},"ru.servplus.pos.common.models.receipt.sale.KKTKIZloyalitySysUID":{"description":"информация для маркир.товаров, отправленная в ККТкод (efts) системы лояльности, в которой зарегистрирован клиент","propertiestype":{"kizType"string"},"id":{"$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.sale.KIZTypeinteger","format":"int32"},"kktCodecategory":{"description":"массивкатегория байт,клиента который(если былвернула отправлен в ККТ (тег 1162система лояльности)","type":"string"},"serial"phoneConfirmed":{"type":"boolean"},"cardNumber":{"description":"уникальныйномер кодкарты маркированного товараклиента","type":"string"},"requisiteemail":{"$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Requisitestring"},"checkResultaccount":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.CheckResultAccount"}},"required":["kktCodesurname","kizTypename"]},"ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData":{"properties":{"sign":{"description":"Подпись чека от УТМ","type":"string"},"id":{"type":"string"}},"required":["sign","id"]},"ru.servplus.common.documents.rawreceipt.RawReceiptResult":{"description":"completed - нормально завершенный чек, canceled - отмененный чек","properties":{}},"models.importer.User,"patronymic","cardNumber","category","loyalitySysUID"]},"models.exporter.ReceiptAdditionalParams":{"description":"Пользователь кассы (кассир)параметры чека","properties":{"passwordmarketingResults":{"description":"ПарольДля кассиракаждой системы открытом виде)","type":"string","maxLength":48},"cards":{"description":"Перечень карт кассирамаркетинга отдельная запись","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.importercommon.UserCardMarketingResult"}},"roleIddiscountCards":{"format":"int64","description":"Кодвсе ролидиск.карты (кассир, ст.кассир и т.д.)","type":"integer"},"name":{"description":"Имя (ФИО) кассиране карты клиентов!), которые были введены в чеке через шаблон ввода. Часть из них (которые привели в предоставлению скидки), перечислены  в модели MarketingResult","type":"stringarray","maxLength":100},"innitems":{"description":"ИНН кассира","type":"string","maxLength":20}},"idcouponsCodes":{"formatdescription":"int64","description":"Код кассиравсе купоны, введенные в чек через шаблон ввода. Примененные/выданные купоны в модели MarketingResult","type":"integerarray"},"deleteitems":{"type":"booleanstring"}},"required":["id","name","roleId","cards","delete"]},"ru.servplus.common.documents.misc.PosTypeExtended":{"properties":{}},"ru.servplus.pos.common.models.receipt.sale.Client":{"description":"Клиент системы лояльности. Заполнение зависит от системы лояльноси","properties":{"refusePaperCheck":{"type":"boolean"},"registerTypereturnReason":{"$ref":"#/definitions/models.exporter.ExportableReturnReason"},"egaisReceiptData":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData"},"client":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.RegisterTypeClient"},"patronymiccustomerContactInfo":{"description":"Отчество клиентаконтактные данные покупателя для отправки чека через ОФД (телефон или почта)","type":"string"},"phoneposType":{"type":"string"},"surname":{"description":"Фамилиятип клиентакассы","type":"string"},"namesupervisor":{"description":"Имя клиентадля отмененных чеков кассир, отменивший чек","type$ref":"string#/definitions/ru.servplus.pos.common.models.User"},"loyalitySysUIDproperties":{"description":"код (efts) системы лояльностидополнительные свойства, впривязанные которойк зарегистрирован клиентчеку","type":"array","items":{"$ref":"string#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"idoriginalReceiptNumbers":{"description"type":"integer:"для чеков возврата по чеку номер исходного чека продажи","format$ref":"int32#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumber"},"categoryoriginalReceiptId":{"description":"категория клиента (если вернула система лояльности)для чеков возврата по чеку id исходного чека продажи","type$ref":"string"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptId"}},"phoneConfirmedrequired":{["type":"boolean"marketingResults"]},"cardNumberru.servplus.pos.common.models.receipt.common.BarcodePropertyValue":{"descriptionproperties":{"номер карты клиента",name":{"type":"string"},"emailid":{"type":"string"}},"accountrequired":{"$ref":"#/definitions/["id","name"]},"ru.servplus.pos.common.models.receipt.sale.Account":{"properties":{"id":{"type"}},"required":["surname","name","patronymic","cardNumber","category","loyalitySysUID"]},"models.exporter.ReceiptAdditionalParams":{"description":"параметры чека","properties":{"marketingResults":{"description":"Для каждой системы маркетинга отдельная запись","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.MarketingResult"}},"discountCards":{"description":"все диск.карты (не карты клиентов!), которые были введены в чеке через шаблон ввода. Часть из них (которые привели в предоставлению скидки), перечислены  в модели MarketingResult","type":"array","items:"integer","format":"int32"},"number":{"type":"string"},"balance":{"type":"number","format":"double"},"balanceInCurrency":{"type":"string"},"appliedAward":{"type":"number","format":"double"},"appliedAwardInCurrency":{"type":"string"},"active":{"type":"number","format":"double"},"activeInCurrency":{"type":"string"}},"couponsCodesbalanceInactive":{"descriptiontype":"все купоны, введенные в чек через шаблон ввода. Примененные/выданные купоны в модели MarketingResultnumber","typeformat":"arraydouble"},"itemsbalanceInactiveInCurrency":{"type":"string"}},"returnReasonappliedInactiveAward":{"$reftype":"#/definitions/models.exporter.ExportableReturnReason"}number","egaisReceiptDataformat":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData"double"},"clientappliedInactiveAwardInCurrency":{"$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Clientstring"},"customerContactInfoinactive":{"descriptiontype":"контактные данные покупателя для отправки чека через ОФД (телефон или почта)number","typeformat":"stringdouble"},"posTypeinactiveInCurrency":{"descriptiontype":"тип кассыstring"}},"typerequired":"string"["id","number"]},"supervisormodels.importer.SecurityScaleWeightControlWeight":{"description":"дляБлок отмененныхописывающий чеков кассир, отменивший чекпараметры веса","$refproperties":"#/definitions/ru.servplus.pos.common.models.User"},"properties":{{"minDelta":{"format":"float","description":"дополнительные свойства, привязанные к чекуДельта отклонения от эталонного веса в меньшую сторону","type":"number"array","example":0.05},"itemsreferenceWeight":{"$refformat":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalReceiptNumbers":{"float","description":"дляЭталонный чеков возврата по чеку номер исходного чека продаживес товара","$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumber""number","example":1.524},"originalReceiptIdmaxDelta":{"format":"float","description":"дляДельта чековотклонения возвратаот поэталонного чекувеса idв исходногобольшую чека продажисторону","$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptId"}},"required":["marketingResults"]},"ru.servplus.pos.common.models.receipt.common.BarcodePropertyValue":{number","example":0.05}}},"models.importer.SecurityScaleWeightControlList":{"description":"Список элементов контроля веса товара","properties":{"nameelements":{"type":"stringarray"},"iditems":{"type$ref":"string#/definitions/models.importer.SecurityScaleWeightControlElement"}}},"required":["id","nameelements"]},"ru.servplus.pos.common.models.receiptimporter.sale.AccountAlternativeItemPrice":{"properties":{"iditemId":{"type":"integerstring","formatmaxLength":"int32"40},"numberminprice":{"format":"double","type":"stringnumber"},"balanceprice":{"typeformat":"numberdouble","formattype":"doublenumber"},"balanceInCurrencydescription":{"type":"string","maxLength":100},"appliedAwarddelete":{"type":"numberboolean"}},"formatrequired":["doubleitemId","price"},"appliedAwardInCurrencyminprice":{,"typedescription":,"stringdelete"]},"activeru.servplus.pos.common.models.Quantity":{"typedescription":"numberзначение количества","formatproperties":{"doubledecimals"},"activeInCurrency":{"typeformat":"stringint32"},"balanceInactivedescription":{"type":"number","format"вспомогательное поле - количество символов в дробной части","type":"doubleinteger"},"balanceInactiveInCurrencyvalue":{"typeformat":"stringdouble"},"appliedInactiveAwarddescription":{"значение количества","type":"number"}},"formatrequired":["value","doubledecimals"]},"appliedInactiveAwardInCurrencymodels.exporter.ShiftFNInfo":{"typedescription":"string"},"inactiveИнформация о состоянии ФН на момент закрытия смены","properties":{"typeshiftId":"number",{"format":"doubleint64"},"inactiveInCurrencydescription":{"type":"string"}},"required":["id","number"]},"models.importer.AlternativeItemPrice"Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"ofdQueueLength":{"propertiesformat":{"itemIdint32":{,"typedescription":"stringКоличество документов в очереди в ОФД","maxLengthtype":40"integer"},"minpricelongWaitOFD":{"formatdescription":"doubleПревышено время работы без отправки чеков в ОФД","type":"numberboolean"},"pricefirstQueueDocNumber":{"format":"doubleint32","description":"Номер первого неотправленного в ОФД документа","type":"numberinteger"},"descriptionstoreId":{"typedescription":"stringИД магазина","maxLengthtype":100"string"},"deletefirstQueueDocDateTime":{"typeformat":"booleandate-time"}},"requireddescription":["itemId"Дата-время первого неотправленного в ОФД документа","pricetype",:"minpricestring","descriptionexample","delete"]},"ru.servplus.pos.common.models.Quantity":{"description":"значение количества","properties:"2018-06-22T08:00:19"},"fiscalDocNumber":{"decimals":{"format":"int32","description":"вспомогательноеНомер поле - количество символовпоследнего записанного в дробнойФН частидокумента","type":"integer"},"valueposId":{"format":"doubleint64","description":"значениеИД количествакассы","type":"numberinteger"}},"required":["value","decimals"]},"models.exporter.ShiftFNInfoneedChangeFN":{"description":"ИнформацияПризнак онеобходимости состояниизамены ФН на момент закрытия смены (по времени). Осталось менее 3 дней","propertiestype":{"shiftIdboolean":{},"formatfnNumber":"int64",{"description":"Уникальный (в рамках кассы) идентификатор сменыЗаводской номер ФН","type":"integerstring"},"ofdQueueLengthshiftState":{"format":"int32","description":"Количествосостояние документовсмены в очереди в ОФД ККТ 0 - смена открыта, 1 - смена закрыта","type":"integer"},"longWaitOFDendingResourceFN":{"description":"ПревышеноПриближается необходимость времязамены работыФН без отправки чеков в ОФД(по времени). Осталось 30 дней","type":"boolean"},"firstQueueDocNumberlifePhase":{"format":"int32","description":"Номер= первого2 неотправленногооткрыт вфискальный ОФД документарежим","type":"integer"},"storeIdlifeTime":{"format":"date-time","description":"ИДСрок действия магазинаФН","type":"string"},"firstQueueDocDateTimeexample":{"format":"date-time","2018-06-22T08:00:19"},"overflowFN":{"description":"Дата-время первого неотправленного в ОФД документаПереполнение ФН по памяти (более 90% заполнено)","type":"stringboolean"},"examplestatus":"2018-06-22T08:00:19"},"fiscalDocNumber":{"format":"int32","description":"Номер последнего записанного в ФН документа","type":"integer"},"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"needChangeFN{"format":"int32","type":"integer"}},"required":["posId","storeId","shiftId"]},"models.importer.ItemPriceList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.ItemPrice"}}},"required":["elements"]},"models.importer.ItemPrice":{"description":"ПризнакЦена необходимостина заменытовар ФН(на (поуникальный времени). Осталось менее 3 днейкод)","typeproperties":{"boolean"},"fnNumber"itemId":{"description":"ЗаводскойУникальный номеркод ФНтовара","type":"string"},"shiftStatemaxLength":{40},"formatisPromoPrice":{"int32","description":"состояниеПризнак, сменычто вданная ККТцена 0 - смена открыта, 1 - смена закрытаакционная (промо)","type":"integerboolean"},"endingResourceFNminprice":{"format":"double","description":"Приближается необходимость замены ФН (по времени). Осталось 30 днейМинимальна цена","type":"booleannumber"},"lifePhaseprice":{"format":"int32double","description":"= 2 открыт фискальный режимЦена","type":"integernumber"},"lifeTimedateTo":{"format":"date-time","description":"СрокДата окончания действия ФНцены","type":"string","example":"2018-06-22T08:00:19"},"overflowFNdateFrom":{"format":"date-time","description":"ПереполнениеДата ФНначала по памяти (более 90% заполнено)действия цены","type":"booleanstring"},"statusexample":{"format":"int32","2018-06-22T08:00:19"},"delete":{"type":"integerboolean"}},"required":["posIditemId","price","minprice","storeIdisPromoPrice","shiftIddelete"]},"ru.servplus.pos.common.models.importer.ItemPriceListMoney":{"properties":{"elementsvalue_j":{"type":"array","items":{"$ref":"#/definitions/models.importer.ItemPrice"}}},"required":["elements"]},"models.importer.ItemPrice":{"description":"Цена на товар (на уникальный код)","properties":{"itemId":{"description":"Уникальный код товара",java.bigdecimal"},"currencyCode":{"type":"string","maxLength":40},"isPromoPricedecimals":{"descriptiontype":"Признак, что данная цена акционная (промо)integer","typeformat":"booleanint32"},"minpriceroundingMode":{"formattype":"doublestring","descriptionenum":"Минимальна цена["ROUND_HALF_EVEN","typeROUND_UP":,"numberROUND_CEILING"},"price":{"format":"double","description":"Цена","type":"number"},"dateTo":{"format":"date-time",ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_HALF_DOWN","ROUND_DOWN","ROUND_FLOOR"]}},"required":["value_j","currencyCode","decimals","roundingMode"]},"models.importer.ItemProperties":{"description":"Датасписок окончаниядополнительных действиясвойств ценытовара","typeproperties":{"stringitemId",:{"exampledescription":"2018-06-22T08:00:19"}код товара","dateFromtype":{"formatstring":"date-time","description},"deleted":{"type":"Дата начала действия цены","typeboolean"},"properties":{"description":"stringсвойства","exampletype":"2018-06-22T08:00:19"}array","deleteitems":{"type$ref":"boolean"#/definitions/models.importer.ItemProperty"}}},"required":["itemId","priceproperties","minprice","isPromoPrice","delete"deleted"]},"rumodels.servplusexporter.pos.common.models.MoneyReceipt.ReceiptDates":{"properties":{"value_jdateOpen":{"type":"java.bigdecimalstring"},"currencyCodedateClose":{"type":"string"},"decimalsdateSubtotal":{"type":"integer","format":"int32"string"}},"roundingModerequired":{"type":"string","enum":["ROUND_HALF_EVENdateOpen","ROUND_UP","ROUND_CEILING","ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_HALF_DOWN","ROUND_DOWN","ROUND_FLOOR"]}},"required":["value_j","currencyCode","decimals","roundingMode"]},"models.importer.ItemPropertiesdateClose"]},"ru.servplus.pos.common.models.receipt.sale.KIZType":{"description":"tobacco-маркированное табачное изделие","properties":{}},"ru.servplus.pos.common.models.receipt.common.ReceiptTax":{"description":"список дополнительных свойств товараналоги по чеку, рассчитанные кассой","properties":{"itemIdamount":{"description":"кодрассчитанное значение товараналога","type$ref":"string#/definitions/Money"},"deletedtaxId":{"typeformat":"booleanint64"},"properties":{"description":"свойстваИД налоговой ставки","type":"arrayinteger"},"itemstaxGroupId":{"$refformat":"#/definitions/models.importer.ItemProperty"}}}int64","requireddescription":["itemIdИД налоговой группы","propertiestype",:"deletedinteger"]},"models.exporter.Receipt.ReceiptDatesname":{"propertiesdescription":{"dateOpen":{название налога","type":"string"},"dateClosepercent":{"format":"int32","description":"ставка налога","type":"stringinteger"},"dateSubtotalfpCode":{"description":"зарезервировано под дальнейшее развитие","type":"string"}},"required":["dateOpen"taxId","taxGroupId","name","percent","dateCloseamount"]},"ru.servplus.pos.common.models.receipt.salecommon.KIZTypeOperationType":{"description":"tobacco-маркированное табачное изделие0 - взаимодействие с системой лояльности выполнялась в чеке Приход (продажа), 1 - в чеке возврата прихода, 2 - взаимодействие было отменено","properties":{}},"ru.servplus.pos.common.models.receiptimporter.common.ReceiptTaxTax":{"description":"налоги по чеку, рассчитанные кассойОписание налога","properties":{"amountname":{"description":"рассчитанное значение налогаНазвание налога (Например, НДС)","$reftype":"#/definitions/Money"string","maxLength":40},"taxIdid":{"format":"int64","description":"ИД налоговой ставкиКод налога (произвольный идентификатор - например, 1)","type":"integer"},"taxGroupIdpriority":{"format":"int32","int64maximum":128,"description":"ИД налоговой группыПриоритет расчета налога (т.к. сейчас существует только НДС, то константа = 10)","type":"integer"}},"namerequired":{["descriptionid":,"название налогаname","type":"stringpriority"]},"percentmodels.importer.LegalEntityItemPaymentAgentList":{"formatproperties":{"int32elements","description":"ставка налога",:{"type":"integerarray"},"fpCodeitems":{"description$ref":"зарезервировано под дальнейшее развитие","type":"string"}},"required":["taxId","taxGroupId","name","percent","amount"]},"ru.servplus.pos.common.models.receipt.common.OperationType":{"description":"0 - взаимодействие с системой лояльности выполнялась в чеке Приход (продажа), 1 - в чеке возврата прихода, 2 - взаимодействие было отменено","properties":{}}#/definitions/models.importer.LegalEntityItemContractor"}}},"required":["elements"]},"models.importer.BarcodePriceList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.BarcodePrice"}}},"required":["elements"]},"models.importer.TaxLegalEntityStore":{"description":"Описание налога"привязка юр. лица к магазину","properties":{"nameinn":{"description":"НазваниеИНН налога (Например, НДС)юр. лица","type":"string","maxLength":40},"idstoreId":{"formatdescription":"int64ид магазина","descriptiontype":"Код налога (произвольный идентификатор - например, 1)","type":"integer"},"priority"string","maxLength":100}},"required":["storeId","inn"]},"models.exporter.Payment":{"formatdescription":"int32Оплата","maximumproperties":{"deviceType":128,{"description":"ПриоритетТип расчетабанковской налога (т.к. сейчас существует только НДС, то константа = 10)авторизации для оплат картой","type":"integerstring"}},"required":["id","name","priority"]},"models.importer.LegalEntityItemPaymentAgentListamount":{"propertiesdescription":{"elements":{"type"Сумма данным средством оплаты","$ref":"array#/definitions/Money"},"itemsqrRequisites":{"$refdescription":"#/definitions/models.importer.LegalEntityItemContractor"}}},"required":["elements"]},"models.importer.BarcodePriceListРеквизиты QR-оплаты","type":"string"},"authorizationCode":{"propertiesdescription":{"elements":{"Код авторизации для банк.транзакции","type":"arraystring"},"itemscardType":{"$refdescription":"#/definitions/models.importer.BarcodePrice"}}},"required":["elements"]},"models.importer.LegalEntityStoreТип карты (visa, МИР и т.д., если сообщил пин-пад)","type":"string"},"inn":{"description":"привязка юр. лица к магазину","propertiesИНН продавца","type":"string"},"channel":{"innformat":{"int32","description":"ИНН юр. лица"Канал оплаты: 4 - оплата по токену, 5 - оплата по банковской карте, 6 - оплата бонусами GoCard, 7 - оплата по QR, 8 - возврат по QR, - 9 рассрочка по QR","type":"string","maxLength":40integer"},"storeIdamountWithChange":{"description":"ид магазинаСумма данная покупателем (для наличных)","type$ref":"string#/definitions/Money"},"maxLengthterminalId":100}},"required{"description":["storeId","inn"]},"models.exporter.Payment":{"description":"Оплата","properties":{"deviceType":{"description":"Тип банковской авторизации для оплат картой"Идентификатор терминала оплаты, через который была произведена оплата","type":"string"},"uuid":{"description":"уник.номер транзакции (если сообщил пин-пад)","type":"string"},"amountrrn":{"description":"Сумма данным средством оплатыНомер банк.транзакции (если сообщил пин-пад)","$reftype":"#/definitions/Moneystring"},"qrRequisitesbanknotes":{"description":"РеквизитыСписок QR-оплатыбанкнот","type":"string"},"authorizationCode"array","items":{"$ref":"#/definitions/models.exporter.Banknote"}},"cardValidTo":{"description":"Код авторизации для банк.транзакцииДата действия банк.карты (если сообщил пин-пад)","type":"string"},"cardTypeslips":{"description":"ТипБанковский картыслип (visa,в МИР и т.д., если сообщил пин-пад)виде строк.","type":"stringarray"},"innitems":{"descriptiontype":"ИНН продавцаstring"}},"balance":{"type$ref":"string#/definitions/Money"},"channelpaymentId":{"format":"int32int64","description":"Канал оплаты: 4 - оплата по токену, 5 - оплата по банковской карте, 6 - оплата бонусами GoCard, 7 - оплата по QR, 8 - возврат по QR, - 9 рассрочка по QRИД средства оплаты","type":"integer"},"amountWithChangebonusAmount":{"format":"double","description":"СуммаКоличество даннаябонусов, покупателемоплаченных (дляв наличных)чеке","$reftype":"#/definitions/Moneynumber"},"terminalIdxlsId":{"format":"int64","description":"Идентификатор терминала оплаты, черездля которыйбонусов былаили произведенасмешанной оплатаоплаты","type":"stringinteger"},"uuidname":{"description":"уник.номерНазвание транзакции (если сообщил пин-пад)средства оплаты","type":"string"},"rrnpType":{"descriptiontype":"Номер банк.транзакции (если сообщил пин-пад)string","type$ref":"string"},"banknotes":{"description":"Список банкнот","type":"array","items":{"$ref":"#/definitions/models.exporter.Banknote"}},"cardValidTo#/definitions/ru.servplus.pos.common.models.receipt.common.PaymentType","enum":["Other","Card","PayCard","Cash","Unknown","Certificate","Prepayment"]},"cardEntryMode":{"description":"ДатаСпособ чтения действияномера банк.карты (если сообщил пин-пад)","type":"string"},"balanceenum":{["$refD":"#/definitions/Money"},"M","paymentIdC":{,"formatF":"int64","description":"ИД средства оплатыR","type":"integer"}E","bonusAmountI":{,"formatQ":,"doubleB","descriptionL":"Количество бонусов, оплаченных в чеке","type,"P"],"example":"numberD"},"xlsIdcurrencyId":{"format":"int64","description":"Идентификатор оплаты для бонусов или смешанной оплатыИД валюты","type":"integer"},"namecardNumber":{"description":"Название средства оплатыНомер карты, как его сообщил пин-пад (с маскир.разрядами)","type":"string"}},"pType":{"type":"string","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.PaymentType","enum":["Other","Card","PayCard","Cash","Unknown","Certificate","Prepaymentrequired":["paymentId","currencyId","name","pType","deviceType","amount","amountWithChange"]},"cardEntryModemodels.importer.LegalEntityItemContractor":{"description":"Способ чтения номера картыпродавец товара. для режима многофискальности","typeproperties":{"stringitemId",:{"enumdescription":["Dкод товара","M","C","F","R","E","I","Q","Btype":"string","LmaxLength":40},"Pdeleted"],:{"exampletype":"Dboolean"},"currencyIdstores":{"formatdescription":"int64привязка к магазинам","descriptiontype":"ИД валютыarray","type"items":{"$ref":"integer#/definitions/models.importer.LegalEntityStore"}},"cardNumberisGlobal":{"description":"Номер карты, как его сообщил пин-пад (с маскир.разрядами)действует во всех магазинах. Если false, то только из списка","type":"stringboolean"}},"required":["paymentIditemId","currencyIdstores","nameisGlobal","pType","deviceType","amount","amountWithChange"deleted"]},"ru.servplus.pos.common.models.receipt.importersale.LegalEntityItemContractorItemSeller":{"description":"продавец, товара.привязанный дляк режима многофискальностипозиции","properties":{"itemIdcardNum":{"description":"код товара карты (если регистрировался по карте)","type":"string"},"maxLengthname":40},{"deleteddescription":{"ФИО продавца","type":"booleanstring"},"storesid":{"description":"привязкакод к магазинампродавца","type":"string"}},"required":["arrayid","items":{"$ref":"#/definitions/name"]},"models.importer.LegalEntityStore"}},"isGlobalItemAttribute":{"description":"действует во всех магазинах. Если false, то только из списка","type":"boolean"}},"required":["itemId","stores","isGlobal","deletedаттрибут товара. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service, energyDrink, naturalGas","properties":{"id":{"type":"string","maxLength":40}},"required":["id"]},"ru.servplus.pos.common.models.receipt.salecommon.ItemSellerBarcodeProperty":{"description":"продавец, привязанный к позиции","properties":{"cardNumshowToCashier":{"descriptiontype":"код карты (если регистрировался по карте)",boolean"},"values":{"type":"stringarray"},"nameitems":{"description$ref":"ФИО продавца",#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodePropertyValue"}},"name":{"type":"string"},"idprintOnReceipt":{"descriptiontype":"код продавцаboolean"},"id":{"type":"string"}},"required":["id","name","values","showToCashier","printOnReceipt"]},"ru.servplus.pos.common.models.receipt.importercommon.ItemAttributeAwardCoupon":{"description":"аттрибут товара. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service, energyDrink, naturalGasПеречень купонов, выданных в чеке в рамках системы лояльности","properties":{"idexpiryDate":{"type"format":"date-time","description":"stringдата окончания действия купона","maxLengthtype":40}}"string","requiredexample":["id"]},"ru.servplus.pos.common.models.receipt.common.BarcodeProperty"2018-06-22T08:00:19"},"number":{"propertiesdescription":{"showToCashier":{"Номер выданного купона (если он был у купона)","type":"booleanstring"},"valuesamount":{"typedescription":"arrayНоминал купона","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodePropertyValueMoney"}},"nameeffectDate":{"typeformat":"stringdate-time"},"printOnReceiptdescription":{"дата начала действия купона","type":"string","example":"boolean2018-06-22T08:00:19"},"idcomment":{"type":"string"}},"required":["idnumber","name","values","showToCashier","printOnReceipt"comment"]},"ru.servplus.pos.common.models.receipt.common.AwardCouponReceiptId":{"description":"Перечень купонов, выданных в чеке в рамках системы лояльности","properties":{"expiryDateposId":{"format":"date-timeint64","descriptiontype":"дата окончания действия купона","typeinteger"},"shiftId":{"format":"stringint64","exampletype":"2018-06-22T08:00:19integer"},"numberexternalStoreId":{"description":"Номер выданного купона (если он был у купона)","type":"string"},"amountid":{"descriptionformat":"Номинал купонаint64","$reftype":"#/definitions/Moneyinteger"},"effectDatestoreId":{"format":"date-timeint64","description":"дата начала действия купонаИД магазина","type":"string"}},"examplerequired":"2018-06-22T08:00:19"},"comment["storeId","posId","id"]},"models.importer.barcode.BarcodeProperties":{"description":"список дополнительных свойств штрих-кода товара","properties":{"deleted":{"type":"stringboolean"}},"requiredbarcodeId":[{"numberdescription",:"commentкод товара"]},"ru.servplus.pos.common.models.receipt.common.ReceiptIdtype":{"propertiesstring":{},"posIdproperties":{"formatdescription":"int64свойства","type":"integerarray"},"shiftIditems":{"format$ref":"int64"#/definitions/models.importer.barcode.BarcodeProperty"}}},"typerequired":"integer"},"externalStoreId["barcodeId","properties","deleted"]},"models.importer.SellerList":{"properties":{"elements":{"type":"stringarray"},"iditems":{"format$ref":"int64"#/definitions/models.importer.Seller"}}},"typerequired":["integerelements"]},"storeIdmodels.importer.ItemList":{"formatproperties":{"int64elements",:{"descriptiontype":"ИД магазинаarray","items":{"type$ref":"string#/definitions/models.importer.Item"}}},"required":["storeId","posId","id"elements"]},"models.importer.barcode.BarcodePropertiesItem":{"description":"список дополнительных свойств штрих-кода Описание товара","properties":{"deletedtaxgroupId":{"format":"int64","description":"Код налоговой группы","type":"booleaninteger"},"barcodeIddescr":{"description":"код товараЗарезервировано под дальнейшее развитие","type":"string"},"propertiesitemGroup":{"description":"свойстваКод узла иерархии, к которому привязан товар (символ 0, если товар не привязан к узлам)","type":"arraystring","items":{"$ref":"#/definitions/models.importer.barcode.BarcodeProperty"}}},"required":["barcodeId","properties","deleted"]},"models.importer.SellerList":{"properties":{"elements":{maxLength":40},"measure":{"description":"Название единицы измерения (печатается в чеке)","type":"string","maxLength":100},"name":{"description":"Название товара (печатается в чеке)","type":"arraystring","itemsmaxLength":{255},"$refsubExcise":"#/definitions/models.importer.Seller"}}},"required":["elements"]},"models.importer.ItemList{"type":"boolean"},"attributes":{"propertiesdescription":{"elements":{Перечень атрибутов товара","type":"array","items":{"$ref":"#/definitions/models.importer.ItemItemAttribute"}}},"required":["elements"]},"models.importer.Item"id":{"description":"ОписаниеУникальный код товара","propertiestype":{"taxgroupIdstring":{,"formatmaxLength":40},"int64barcodes",:{"description":"КодСписок налоговойштрихкодов группытовара","type":"integerarray"},"descritems":{"description$ref":"Зарезервировано под дальнейшее развитие",#/definitions/models.importer.Barcode"}},"delete":{"type":"stringboolean"},"itemGroupmeasprec":{"format":"int32","description":"Код узла иерархии, к которому привязан товар (символ 0, если товар не привязан к узламТочность ед.измерения. Количество знаков после запятой. (0 - штучный товар, 3 - весовой товар)","type":"stringinteger"}},"maxLengthrequired":40}["id","name","descr","measure":{"description":"Название единицы измерения (печатается в чеке)","type":"string","maxLength":100},"name","measprec","itemGroup","barcodes","attributes","delete"]},"models.importer.GroupItem":{"description":"Товарная иерархия","properties":{"owner":{"description":"НазваниеКод родительского товараузла (печатается в чекеесли отсутствует, то символ 0)","type":"string","maxLength":25540},"subExcisename":{"typedescription":"booleanНазвание узла иерархии"},"attributestype":{"description":"Перечень атрибутов товара","string","maxLength":80},"attributes":{"type":"array","items":{"$ref":"#/definitions/models.importer.ItemAttributeGroupAttribute"}},"id":{"description":"УникальныйКод кодузла товараиерархии","type":"string","maxLength":40},"barcodesdelete":{"descriptiontype":"Список штрихкодов товара"boolean"}},"typerequired":"array","items["id","owner","name","delete"]},"ru.servplus.pos.common.models.receipt.common.PaymentType":{"$refdescription":"#/definitions/models.importer.Barcode"}},"deletecash-наличные, card-банк.карта, certificate-подар.сертификат/карта, PayCard-платежная карта (не банковская), other-другие средства оплаты","properties":{}},"models.exporter.ExportableReturnReason":{"properties":{"code":{"type":"booleanstring"},"measprecname":{"formattype":"int32string"},"id":{"descriptionformat":"Точность ед.измерения. Количество знаков после запятой. (0 - штучный товар, 3 - весовой товар)int64","type":"integer"}},"required":["id","namecode","descr","measure","measprec","itemGroup","barcodes","attributes","deletename"]},"models.importer.GroupItemPicklist":{"description":"ТоварнаяПроизвольный перечень иерархиятоваров","properties":{"ownerstores":{"description":"Код родительского узла (если отсутствует, то символ 0)Действует только в указанных магазинах если он не isGlobal","type":"stringarray","maxLength":40items":{"$ref":"#/definitions/models.importer.PicklistStore"}},"name":{"description":"Название узлаперечня иерархиитоваров","type":"string","maxLength":80100},"attributesisGlobal":{"description":"true - Перечень действует во всех магазинах, false - только в магазинах, перечисленных в списке ниже","type":"arrayboolean"},"itemsid":{"$ref":"#/definitions/models.importer.GroupAttribute"}},"id"exclusiveMaximum":true,"format":"int64","description":"Уникальный идентификатор перечня товаров","maximum":100000000000,"type":"integer"},"items":{"description":"Код узла иерархииТовары, входящие в Перечень","type":"stringarray","maxLength"items":{"type":40"string"}},"delete":{"type":"boolean"}},"required":["id","name","isGlobal","ownerstores","nameitems","delete"]},"ru.servplus.pos.common.models.receipt.commonsale.PaymentTypeAddItemSource":{"description":"cash-наличные, card-банк.карта, certificate-подар.сертификат/карта, PayCard-платежная карта (не банковская), other-другие средства оплаты","properties":{}},"models.exporter.ExportableReturnReason":{"properties":{"code":{"type":"string"},"name":{"type":"string"},"id":{"format":"int64","type":"integer"}},"required":["id","code","name"]как позиция была добавлена в чек hand-введена вручную, scanner-введена сканером, hotkey-введена по гор.клавише, picklist-выбрана из пиклиста","properties":{}},"models.importer.PicklistSecurityScaleWeightControlElement":{"description":"Произвольный перечень товаровЭлемент списка контроля веса товара","properties":{"storesitemId":{"description":"Действует только в указанных магазинах если он не isGlobalАртикул товара, нужен для уникальности веса товара (storeId + itemId + barcodeId)","type":"array","items"string","maxLength":40,"example":"abc1234567"},"weight":{"$ref":"#/definitions/models.importer.PicklistStoreSecurityScaleWeightControlWeight"},"attributes":{"$ref":"#/definitions/models.importer.SecurityScaleWeightControlAttributes"},"namedelete":{"default":false,"description":"НазваниеПризнак перечняудаления товаровзаписи","type":"stringboolean","maxLengthexample":100false},"isGlobalbarcodeId":{"description":"trueШК -товара, Переченьнужен действуетдля воуникальности всехвеса магазинах, false - только в магазинах, перечисленных в списке ниже","type":"boolean"},"id":{"exclusiveMaximum":true,"format":"int64","description":"Уникальный идентификатор перечня товаров","maximum":100000000000,"type":"integer"},"items":{"description":"Товары, входящие в Перечень","type":"array","items":{"type":"string"}},"delete":{"type":"boolean"товара, у одного SKU могут быть несколько ШК и они могут отличаться по весу","type":"string","maxLength":40,"example":"7622201700768"},"measprec":{"format":"int32","description":"Точность ед.измерения. Количество знаков после запятой (0 - штучный товар, 3 - весовой товар)","type":"integer","example":0}},"required":["iditemId","namebarcodeId","isGlobal","stores","items"measprec","delete"]},"ru.servplus.pos.common.models.receipt.sale.AddItemSource":{"description":"как позиция была добавлена в чек hand-введена вручную, scanner-введена сканером, hotkey-введена по гор.клавише, picklist-выбрана из пиклиста","properties":{}},"models.exporter.Shift":{"description":"Информация о смене","properties":{"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"number":{"format":"int64","description":"Номер смены по ККТ","type":"integer"},"dateOpen":{"format":"date-time","description":"Дата-время открытия смены","type":"string","example":"2018-06-22T08:00:19"},"userIdOpen":{"format":"int64","description":"ИД кассира, открывшего смену","type":"integer"},"userIdClose":{"format":"int64","description":"ИД кассира, закрывшего смену","type":"integer"},"dateClose":{"format":"date-time","description":"Дата-время закрытия смены","type":"string","example":"2018-06-22T08:00:19"},"id":{"format":"int64","description":"Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"storeId":{"description":"ИД магазина","type":"string"},"userNameOpen":{"description":"ФИО кассира, открывшего смену","type":"string"},"userNameClose":{"description":"ФИО кассира, закрывшего смену","type":"string"}},"required":["posId","storeId","id","number","userIdOpen","userNameOpen","dateOpen"]},"models.importer.LegalEntityItemVendor":{"description":"поставщик товара. для режима комиссионной торговли","properties":{"itemId":{"description":"код товара","type":"string","maxLength":40},"deleted":{"type":"boolean"},"stores":{"description":"привязка к магазинам","type":"array","items":{"$ref":"#/definitions/models.importer.LegalEntityStore"}},"isGlobal":{"description":"действует во всех магазинах. Если false, то только из списка","type":"boolean"}},"required":["itemId","stores","isGlobal","deleted"]},"ru.servplus.pos.common.models.receipt.sale.KIZ":{"properties":{"helperCodeString":{"type":"string"},"code":{"type":"string"},"signHelperCode":{"type":"boolean"},"kktKIZ":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.KKTKIZ"},"weight":{"type":"number","format":"double"},"cryptoTail":{"type":"string"}},"required":["code"]},"ru.servplus.pos.common.models.receipt.common.AlternativePrice":{"description":"цена, выбранная из доп.прайс-листа (цены на табак)","properties":{"price":{"description":"Цена из альтернативного прайс-листа","$ref":"#/definitions/Money"},"minPrice":{"description":"мин.цена из альтернативного прайс-листа","$ref":"#/definitions/Money"},"description":{"type":"string"}},"required":["price","minPrice","description"]},"ru.servplus.pos.common.models.receipt.sale.RegisterType":{"properties":{}},"ru.servplus.pos.common.models.receipt.common.LegalEntity":{"description":"юр. лицо","properties":{"agentType":{"description":"тип агента","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.AgentType"},"phoneNumber":{"type":"string"},"address":{"type":"string"},"paymentAgentPhoneNumber":{"type":"string"},"inn":{"description":"ИНН","type":"string"},"name":{"description":"название","type":"string"},"payVat":{"description":"Система налогообложения. Возможные варианты: \"usn_no_nds\" - УСН не плательщик НДС, \"osn\" - ОСН, \"usn5\" - УСН 5% НДС, \"usn7\" - УСН 7% НДС","type":"string","enum":["usn_no_nds","osn","usn5","usn7"]}},"required":["inn","name","payVat","agentType"]},"models.importer.UserList":{"description":"Список пользователей кассы (кассиров)","properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.User"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.Property":{"description":"дополнительные свойства в виде \"код-название\". Используется для привязки доп. параметров к чекам, позициям чека и т.д.","properties":{"showToCashier":{"description":"зарезервировано под дальнейшее развитие","type":"boolean"},"name":{"description":"название свойства","type":"string"},"printOnReceipt":{"description":"зарезервировано под дальнейшее развитие","type":"boolean"},"id":{"description":"ID свойства","type":"string"},"value":{"description":"значение свойства","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.PropertyValue"}},"required":["id","name","showToCashier","printOnReceipt"]},"ru.servplus.pos.common.models.receipt.sale.CheckResult":{"properties":{"code":{"type":"integer","format":"int32"},"status":{"type":"integer","format":"int32"}},"required":["code","status"]},"models.importer.TaxList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.Tax"}}},"required":["elements"]},"ru.servplus.common.documents.moneyoperation.MoneyOperationType":{"description":"deposition - внесение в ден.ящик, withdrawal - изъятие из ден.ящика","properties":{}},"models.exporter.Receipt.ReceiptAdditionalParams":{"properties":{"client":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Client"},"discountCards":{"type":"array","items":{"type":"string"}},"couponsCodes":{"type":"array","items":{"type":"string"}},"egaisReceiptData":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData"},"marketingResults":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.MarketingResult"}},"posType":{"$ref":"#/definitions/ru.servplus.common.documents.misc.PosTypeExtended"},"customerContactInfo":{"type":"string"},"supervisor":{"$ref":"#/definitions/ru.servplus.pos.common.models.User"},"properties":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalReceiptNumbers":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumber"},"originalReceiptId":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptId"},"returnReason":{"$ref":"#/definitions/models.exporter.ExportableReturnReason"}},"required":["marketingResults","posType"]},"models.importer.Seller":{"description":"Продавец (личные продажи)","properties":{"cards":{"description":"Перечень карт продавца","type":"array","items":{"$ref":"#/definitions/models.importer.SellerCard"}},"name":{"description":"Имя (ФИО) продавца","type":"string","maxLength":50},"dismissed":{"format":"date-time","description":"Дата увольнения","type":"string","example":"2018-06-22T08:00:19"},"hired":{"format":"date-time","description":"Дата начала работы","type":"string","example":"2018-06-22T08:00:19"},"id":{"description":"Код (идентификатор) продавца","type":"string","maxLength":50},"delete":{"type":"boolean"}},"required":["id","name","cards","delete"]},"models.importer.UserCard":{"description":"Карта кассира","properties":{"number":{"description":"Код, записанный на карте","type":"string","maxLength":40},"dateTill":{"format":"date-time","description":"Дата окончания действия карты","type":"string","example":"2018-06-22T08:00:19"},"active":{"description":"Признак активности карты","type":"boolean"},"dateFrom":{"format":"date-time","description":"Дата начала действия карты","type":"string","example":"2018-06-22T08:00:19"}},"required":["number","active"]},"models.exporter.Banknote":{"description":"Данные банкноты","properties":{"number":{"description":"Номер банкноты","type":"string"},"nominal":{"format":"int32","description":"Номинал банкноты","type":"integer"}},"required":["nominal","number"]},"models.importer.AlternativeItemPriceList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.AlternativeItemPrice"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.ItemPropertyValue":{"properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["id","name"]},"models.importer.TaxGroupList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.TaxGroup"}}},"required":["elements"]},"models.exporter.Receipt":{"description":"чек","properties":{"posNumber":{"format":"int64","description":"номер кассы","type":"integer"},"shiftId":{"format":"int64","description":"ИД смены (сквозной номер смены в базе кассы)","type":"integer"},"posName":{"description":"название кассы","type":"string"},"receiptType":{"type":"string","$ref":"#/definitions/ru.servplus.common.documents.rawreceipt.RawReceiptType","enum":["Sale","RefundOnReceipt","RefundWOReceipt"]},"saleReceiptNum":{"type":"integer","format":"int64"},"shiftNumber":{"format":"int64","description":"номер смены в ККТ","type":"integer"},"additional":{"$ref":"#/definitions/models.exporter.Receipt.ReceiptAdditionalParams"},"removedItems":{"description":"массив удаленных позиций","type":"array","items":{"$ref":"#/definitions/models.exporter.ReceiptItem"}},"payments":{"description":"оплаты по чеку","type":"array","items":{"$ref":"#/definitions/models.exporter.Payment"}},"cashOutSum":{"type":"number","format":"double"},"dates":{"$ref":"#/definitions/models.exporter.Receipt.ReceiptDates"},"storeId":{"description":"ИД магазина","type":"string"},"result":{"type":"string","$ref":"#/definitions/ru.servplus.common.documents.rawreceipt.RawReceiptResult","enum":["Completed","Canceled"]},"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"number":{"format":"int64","description":"номер чека","type":"integer"},"fnNumber":{"description":"Номер ФН","type":"string"},"fiscalDocumentNumber":{"format":"int64","description":"Фискальный номер документа","type":"integer"},"cashierId":{"format":"int64","description":"ИД кассира","type":"integer"},"globalDocNumber":{"format":"int64","description":"сквозной номер документа в базе кассы","type":"integer"},"id":{"format":"int64","description":"внутренний ИД чека","type":"integer"},"calculated":{"$ref":"#/definitions/models.exporter.Receipt.ReceiptCalculatedParams"},"items":{"type":"array","items":{"$ref":"#/definitions/models.exporter.ReceiptItem"}},"cashierName":{"description":"ФИО кассира","type":"string"}},"required":["id","posId","storeId","shiftId","shiftNumber","number","receiptType","result","cashierId","cashierName","posName","posNumber","dates","additional","calculated","items","removedItems","payments","globalDocNumber"]},"Money":{"description":"Денежные значения","properties":{"amount":{"description":"Сумма данная покупателем (для наличных)","type":"number","format":"double"},"code":{"description":"Код валюты","type":"string","maxLength":10}},"required":["amount","code"]},"models.exporter.ShiftWithReceiptsList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.exporter.ShiftWithReceipts"}}},"required":["elements"]},"models.exporter.MoneyOperation":{"description":"Операции с денежным ящиком","properties":{"reasonName":{"type":"string"},"shiftId":{"format":"int64","description":"ИД смены","type":"integer"},"amount":{"format":"double","description":"сумма операции","type":"number"},"shiftNumber":{"format":"int64","description":"номер смены (по ККТ)","type":"integer"},"opType":{"type":"string","$ref":"#/definitions/ru.servplus.common.documents.moneyoperation.MoneyOperationType","enum":["Deposition","Withdrawal","UnknownMoneyOperationType"]},"storeId":{"description":"ИД магазина","type":"string"},"userName":{"description":"ФИО кассира","type":"string"},"userId":{"format":"int64","description":"ИД кассира, выполявшего операцию","type":"integer"},"localNumber":{"format":"int64","description":"номер документа в смене","type":"integer"},"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"reasonId":{"format":"int64","type":"integer"},"amountBefore":{"format":"double","description":"сумма в денежном ящике до выполнения этой операции","type":"number"},"id":{"format":"int64","description":"ИД операции","type":"integer"},"opDate":{"format":"date-time","description":"дата-время операции","type":"string","example":"2018-06-22T08:00:19"},"reasonCode":{"type":"string"},"globalNumber":{"format":"int64","description":"сквозной номер документа по кассе","type":"integer"},"currencyId":{"format":"int32","description":"ИД валюты","type":"integer"}},"required":["id","posId","storeId","globalNumber","localNumber","userId","userName","shiftId","shiftNumber","opDate","opType","amount","amountBefore","currencyId"]},"models.importer.PicklistList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.Picklist"}}},"required":["elements"]},"models.exporter.ShiftPayment":{"description":"Суммы продаж и возвратов за смену в разрезе средств оплаты по данным кассы и ККТ","properties":{"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"shiftId":{"format":"int64","description":"Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"expensePOS":{"type":"number","format":"double"},"saleKKM":{"format":"double","description":"Сумма продаж за смену по данным ККТ  данным средством оплаты","type":"number"},"paymentId":{"format":"int64","description":"Идентификатор средства оплаты","type":"integer"},"returnPOS":{"format":"double","description":"Сумма возвратов за смену по данным кассы  данным средством оплаты","type":"number"},"isMoney":{"description":"true - наличные, для остальных - false","type":"boolean"},"expenseKKM":{"type":"number","format":"double"},"storeId":{"description":"ИД магазина","type":"string"},"paymentName":{"description":"Название средства оплаты","type":"string"},"salePOS":{"format":"double","description":"Сумма продаж за смену по данным кассы данным средством оплаты","type":"number"},"returnKKM":{"format":"double","description":"Сумма возвратов за смену по данным ККТ  данным средством оплаты","type":"number"}},"required":["posId","storeId","shiftId","paymentId","paymentName","isMoney","salePOS","returnPOS"]},"models.importer.ItemPropertyValue":{"description":"значение дополнительного свойства товаров","properties":{"name":{"description":"название значения","type":"string"},"id":{"description":"идентификатор значения","type":"string"}},"required":["id","name"]},"models.exporter.ShiftWOReceiptsList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.exporter.ShiftWOReceipts"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.ProductInfo":{"description":"Описание товара","properties":{"contractor":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"itemGroup":{"description":"код ближайшего узла иерархии, в который входит товар","type":"string"},"scu":{"description":"код товара","type":"string"},"barcodeProperties":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodeProperty"}},"description":{"description":"зарезервировано под дальнейшее развитие","type":"string"},"alternativePrices":{"description":"перечень альтернативных цен, которые были назначены товару в момент его добавления в чек","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.AlternativePrice"}},"paymentAgent":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"additionalItemPrices":{"description":"Дополнительные прайс-листы","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.AdditionalItemPrice"}},"measure":{"description":"название единицы измерения","type":"string"},"coupons":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Coupon"}},"vendor":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"name":{"description":"название товара","type":"string"},"attributes":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ProductAttribute"}},"barcodeQuantity":{"description":"количество товара, указанное в штрихкоде","$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"},"measurePrec":{"format":"int32","description":"0-штучный товар, 3-весовой","type":"integer"},"taxGroup":{"format":"int64","description":"ИД налоговой группы назначенной товару","type":"integer"},"barcode":{"description":"штрихкод товара, если он был введен по штрихкоду (пусто, если товар был введен в чек другим способом)","type":"string"},"properties":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ItemProperty"}}},"required":["scu","name","description","measurePrec","measure","itemGroup","attributes","alternativePrices"]},"models.importer.barcode.BarcodePropertyValue":{"description":"значение дополнительного свойства штрих-кода товара","properties":{"name":{"description":"название значения","type":"string"},"id":{"description":"идентификатор значения","type":"string"}},"required":["id","name"]},"models.exporter.Receipt.ReceiptCalculatedParams":{"description":"Сумма чека, налоги и скидки","properties":{"amount":{"description":"Сумма чека ДО применения скидок","$ref":"#/definitions/Money"},"discounts":{"description":"Скидки, примененные в этом чеке","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountInfo"}},"totalDiscountAmount":{"description":"Общая сумма рассчитанных в чеке скидок (таким образом, для вычисления суммы чека с учетом скидок, необходимо из amount вычесть  totalDiscountAmount)","$ref":"#/definitions/Money"},"receiptCurrencyCode":{"description":"Название валюты (Рубль)","type":"string"},"taxes":{"description":"Налоги, рассчитанные кассой (могут отличаться от налогов в ККТ)","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptTax"}},"itemsCount":{"format":"int32","description":"Количество позиций в чеке","type":"integer"}},"required":["receiptCurrencyCode","amount","itemsCount","discounts","taxes"]},"models.importer.BarcodePrice":{"description":"Цены для штрихкодов (цена для единицы товара, а не для всего количества, указанного в штрихкоде)","properties":{"isPromoPrice":{"description":"Признак, что данная цена акционная (промо)","type":"boolean"},"minprice":{"format":"double","description":"Минимальная цена","type":"number"},"price":{"format":"double","description":"Цена за единицу (за 1 шт. или за 1 кг)","type":"number"},"dateTo":{"format":"date-time","description":"Дата окончания действия цены","type":"string","example":"2018-06-22T08:00:19"},"storeId":{"description":"Код магазина (во внешней системе). Поле не используется","type":"string","maxLength":20},"dateFrom":{"format":"date-time","description":"Дата начала действия цены","type":"string","example":"2018-06-22T08:00:19"},"delete":{"type":"boolean"},"barcodeId":{"description":"Штрихкод","type":"string","maxLength":40}},"required":["storeId","barcodeId","price","minprice","isPromoPrice","delete"]},"models.importer.LegalEntityItemPaymentAgent":{"description":"Привязка платежного агента к товару-услуге","properties":{"itemId":{"description":"код товара","type":"string","maxLength":40},"deleted":{"type":"boolean"},"stores":{"description":"привязка к магазинам","type":"array","items":{"$ref":"#/definitions/models.importer.LegalEntityStore"}},"isGlobal":{"description":"действует во всех магазинах. Если false, то только из списка","type":"boolean"}},"required":["itemId","stores","isGlobal","deleted"]},"ru.servplus.pos.common.models.receipt.common.PropertyValue":{"description":"Значение дополнительного свойства","properties":{"name":{"description":"название значения","type":"string"},"id":{"description":"ID значения","type":"string"}},"required":["id","name"]},"models.exporter.ShiftKKMInfo":{"description":"Информация о параметрах ККТ и количестве чеков за смену по данным ККТ","properties":{"receiptsExpense":{"type":"integer","format":"int32"},"shiftId":{"format":"int64","description":"Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"serialNumber":{"description":"Заводской номер ФН","type":"string"},"shiftNumber":{"format":"int64","description":"Номер смены по ККТ (ФН)","type":"integer"},"withdrawal":{"format":"int32","description":"Количество изъятий из ден.ящика по данным ККТ","type":"integer"},"storeId":{"description":"ИД магазина","type":"string"},"posId":{"format":"int64","type":"integer"},"modelName":{"description":"Название модели ККТ","type":"string"},"receiptsReturn":{"format":"int32","description":"Количество чеков возвратов по данным ККТ","type":"integer"},"ownerNumber":{"description":"ИНН владельца ККТ","type":"string"},"receiptsCancel":{"format":"int32","description":"Количество чеков отмены по данным ККТ","type":"integer"},"registrationNumber":{"description":"Регистрационный номер ККТ","type":"string"},"cumulativeSale":{"format":"double","description":"Накопительный итог суммы продаж (по данным ККТ)","type":"number"},"insertion":{"format":"int32","description":"Количество внесений в ден.ящик по данным ККТ","type":"integer"},"firmwareVersion":{"description":"Версия прошивки","type":"string"},"receiptsSale":{"format":"int32","description":"Количество чеков продаж по данным ККТ","type":"integer"}},"required":["posId","storeId","shiftId","serialNumber","registrationNumber","ownerNumber","modelName"]},"models.importer.AdditionalItemPrice":{"properties":{"itemId":{"description":"ID товара","type":"string","maxLength":40},"deleted":{"description":"Признак удаления","type":"boolean"},"externalCode":{"type":"string"},"price":{"format":"double","description":"Цена товара по прайс-листу","type":"number"},"dateTo":{"format":"date-time","description":"Дата окончания действия цены","type":"string","example":"2038-01-01T00:00:00"},"id":{"description":"ID дополнительного прайс-листа","type":"string","maxLength":40},"dateFrom":{"format":"date-time","description":"Дата начала действия цены","type":"string","example":"1970-01-01T00:00:00"}},"required":["id","itemId","price","dateFrom","dateTo","deleted"]},"ru.servplus.pos.common.models.receipt.common.AdditionalItemPrice":{"description":"Цена товара по прайс-листу","properties":{"price":{"format":"double","description":"Цена товара по прайс-листу","type":"number","$ref":"#/definitions/ru.servplus.pos.common.models.Money"}},"required":["price"]},"models.exporter.ReceiptItem":{"description":"описание позиции чека","properties":{"seller":{"description":"продавец","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.ItemSeller"},"quantityByCashier":{"$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"},"taxes":{"description":"вычисленные налоги","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptTax"}},"discountAmount":{"description":"сумма скидок","$ref":"#/definitions/Money"},"totalWithDiscounts":{"description":"стоимость позиции с учетом скидок","$ref":"#/definitions/Money"},"egaisMark":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISMark"},"productInfo":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ProductInfo"},"totalAmount":{"description":"итоговая стоимость позиции без учета скидок","$ref":"#/definitions/Money"},"totalQuantity":{"description":"количество товаров в позиции","$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"},"discounts":{"description":"скидки, примененные в чеке","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountInfo"}},"coupons":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Coupon"}},"price":{"description":"цена по прайс-листу (ДО применения скидок)","$ref":"#/definitions/Money"},"enableEditPos":{"description":"возможность изменять у позиции значение в поле \"количество\"","type":"boolean"},"couponsCodes":{"description":"купоны, примененные к данной позиции","type":"array","items":{"type":"string"}},"minPrice":{"description":"мин.цена товара","$ref":"#/definitions/Money"},"itemSource":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.AddItemSource"},"kiz":{"description":"маркировка, если есть","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.KIZ"},"supervisor":{"description":"кассир, отменивший позицию. Заполняется только для отмененных позиций","$ref":"#/definitions/ru.servplus.pos.common.models.User"},"properties":{"description":"доп.свойства, привязанные к позиции","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalPosition":{"format":"int64","description":"для чеков возврата по чеку номер позиции в чеке продажи","type":"integer"}},"required":["price","discounts","taxes","discountAmount"]},"ru.servplus.pos.common.models.receipt.sale.Coupon":{"properties":{"code":{"type":"string"},"loyalitySysUID":{"type":"integer","format":"int32"}},"required":["code"]},"ru.servplus.pos.common.models.receipt.common.ProductAttribute":{"description":"аттрибут описания товара. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service","properties":{"id":{"type":"string"}},"required":["id"]},"ru.servplus.pos.common.models.receipt.common.MarketingResult":{"description":"объединение всех активностей одной системы лояльности","properties":{"awardCoupons":{"description":"Массив купонов, выданных системой лояльности","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.AwardCoupon"}},"discountAmount":{"description":"Общая сумма скидок, рассчитанных в системе лояльности (не считая списанных бонусов)","$ref":"#/definitions/Money"},"transactionTime":{"format":"date-time","description":"дата-время транзакции в системе лояльности","type":"string","example":"2018-06-22T08:00:19"},"transactionID":{"description":"Идентификатор акции, примененной в чеке (определяется системой лояльности)","type":"string"},"efts":{"format":"int32","description":"Идентификатор типа системы лояльности, предоставившей скидку (100-сервер маркетинга УКМ5, 101-ручные скидки УКМ5, 5-скидка на мелочь УКМ5, 6-скидка коррекция для весовых товаров УКМ5, Siebel - будет определяться настройками в кассовой системе)","type":"integer"},"operationMode":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationMode"},"cardNum":{"description":"Номер карты клиента, зарегистрированной в чеке","type":"string"},"usedBonuses":{"description":"Сумма списанных бонусов","$ref":"#/definitions/Money"},"origTransactionID":{"description":"В чеках на возврат - ИД транзакции созданной в системе лояльности по чеку продажи","type":"string"},"usedCoupons":{"description":"Массив купонов, примененных в системе лояльности","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.UsedCoupon"}},"operationType":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationType"},"awardBonuses":{"description":"Сумма начисленных бонусов","$ref":"#/definitions/Money"},"gifts":{"description":"Массив подарков, выданных в системе лояльности","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Gift"}}},"required":["efts","transactionTime","operationType","operationMode","discountAmount","awardBonuses","usedBonuses","awardCoupons","usedCoupons","gifts"]},"models.importer.PicklistStore":{"description":"Магазин, к которому привязан Перечень товаров","properties":{"id":{"description":"ид магазина","type":"string"}},"required":["id"]},"ru.servplus.pos.common.models.receipt.common.UsedCoupon":{"description":"Перечень купонов, примененных в чеке в рамках системы лояльности","properties":{"number":{"description":"Номер примененного купона (если номер был у купона)","type":"string"}},"required":["number"]}},"swagger":"2.0","info":{"description":"API сервера УКМ5 для обмена данными с внешними системами","title":"Import-Export-API","version":"1.0"},"consumes":["application/json"],"tags":[{"name":"routes"}]}