Settings
list
GET /api/v2/settings HTTP/1.1
HTTP/1.1 200 OK
{
"hasOdAndOsDpp" : true,
"distributionSecretaryMode" : true,
"securePhoneNumberForStoreAndDoctor" : false,
"informationSourceRequired" : false,
"newVersion1C" : true,
"tel1EqualsClientCardNumber" : false,
"hasBaseSales" : true,
"contractIdInClient" : true,
"hasProductionLenses" : false,
"giftCertificateRealNumLength" : 4,
"distributionDoctorMode" : false,
"useCustomBarcode" : false,
"moveToJournalAfterProductionAction" : true,
"onlyAccessoriesAndSunglasses" : false,
"newOrderContactLenses" : false,
"firstNameBeforeFamilyName" : false,
"defaultCity" : "Псков",
"integrationWithN3Health" : false,
"clientPrescriptionIssueDateRequired" : false,
"storeSelectAllServicesForRepair" : false,
"canLoginWithoutCertificate" : true,
"inactiveTimeForDoctorStore" : true,
"clientCardLength" : 4,
"minBalanceForJobInfo" : 1000.0,
"dontRoundSoldPrice" : false,
"hasSuppliesInStore" : false,
"inactiveTime" : 15,
"prescriptionBasisInOrdersJournal" : true,
"requireAgreement" : true,
"inactiveTimeForStore" : true,
"blockDoctorCatalogs" : false,
"collectAgreementViaSms" : false,
"newOrderSale" : true,
"doctorForGlassesOrderPrescription" : true,
"region" : "RU",
"clPackagesInSale" : false,
"distributionManagerMode" : true,
"hasRealCertificateUUID" : false,
"cardCollectionAccounts" : true,
"usePlasticCardForCertificate" : false,
"grayStoreAccount" : true,
"acceptedEmailAndSmsDistribution" : false,
"inactiveTimeForDoctor" : true,
"expectedClFinishDateRequired" : false,
"clExpirationDatePriority" : true,
"hasBasePrice" : false,
"distributionStoreMode" : false,
"hasGroupExtrasOrders" : true,
"phoneCode" : "PHN",
"currency" : {
"code" : "RUB",
"majorName" : "рубли",
"minorName" : "копейки",
"majorReduced" : "руб",
"minorReduced" : "коп",
"reducedWithPoint" : true,
"symbol" : "₽"
},
"phoneMask" : "(###)###-##-##",
"hideOtherProductionsServes" : false,
"smsConditions" : null,
"moveToJournalAfterCancellationAction" : true,
"phoneAndMailInClient" : false,
"variableServiceGlasses" : false,
"hasProduction" : false,
"discountsInCheckVision" : true,
"repairForGlassesOrder" : true,
"clNameBeforeManuf" : true,
"collectAgreementViaEmail" : false,
"canExportClientDataExcel" : false,
"banDiscountsForAnonymousClients" : false,
"blockManualPriceForLenses" : false,
"hasRestrictedUsers" : true,
"additionalCashDiscount" : false,
"defaultClCategory" : 3,
"canSelectOtherDepartmentLensInCurrent" : true,
"clientGoodsCancellations" : true,
"enableDoctorAppointmentReminders" : false,
"storeSelectAllServices" : false,
"autoAndComputerInClient" : true,
"shortGoodsDescriptions" : true,
"newOrderFastRepair" : true,
"clientBirthdayRequired" : false,
"canSendNotificationForClient" : true,
"collectAgreementViaVk" : false,
"hasTurnovers" : false,
"catalogsForDepot" : true,
"hasPatronymicName" : true,
"balanceCurrency" : {
"code" : "RUB",
"majorName" : "рубли",
"minorName" : "копейки",
"majorReduced" : "руб",
"minorReduced" : "коп",
"reducedWithPoint" : true,
"symbol" : "₽"
}
}
Path | Type | Description |
---|---|---|
|
|
String settings name key for object setting value |
application settings list
GET /api/v2/settings/application HTTP/1.1
HTTP/1.1 200 OK
{
"hasOdAndOsDpp" : true,
"securePhoneNumberForStoreAndDoctor" : false,
"riIsRequired" : true,
"informationSourceRequired" : false,
"createTasksForOtherDepartmentCl" : true,
"clientPhoneValidation" : false,
"counterInactiveTime" : 3,
"requiredSupplyVat" : true,
"diameterIsRequired" : true,
"onlyForAdditionalDepartmentsDoctor" : true,
"createMoneyTransferOnReturn" : true,
"clearVIPDiscounts" : true,
"inactiveTimeForDoctorStore" : true,
"canAddIntermediatePayments" : true,
"dontRoundSoldPrice" : false,
"useFullSupplierNameInReturnInvoice" : false,
"inactiveTime" : 15,
"companyHeaderName" : "Zoom Оптика",
"printBarcodesForTransfer" : true,
"inactiveTimeForStore" : true,
"canSelectReturnType" : true,
"clPackagesInSale" : false,
"canReceiveTransferOnCreatedDate" : false,
"doctorCanChangeDepartment" : true,
"canPrintReturnCheck" : true,
"storeCanChangeDepartment" : true,
"printBarcodesForUnmarked" : true,
"useCombinedPricelistForLenses" : true,
"inactiveTimeForDoctor" : true,
"canRemoveClientCardDiscount" : true,
"printPageBreakInBarcodes" : true,
"onlyForAdditionalDepartmentsStore" : true,
"depotCanChangeDepartment" : true,
"clExpirationDatePriority" : true,
"autoDiscountOnlyWithClientCardSum" : false,
"clientPhoneValidationForSmsAccepted" : false,
"canReceiveAllGoodsInTransfer" : true,
"createTasksForOtherDepartmentLenses" : true,
"defaultLensesCategory" : 3,
"doctorHasPrivilegesForRecord" : false,
"onlyForAdditionalDepartmentsDepot" : true,
"canExportClientDataExcel" : false,
"banDiscountsForAnonymousClients" : false,
"additionalCashDiscount" : false,
"defaultClCategory" : 3,
"clPackagesInReports" : true,
"enableDoctorAppointmentReminders" : false,
"printRubInBarcodes" : true,
"dontPrintRubAfterComma" : true,
"clientBirthdayRequired" : false,
"canRemoveAutoDiscount" : false,
"createSupplyUsePricelistSearch" : false,
"materialIsRequired" : false,
"autoDiscountOnlyWithClientCard" : false,
"brandIsRequired" : true,
"hasOrthokeratologicContactLenses" : false
}
Path | Type | Description |
---|---|---|
|
|
String settings name key for object setting value |
application settings lens categories list
GET /api/v2/settings/application/lenses/categories HTTP/1.1
HTTP/1.1 200 OK
{
"ORDER_LENS_CATEGORY" : 3,
"STOCK_LENS_CATEGORY" : 1
}
application settings update
PUT /api/v2/settings/application HTTP/1.1
{
"hasOdAndOsDpp" : "true",
"riIsRequired" : "true",
"securePhoneNumberForStoreAndDoctor" : "true",
"informationSourceRequired" : "true",
"createTasksForOtherDepartmentCl" : "true",
"clientPhoneValidation" : "true",
"counterInactiveTime" : "20",
"requiredSupplyVat" : "true",
"diameterIsRequired" : "true",
"onlyForAdditionalDepartmentsDoctor" : "true",
"createMoneyTransferOnReturn" : "true",
"clearVIPDiscounts" : "true",
"inactiveTimeForDoctorStore" : "true",
"canAddIntermediatePayments" : "true",
"dontRoundSoldPrice" : "true",
"useFullSupplierNameInReturnInvoice" : "true",
"inactiveTime" : "100",
"companyHeaderName" : "OOO COMPANY",
"printBarcodesForTransfer" : "true",
"inactiveTimeForStore" : "true",
"canSelectReturnType" : "true",
"clPackagesInSale" : "false",
"canReceiveTransferOnCreatedDate" : "true",
"doctorCanChangeDepartment" : "true",
"canPrintReturnCheck" : "true",
"storeCanChangeDepartment" : "true",
"printBarcodesForUnmarked" : "true",
"useCombinedPricelistForLenses" : "true",
"inactiveTimeForDoctor" : "true",
"canRemoveClientCardDiscount" : "true",
"printPageBreakInBarcodes" : "true",
"onlyForAdditionalDepartmentsStore" : "true",
"depotCanChangeDepartment" : "false",
"clExpirationDatePriority" : "false",
"autoDiscountOnlyWithClientCardSum" : "true",
"clientPhoneValidationForSmsAccepted" : "true",
"canReceiveAllGoodsInTransfer" : "true",
"createTasksForOtherDepartmentLenses" : "true",
"defaultLensesCategory" : "3",
"doctorHasPrivilegesForRecord" : "true",
"onlyForAdditionalDepartmentsDepot" : "true",
"canExportClientDataExcel" : "true",
"banDiscountsForAnonymousClients" : "true",
"additionalCashDiscount" : "true",
"clPackagesInReports" : "true",
"defaultClCategory" : "3",
"enableDoctorAppointmentReminders" : "true",
"printRubInBarcodes" : "true",
"dontPrintRubAfterComma" : "true",
"clientBirthdayRequired" : "true",
"canRemoveAutoDiscount" : "true",
"createSupplyUsePricelistSearch" : "false",
"materialIsRequired" : "false",
"autoDiscountOnlyWithClientCard" : "true",
"brandIsRequired" : "true",
"hasOrthokeratologicContactLenses" : "true"
}
HTTP/1.1 200 OK
current user
GET /api/v2/me/settings HTTP/1.1
HTTP/1.1 200 OK
{
"restrictedUser" : false,
"helpMode" : false,
"inactiveTime" : 0
}
Path | Type | Description |
---|---|---|
|
|
String settings name key for object setting value |
barcode-position-on-page-settings list
$ curl 'http://localhost:8080/api/v2/settings/barcode-position' -i -X GET
HTTP/1.1 200 OK
{
"barcodesLinesGlasses" : 1,
"barcodesPaddingTopGlasses" : 0.0,
"barcodesInLineNonglasses" : 1,
"barcodesMarginBetweenLinesGlasses" : 0.22,
"barcodesMarginInLinesNonglasses" : 0.0,
"barcodesPaddingLeftNonglasses" : 0.0,
"barcodesPaddingTopNonglasses" : 0.0,
"barcodesMarginBetweenLinesNonglasses" : 999.0,
"barcodesInLineGlasses" : 1,
"barcodesMarginInLinesGlasses" : 999.0,
"barcodesPaddingLeftGlasses" : 0.0,
"barcodesLinesNonglasses" : 1
}
barcode-position-on-page-settings update
$ curl 'http://localhost:8080/api/v2/settings/barcode-position' -i -X PUT \
-d '{
"barcodesLinesGlasses" : "1",
"barcodesPaddingTopGlasses" : "0",
"barcodesInLineNonglasses" : "1",
"barcodesMarginBetweenLinesGlasses" : "0.22",
"barcodesMarginInLinesNonglasses" : "0",
"barcodesPaddingLeftNonglasses" : "0",
"barcodesPaddingTopNonglasses" : "0",
"barcodesMarginBetweenLinesNonglasses" : "999.00",
"barcodesInLineGlasses" : "1",
"barcodesMarginInLinesGlasses" : "999",
"barcodesPaddingLeftGlasses" : "0",
"barcodesLinesNonglasses" : "1"
}'
HTTP/1.1 200 OK
barcode settings get all
GET /api/v2/settings/barcodes HTTP/1.1
HTTP/1.1 200 OK
{
"hasBarcodeSettingsModes" : false,
"hasBarcodeImage" : false,
"content" : [ {
"goodsType" : "Accessories",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 10,
"barcodeMarginLeft" : -2,
"barcodeMarginTop" : 0,
"barcodeWidth" : 34,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 19,
"labelWidth" : 30,
"moduleWidth" : 0.12,
"paramAlign" : "center",
"paramHeight" : 9,
"paramMarginLeft" : 0,
"paramMarginTop" : 0,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.7,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 71,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 1,
"bold" : false,
"fieldName" : "accessoryCategory",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Категория",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 2,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 3,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 79,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 5,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 222,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 6,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "ReadyGlasses",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 15,
"barcodeMarginLeft" : -2,
"barcodeMarginTop" : 0,
"barcodeWidth" : 34,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 69,
"labelWidth" : 30,
"moduleWidth" : 0.12,
"paramAlign" : "center",
"paramHeight" : 15,
"paramMarginLeft" : 0,
"paramMarginTop" : 40,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.8,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 84,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 85,
"bold" : false,
"fieldName" : "accessoryCategory",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Категория",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 86,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 87,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 83,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 5,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 223,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 6,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "ContactLens",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 9,
"barcodeMarginLeft" : -1,
"barcodeMarginTop" : 0,
"barcodeWidth" : 32,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 19,
"labelWidth" : 30,
"moduleWidth" : 0.12,
"paramAlign" : "center",
"paramHeight" : 10,
"paramMarginLeft" : 0,
"paramMarginTop" : 0,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.8,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 73,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 22,
"bold" : false,
"fieldName" : "manufacturer",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Производитель",
"position" : 2,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 23,
"bold" : true,
"fieldName" : "name",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Наименование",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 25,
"bold" : false,
"fieldName" : "dioptre",
"fontSize" : 6,
"newLine" : true,
"paramName" : "Сфера",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 26,
"bold" : false,
"fieldName" : "cylinder",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Цилиндр",
"position" : 5,
"printName" : "Cyl:",
"printOnLabel" : true
}, {
"id" : 24,
"bold" : false,
"fieldName" : "packageNum",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Количество в упаковке",
"position" : 6,
"printName" : "Кол:",
"printOnLabel" : true
}, {
"id" : 33,
"bold" : false,
"fieldName" : "expirationDate",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Срок годности",
"position" : 7,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 27,
"bold" : false,
"fieldName" : "axis",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Ось",
"position" : 8,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 28,
"bold" : false,
"fieldName" : "addidation",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Аддидация",
"position" : 9,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 29,
"bold" : false,
"fieldName" : "diameter",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Диаметр",
"position" : 10,
"printName" : "D:",
"printOnLabel" : false
}, {
"id" : 30,
"bold" : false,
"fieldName" : "radiusOfCurvature",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Радиус кривизны",
"position" : 11,
"printName" : "BC:",
"printOnLabel" : false
}, {
"id" : 31,
"bold" : false,
"fieldName" : "wearingPeriod",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Период ношения",
"position" : 12,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 32,
"bold" : false,
"fieldName" : "color",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Цвет",
"position" : 13,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 34,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 14,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 80,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 15,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 224,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 16,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "Lens",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 9,
"barcodeMarginLeft" : -1,
"barcodeMarginTop" : 0,
"barcodeWidth" : 32,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 19,
"labelWidth" : 30,
"moduleWidth" : 0.12,
"paramAlign" : "center",
"paramHeight" : 10,
"paramMarginLeft" : 0,
"paramMarginTop" : 0,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.8,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 74,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 35,
"bold" : false,
"fieldName" : "manufacturer",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Производитель",
"position" : 2,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 36,
"bold" : true,
"fieldName" : "brand",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Бренд",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 39,
"bold" : false,
"fieldName" : "dioptre",
"fontSize" : 6,
"newLine" : true,
"paramName" : "Сфера",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 40,
"bold" : false,
"fieldName" : "cylinderDioptre",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Цилиндр",
"position" : 5,
"printName" : "Cyl:",
"printOnLabel" : true
}, {
"id" : 41,
"bold" : false,
"fieldName" : "addidation",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Аддидация",
"position" : 6,
"printName" : "Add:",
"printOnLabel" : true
}, {
"id" : 42,
"bold" : false,
"fieldName" : "refractionIndex",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Индекс рефракции",
"position" : 7,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 81,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 8,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 44,
"bold" : false,
"fieldName" : "diameter",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Диаметр",
"position" : 9,
"printName" : "D:",
"printOnLabel" : true
}, {
"id" : 43,
"bold" : false,
"fieldName" : "material",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Материал",
"position" : 10,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 37,
"bold" : false,
"fieldName" : "type",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Тип линзы",
"position" : 11,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 38,
"bold" : false,
"fieldName" : "lensClass",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Класс линзы",
"position" : 12,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 46,
"bold" : false,
"fieldName" : "cover",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Покрытие",
"position" : 13,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 47,
"bold" : false,
"fieldName" : "technology",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Технология",
"position" : 14,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 48,
"bold" : false,
"fieldName" : "color",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Цвет",
"position" : 15,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 45,
"bold" : false,
"fieldName" : "geometry",
"fontSize" : 6,
"newLine" : false,
"paramName" : "Геометрия",
"position" : 16,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 49,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 17,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 225,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 18,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "SemifinishedLens",
"barcodeAlign" : "center",
"barcodeFirst" : true,
"barcodeHeight" : 20,
"barcodeMarginLeft" : 0,
"barcodeMarginTop" : 0,
"barcodeWidth" : 30,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 3,
"labelHeight" : 20,
"labelWidth" : 30,
"moduleWidth" : 0.09,
"paramAlign" : "center",
"paramHeight" : 10,
"paramMarginLeft" : 0,
"paramMarginTop" : 0,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.75,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 75,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 50,
"bold" : false,
"fieldName" : "manufacturer",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Производитель",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 51,
"bold" : false,
"fieldName" : "brand",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Бренд",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 56,
"bold" : false,
"fieldName" : "refractionIndex",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Индекс рефракции",
"position" : 4,
"printName" : "RI:",
"printOnLabel" : true
}, {
"id" : 54,
"bold" : false,
"fieldName" : "baseCurve",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Базовая кривизна",
"position" : 5,
"printName" : "База:",
"printOnLabel" : true
}, {
"id" : 55,
"bold" : false,
"fieldName" : "addidation",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Аддидация",
"position" : 6,
"printName" : "Add:",
"printOnLabel" : true
}, {
"id" : 52,
"bold" : false,
"fieldName" : "type",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Тип полузаготовки",
"position" : 7,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 53,
"bold" : false,
"fieldName" : "lensesClass",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Класс полузаготовки",
"position" : 8,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 57,
"bold" : false,
"fieldName" : "material",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Материал",
"position" : 9,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 58,
"bold" : false,
"fieldName" : "diameter",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Диаметр",
"position" : 10,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 59,
"bold" : false,
"fieldName" : "geometry",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Геометрия",
"position" : 11,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 60,
"bold" : false,
"fieldName" : "cover",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Покрытие",
"position" : 12,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 61,
"bold" : false,
"fieldName" : "technology",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Технология",
"position" : 13,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 62,
"bold" : false,
"fieldName" : "color",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Цвет",
"position" : 14,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 63,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 15,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 82,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 16,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 226,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 17,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "Extras",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 9,
"barcodeMarginLeft" : 0,
"barcodeMarginTop" : 0,
"barcodeWidth" : 30,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 3,
"labelHeight" : 19,
"labelWidth" : 30,
"moduleWidth" : 0.09,
"paramAlign" : "center",
"paramHeight" : 10,
"paramMarginLeft" : 0,
"paramMarginTop" : 0,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.75,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 69,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 98,
"bold" : false,
"fieldName" : "glasses.brand",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Бренд оправы",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 65,
"bold" : false,
"fieldName" : "glasses.model",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Модель оправы",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 101,
"bold" : false,
"fieldName" : "glasses.color",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Цвет оправы",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 66,
"bold" : false,
"fieldName" : "osLens.dioptre",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Сфера (OS)",
"position" : 5,
"printName" : "Линзы",
"printOnLabel" : true
}, {
"id" : 67,
"bold" : false,
"fieldName" : "odLens.dioptre",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Сфера (OD)",
"position" : 6,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 68,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 7,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 76,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 8,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 96,
"bold" : false,
"fieldName" : "dpp",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Dpp",
"position" : 9,
"printName" : "Dpp",
"printOnLabel" : false
}, {
"id" : 97,
"bold" : false,
"fieldName" : "glasses.manufacturer",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Производитель оправы",
"position" : 10,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 99,
"bold" : false,
"fieldName" : "glasses.type",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Тип оправы",
"position" : 11,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 100,
"bold" : false,
"fieldName" : "glasses.material",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Материал оправы",
"position" : 12,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 102,
"bold" : false,
"fieldName" : "glasses.targetGroup",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Целевая группа",
"position" : 13,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 103,
"bold" : false,
"fieldName" : "odLens.cylinderDioptre",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Цилиндр (OD)",
"position" : 14,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 104,
"bold" : false,
"fieldName" : "odLens.addidation",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Аддидация (OD)",
"position" : 15,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 105,
"bold" : false,
"fieldName" : "odLens.manufacturer",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Производитель (OD)",
"position" : 16,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 106,
"bold" : false,
"fieldName" : "odLens.brand",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Бренд (OD)",
"position" : 17,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 107,
"bold" : false,
"fieldName" : "osLens.cylinderDioptre",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Цилиндр (OS)",
"position" : 18,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 108,
"bold" : false,
"fieldName" : "osLens.addidation",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Аддидация (OS)",
"position" : 19,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 109,
"bold" : false,
"fieldName" : "osLens.manufacturer",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Производитель (OS)",
"position" : 20,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 110,
"bold" : false,
"fieldName" : "osLens.brand",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Бренд (OS)",
"position" : 21,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 227,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 22,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "Glasses",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 15,
"barcodeMarginLeft" : -2,
"barcodeMarginTop" : 0,
"barcodeWidth" : 34,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 69,
"labelWidth" : 30,
"moduleWidth" : 0.12,
"paramAlign" : "center",
"paramHeight" : 14,
"paramMarginLeft" : 0,
"paramMarginTop" : 40,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.8,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 70,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 5,
"bold" : false,
"fieldName" : "brand",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Бренд",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 6,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 11,
"bold" : false,
"fieldName" : "color",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цвет",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 4,
"bold" : false,
"fieldName" : "manufacturer",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Производитель",
"position" : 5,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 7,
"bold" : false,
"fieldName" : "type",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Тип оправы",
"position" : 6,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 8,
"bold" : false,
"fieldName" : "material",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Материал",
"position" : 7,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 9,
"bold" : false,
"fieldName" : "targetGroup",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Целевая группа",
"position" : 8,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 10,
"bold" : false,
"fieldName" : "size",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Размер",
"position" : 9,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 12,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 10,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 77,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 11,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 228,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 12,
"printName" : "",
"printOnLabel" : true
} ]
}, {
"goodsType" : "Sunglasses",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 15,
"barcodeMarginLeft" : -2,
"barcodeMarginTop" : 0,
"barcodeWidth" : 34,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 69,
"labelWidth" : 30,
"moduleWidth" : 0.12,
"paramAlign" : "center",
"paramHeight" : 15,
"paramMarginLeft" : 0,
"paramMarginTop" : 40,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 0.8,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 72,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 14,
"bold" : false,
"fieldName" : "brand",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Бренд",
"position" : 2,
"printName" : "С\\З",
"printOnLabel" : true
}, {
"id" : 15,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 20,
"bold" : false,
"fieldName" : "color",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Цвет",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 13,
"bold" : false,
"fieldName" : "manufacturer",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Производитель",
"position" : 5,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 16,
"bold" : false,
"fieldName" : "frameType",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Тип оправы",
"position" : 6,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 17,
"bold" : false,
"fieldName" : "material",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Материал",
"position" : 7,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 18,
"bold" : false,
"fieldName" : "targetGroup",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Целевая группа",
"position" : 8,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 19,
"bold" : false,
"fieldName" : "lensesType",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Тип линз",
"position" : 9,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 21,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 10,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 78,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 11,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 229,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 12,
"printName" : "",
"printOnLabel" : true
} ]
} ]
}
Path | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
barcode settings update
PUT /api/v2/settings/barcodes HTTP/1.1
{
"goodsType" : "Accessories",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 10,
"barcodeMarginLeft" : 0,
"barcodeMarginTop" : 0,
"barcodeWidth" : 30,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 40,
"labelWidth" : 30,
"moduleWidth" : 0.1,
"paramAlign" : "center",
"paramHeight" : 25,
"paramMarginLeft" : 0,
"paramMarginTop" : 1,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 1.0,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 71,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 1,
"bold" : true,
"fieldName" : "accessoryCategory",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Категория",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 2,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 3,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 79,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 5,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 222,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 6,
"printName" : "",
"printOnLabel" : true
} ]
}
Path | Type | Description | Constraints |
---|---|---|---|
goodsType |
String |
||
barcodeAlign |
String |
||
barcodeFirst |
Boolean |
||
barcodeHeight |
Number |
||
barcodeMarginLeft |
Number |
||
barcodeMarginTop |
Number |
||
barcodeWidth |
Number |
||
delimiter |
String |
||
elementHeight |
Number |
||
imageFontSize |
Number |
||
labelHeight |
Number |
||
labelWidth |
Number |
||
mw |
Number |
||
paramAlign |
String |
||
paramHeight |
Number |
||
paramMarginLeft |
Number |
||
paramMarginTop |
Number |
||
paramWidth |
Number |
||
svg |
Boolean |
||
lineHeight |
Number |
||
hasBarcodeImage |
Boolean |
||
topBarcodeImage |
Number |
||
leftBarcodeImage |
Number |
||
widthBarcodeImage |
Number |
||
heightBarcodeImage |
Number |
||
barcodeParameters[] |
Array |
||
barcodeParameters[].id |
Number |
||
barcodeParameters[].bold |
Boolean |
||
barcodeParameters[].fieldName |
String |
||
barcodeParameters[].fontSize |
Number |
||
barcodeParameters[].newLine |
Boolean |
||
barcodeParameters[].paramName |
String |
||
barcodeParameters[].position |
Number |
||
barcodeParameters[].printName |
String |
||
barcodeParameters[].printOnLabel |
Boolean |
HTTP/1.1 200 OK
{
"goodsType" : "Accessories",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 10,
"barcodeMarginLeft" : 0,
"barcodeMarginTop" : 0,
"barcodeWidth" : 30,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 40,
"labelWidth" : 30,
"moduleWidth" : 0.1,
"paramAlign" : "center",
"paramHeight" : 25,
"paramMarginLeft" : 0,
"paramMarginTop" : 1,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 1.0,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 71,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 1,
"bold" : true,
"fieldName" : "accessoryCategory",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Категория",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 2,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 3,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 79,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 5,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 222,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 6,
"printName" : "",
"printOnLabel" : true
} ]
}
Path | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
barcode preview
POST /api/v2/settings/barcodes/preview HTTP/1.1
{
"goodsType" : "Accessories",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 10,
"barcodeMarginLeft" : 0,
"barcodeMarginTop" : 0,
"barcodeWidth" : 30,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 40,
"labelWidth" : 30,
"moduleWidth" : 0.1,
"paramAlign" : "center",
"paramHeight" : 25,
"paramMarginLeft" : 0,
"paramMarginTop" : 1,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 1.0,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 71,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 1,
"bold" : true,
"fieldName" : "accessoryCategory",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Категория",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 2,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 3,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 79,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 5,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 222,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 6,
"printName" : "",
"printOnLabel" : true
} ]
}
Path | Type | Description | Constraints |
---|---|---|---|
goodsType |
String |
||
barcodeAlign |
String |
||
barcodeFirst |
Boolean |
||
barcodeHeight |
Number |
||
barcodeMarginLeft |
Number |
||
barcodeMarginTop |
Number |
||
barcodeWidth |
Number |
||
delimiter |
String |
||
elementHeight |
Number |
||
imageFontSize |
Number |
||
labelHeight |
Number |
||
labelWidth |
Number |
||
mw |
Number |
||
paramAlign |
String |
||
paramHeight |
Number |
||
paramMarginLeft |
Number |
||
paramMarginTop |
Number |
||
paramWidth |
Number |
||
svg |
Boolean |
||
lineHeight |
Number |
||
hasBarcodeImage |
Boolean |
||
topBarcodeImage |
Number |
||
leftBarcodeImage |
Number |
||
widthBarcodeImage |
Number |
||
heightBarcodeImage |
Number |
||
barcodeParameters[] |
Array |
||
barcodeParameters[].id |
Number |
||
barcodeParameters[].bold |
Boolean |
||
barcodeParameters[].fieldName |
String |
||
barcodeParameters[].fontSize |
Number |
||
barcodeParameters[].newLine |
Boolean |
||
barcodeParameters[].paramName |
String |
||
barcodeParameters[].position |
Number |
||
barcodeParameters[].printName |
String |
||
barcodeParameters[].printOnLabel |
Boolean |
HTTP/1.1 200 OK
Content-Disposition: attachment; filename=barcode-preview.html
Accept-Ranges: bytes
<table style="width:auto;"><tr><td><div class="barcode-preview"><div class="barcode-goods" style="height: 40mm;width: 30mm;overflow: hidden;position: relative;background-color: white;border: 1px solid black;"><div class="barcode-description" style="font-family: verdana;font-size: 12px;width: 30mm;height: 25mm;margin-left: 0mm;margin-top: 1mm;text-align: center;line-height: 1.00;"><br/><span style="font-size: 7pt;font-weight: bold;"> Drops</span><br/><span style="font-size: 7pt;font-weight: normal;"> Renu 8ml</span><br/><span style="font-size: 7pt;font-weight: bold;"> 400,00 null</span><span> </span><span style="font-size: 7pt;font-weight: normal;"> 27.08.2025</span><br/><span style="font-size: 7pt;font-weight: normal;text-decoration:line-through;"> 500,00 null</span></div><div class="barcode-image" style="height: 10mm;width: 30mm;margin-left: 0mm;margin-top: 0mm;"><img style="height: 100%;width: 100%;"src="data: image/svg+xml; base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGhlaWdodD0iNC4xNjU4bW0iIHZpZXdCb3g9IjAgMCA5IDQuMTY1OCIgd2lkdGg9IjltbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJibGFjayIgc3Ryb2tlPSJub25lIj48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMiIgeD0iMCIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4xIiB4PSIwLjMiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMyIgeD0iMC42IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjQiIHg9IjEuMSIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4xIiB4PSIxLjYiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iMiIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSIyLjIiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iMi42IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjIuOCIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4zIiB4PSIzLjMiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iMy43IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjIiIHg9IjMuOSIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI0LjQiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMiIgeD0iNC45IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjIiIHg9IjUuMiIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI1LjUiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iNS45IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjYuMyIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC40IiB4PSI2LjYiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMyIgeD0iNy4xIiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjcuNSIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI3LjciIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMyIgeD0iOC4yIiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjguNiIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI4LjgiIHk9IjAiLz48dGV4dCBmb250LWZhbWlseT0iSGVsdmV0aWNhIiBmb250LXNpemU9IjEuNDEwOSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgeD0iNC41IiB5PSIzLjY0MyI+OTg3NjU0MzIxMDwvdGV4dD48L2c+PC9zdmc+"/></div></div></div></td></tr></table>
barcode test print
POST /api/v2/settings/barcodes/test-print HTTP/1.1
{
"goodsType" : "Accessories",
"barcodeAlign" : "center",
"barcodeFirst" : false,
"barcodeHeight" : 10,
"barcodeMarginLeft" : 0,
"barcodeMarginTop" : 0,
"barcodeWidth" : 30,
"delimiter" : " ",
"elementHeight" : 6.0,
"imageFontSize" : 4,
"labelHeight" : 40,
"labelWidth" : 30,
"moduleWidth" : 0.1,
"paramAlign" : "center",
"paramHeight" : 25,
"paramMarginLeft" : 0,
"paramMarginTop" : 1,
"paramWidth" : 30,
"svg" : true,
"lineHeight" : 1.0,
"hasBarcodeImage" : false,
"topBarcodeImage" : 1,
"leftBarcodeImage" : 2,
"widthBarcodeImage" : 3,
"heightBarcodeImage" : 3,
"barcodeParameters" : [ {
"id" : 71,
"bold" : false,
"fieldName" : "companyName",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Название компании",
"position" : 1,
"printName" : "",
"printOnLabel" : false
}, {
"id" : 1,
"bold" : true,
"fieldName" : "accessoryCategory",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Категория",
"position" : 2,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 2,
"bold" : false,
"fieldName" : "model",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Модель",
"position" : 3,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 3,
"bold" : true,
"fieldName" : "retailPrice",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Цена",
"position" : 4,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 79,
"bold" : false,
"fieldName" : "currentDate",
"fontSize" : 7,
"newLine" : false,
"paramName" : "Дата печати",
"position" : 5,
"printName" : "",
"printOnLabel" : true
}, {
"id" : 222,
"bold" : false,
"fieldName" : "priceBeforeReevaluation",
"fontSize" : 7,
"newLine" : true,
"paramName" : "Старая цена",
"position" : 6,
"printName" : "",
"printOnLabel" : true
} ]
}
Path | Type | Description | Constraints |
---|---|---|---|
goodsType |
String |
||
barcodeAlign |
String |
||
barcodeFirst |
Boolean |
||
barcodeHeight |
Number |
||
barcodeMarginLeft |
Number |
||
barcodeMarginTop |
Number |
||
barcodeWidth |
Number |
||
delimiter |
String |
||
elementHeight |
Number |
||
imageFontSize |
Number |
||
labelHeight |
Number |
||
labelWidth |
Number |
||
mw |
Number |
||
paramAlign |
String |
||
paramHeight |
Number |
||
paramMarginLeft |
Number |
||
paramMarginTop |
Number |
||
paramWidth |
Number |
||
svg |
Boolean |
||
lineHeight |
Number |
||
hasBarcodeImage |
Boolean |
||
topBarcodeImage |
Number |
||
leftBarcodeImage |
Number |
||
widthBarcodeImage |
Number |
||
heightBarcodeImage |
Number |
||
barcodeParameters[] |
Array |
||
barcodeParameters[].id |
Number |
||
barcodeParameters[].bold |
Boolean |
||
barcodeParameters[].fieldName |
String |
||
barcodeParameters[].fontSize |
Number |
||
barcodeParameters[].newLine |
Boolean |
||
barcodeParameters[].paramName |
String |
||
barcodeParameters[].position |
Number |
||
barcodeParameters[].printName |
String |
||
barcodeParameters[].printOnLabel |
Boolean |
HTTP/1.1 200 OK
Content-Disposition: attachment; filename=barcode-test-print.html
Accept-Ranges: bytes
<div class="barcode-print"><div ><table style="width:auto;"><tr><td><div class="barcode-preview"><div class="barcode-goods" style="height: 40mm;width: 30mm;overflow: hidden;position: relative;background-color: white;border: 1px solid black;"><div class="barcode-description" style="font-family: verdana;font-size: 12px;width: 30mm;height: 25mm;margin-left: 0mm;margin-top: 1mm;text-align: center;line-height: 1.00;"><br/><span style="font-size: 7pt;font-weight: bold;"> Drops</span><br/><span style="font-size: 7pt;font-weight: normal;"> Renu 8ml</span><br/><span style="font-size: 7pt;font-weight: bold;"> 400,00 null</span><span> </span><span style="font-size: 7pt;font-weight: normal;"> 27.08.2025</span><br/><span style="font-size: 7pt;font-weight: normal;text-decoration:line-through;"> 500,00 null</span></div><div class="barcode-image" style="height: 10mm;width: 30mm;margin-left: 0mm;margin-top: 0mm;"><img style="height: 100%;width: 100%;"src="data: image/svg+xml; base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGhlaWdodD0iNC4xNjU4bW0iIHZpZXdCb3g9IjAgMCA5IDQuMTY1OCIgd2lkdGg9IjltbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJibGFjayIgc3Ryb2tlPSJub25lIj48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMiIgeD0iMCIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4xIiB4PSIwLjMiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMyIgeD0iMC42IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjQiIHg9IjEuMSIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4xIiB4PSIxLjYiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iMiIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSIyLjIiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iMi42IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjIuOCIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4zIiB4PSIzLjMiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iMy43IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjIiIHg9IjMuOSIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI0LjQiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMiIgeD0iNC45IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjIiIHg9IjUuMiIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI1LjUiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMSIgeD0iNS45IiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjYuMyIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC40IiB4PSI2LjYiIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMyIgeD0iNy4xIiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjcuNSIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI3LjciIHk9IjAiLz48cmVjdCBoZWlnaHQ9IjIuMzMxNiIgd2lkdGg9IjAuMyIgeD0iOC4yIiB5PSIwIi8+PHJlY3QgaGVpZ2h0PSIyLjMzMTYiIHdpZHRoPSIwLjEiIHg9IjguNiIgeT0iMCIvPjxyZWN0IGhlaWdodD0iMi4zMzE2IiB3aWR0aD0iMC4yIiB4PSI4LjgiIHk9IjAiLz48dGV4dCBmb250LWZhbWlseT0iSGVsdmV0aWNhIiBmb250LXNpemU9IjEuNDEwOSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgeD0iNC41IiB5PSIzLjY0MyI+OTg3NjU0MzIxMDwvdGV4dD48L2c+PC9zdmc+"/></div></div></div></td></tr></table></div><div style="page-break-before: always;"></div><br/></div>