Supply goods
add accessory
POST /api/v2/supplies/9000004500/accessory HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"accessoryCategory" : "Капли",
"model" : "Глазные",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
accessoryCategory |
String |
Категория аксессуара |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 1000012255,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Капли",
"model" : "Глазные",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
add sunglasses
POST /api/v2/supplies/9000004500/sunglasses HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"manufacturer" : "Китай",
"brand" : "Kool Kidz",
"model" : "4420",
"frameType" : "-",
"material" : "-",
"targetGroup" : "Дет.",
"lensesType" : "-",
"color" : "cBLK",
"design" : "Крученая",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
frameType |
String |
Тип оправы |
Length must be between 0 and 50 inclusive. |
material |
String |
Материал |
Length must be between 0 and 50 inclusive |
targetGroup |
String |
Целевая группа |
Length must be between 0 and 50 inclusive. |
lensesType |
String |
Тип линз |
Length must be between 0 and 50 inclusive |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
design |
String |
Дизайн |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "SunglassesResponse",
"id" : 1000032254,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kool Kidz",
"color" : "cBLK",
"model" : "4420",
"targetGroup" : "Дет.",
"material" : "-",
"frameType" : "-",
"lensesType" : "-",
"design" : "Крученая",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
add glasses
POST /api/v2/supplies/9000004500/glasses HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"manufacturer" : "Россия",
"brand" : "Stephen Curry",
"model" : "2001 C4",
"type" : "Для чтения",
"material" : "Металл",
"targetGroup" : "Детская",
"size" : "49-16-130",
"design" : "Крученая",
"color" : "GR",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
type |
String |
Тип |
Length must be between 0 and 50 inclusive. |
material |
String |
Материал |
Length must be between 0 and 50 inclusive |
targetGroup |
String |
Целевая группа |
Length must be between 0 and 50 inclusive. |
size |
String |
Размер |
Length must be between 0 and 50 inclusive |
design |
String |
Дизайн |
Length must be between 0 and 50 inclusive |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "GlassesResponse",
"id" : 1000042255,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Россия",
"brand" : "Stephen Curry",
"color" : "GR",
"model" : "2001 C4",
"targetGroup" : "Детская",
"material" : "Металл",
"type" : "Для чтения",
"size" : "49-16-130",
"design" : "Крученая",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
add lens
POST /api/v2/supplies/9000004500/lenses HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"manufacturer" : "Shamir",
"brand" : "Hilux PNX",
"type" : "Бифокальная",
"lensClass" : "Тонированная",
"sphere" : 0.0,
"cylinder" : -0.5,
"addidation" : 0.0,
"refractionIndex" : 1.74,
"material" : "Trivex",
"diameter" : 73,
"geometry" : "Биасферическая",
"cover" : "Crizal Alize+",
"technology" : "Transitions VI",
"color" : "Brown",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive |
type |
String |
Тип |
Length must be between 0 and 50 inclusive. |
lensClass |
String |
Класс линз |
Length must be between 0 and 50 inclusive |
sphere |
Number |
Сфера |
Must not be null |
cylinder |
Number |
Цилиндр |
|
addidation |
Number |
Аддидация |
|
refractionIndex |
Number |
Индекс преломления |
Must not be null |
material |
String |
Материал |
Length must be between 0 and 50 inclusive. |
diameter |
Number |
Диаметр |
Must not be null |
geometry |
String |
Геометрия |
Length must be between 0 and 50 inclusive. |
cover |
String |
Покрытие |
Length must be between 0 and 50 inclusive. |
technology |
String |
Технология |
Length must be between 0 and 50 inclusive |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "LensResponse",
"id" : 1000072258,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Shamir",
"brand" : "Hilux PNX",
"color" : "Brown",
"cover" : "Crizal Alize+",
"addidation" : 0.0,
"cylinderDioptre" : -0.5,
"dioptre" : 0.0,
"refractionIndex" : 1.74,
"diameter" : 73,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Trivex",
"geometry" : "Биасферическая",
"type" : "Бифокальная",
"lensClass" : "Тонированная",
"technology" : "Transitions VI",
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
add contact lens
POST /api/v2/supplies/9000004500/contact-lenses HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"manufacturer" : "CooperVision",
"name" : "1-Day Acuvue Oasys",
"packageQuantity" : 6,
"sphere" : -4.5,
"cylinder" : -1.75,
"axis" : 90,
"addidation" : "low",
"diameter" : 13.8,
"curvatureRadius" : 7.7,
"color" : "Blue",
"wearingPeriod" : "30 дней",
"expireOn" : "2027-10-20",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
name |
String |
Название |
Length must be between 0 and 50 inclusive. |
packageQuantity |
Number |
Количество в упаковке |
Must be at least 1. |
sphere |
Number |
Сфера |
Must not be null |
cylinder |
Number |
Цилиндр |
|
axis |
Number |
Ось |
|
addidation |
String |
Аддидация |
Length must be between 0 and 50 inclusive. |
diameter |
Number |
Диаметр |
Must not be null |
curvatureRadius |
Number |
Радиус |
Must not be null |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
wearingPeriod |
String |
Период ношения |
Length must be between 0 and 50 inclusive. |
expireOn |
String |
Срок годности |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "ContactLensResponse",
"id" : 1000062257,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "CooperVision",
"name" : "1-Day Acuvue Oasys",
"color" : "Blue",
"curvatureRadius" : 7.7,
"diameter" : 13.8,
"wearingPeriod" : "30 дней",
"dioptre" : -4.5,
"cylinder" : -1.75,
"axis" : 90,
"add" : "low",
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "CooperVision",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : "2027-10-20"
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
add extras
POST /api/v2/supplies/9000004500/extras HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"glassesManufacturer" : "Россия",
"glassesBrand" : "Stephen Curry",
"model" : "2001 C4",
"glassesType" : "Для чтения",
"material" : "Металл",
"targetGroup" : "Детская",
"color" : "GR",
"sphereOd" : 1.5,
"sphereOs" : 1.25,
"cylinderOd" : 0.75,
"cylinderOs" : 0.25,
"addidationOd" : 0.0,
"addidationOs" : 0.0,
"dpp" : 12.0,
"lensesManufacturerOd" : "Shamir",
"lensesManufacturerOs" : "Shamir",
"lensesBrandOd" : "Hilux PNX",
"lensesBrandOs" : "Hilux PNX",
"lensesTypeOd" : "Бифокальная",
"lensesTypeOs" : "Бифокальная",
"lensClassOd" : "Тонированная",
"lensClassOs" : "Тонированная",
"coverOd" : "Crizal Alize+",
"coverOs" : "Crizal Alize+",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
glassesManufacturer |
String |
Производитель очков |
Length must be between 0 and 50 inclusive. |
glassesBrand |
String |
Бренд очков |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
glassesType |
String |
Тип очков |
Length must be between 0 and 50 inclusive. |
material |
String |
Материал |
Length must be between 0 and 50 inclusive |
targetGroup |
String |
Целевая группа |
Length must be between 0 and 50 inclusive. |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
sphereOd |
Number |
Сфера OD |
Must not be null |
sphereOs |
Number |
Сфера OS |
Must not be null |
cylinderOd |
Number |
Цилиндр OD |
|
cylinderOs |
Number |
Цилиндр OS |
|
addidationOd |
Number |
Аддидация OD |
|
addidationOs |
Number |
Аддидация OS |
|
dpp |
Number |
DPP |
|
lensesManufacturerOd |
String |
Производитель линз OD |
Length must be between 0 and 50 inclusive |
lensesManufacturerOs |
String |
Производитель линз OS |
Length must be between 0 and 50 inclusive |
lensesBrandOd |
String |
Бренд линз OD |
Length must be between 0 and 50 inclusive |
lensesBrandOs |
String |
Бренд линз OS |
Length must be between 0 and 50 inclusive |
lensesTypeOd |
String |
Тип линз OD |
Length must be between 0 and 50 inclusive |
lensesTypeOs |
String |
Тип линз OS |
Length must be between 0 and 50 inclusive |
lensClassOd |
String |
Класс линз OD |
Length must be between 0 and 50 inclusive |
lensClassOs |
String |
Класс линз OS |
Length must be between 0 and 50 inclusive |
coverOd |
String |
Покрытие OD |
Length must be between 0 and 50 inclusive |
coverOs |
String |
Покрытие OS |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "ExtrasResponse",
"id" : 1000052256,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 1000052256,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Россия",
"frameTargetGroup" : "Детская",
"frameMaterial" : "Металл",
"frameType" : "Для чтения",
"odCylinderDioptre" : 0.75,
"osCylinderDioptre" : 0.25,
"odAdd" : 0.0,
"osAdd" : 0.0,
"frameBrand" : "Stephen Curry",
"frameColor" : "GR",
"frameModel" : "2001 C4",
"odDioptre" : 1.5,
"osDioptre" : 1.25,
"orderId" : null
},
"createdOn" : null,
"dpp" : 12.0,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
add semifinished lens
POST /api/v2/supplies/9000004500/semifinished-lenses HTTP/1.1
{
"count" : 1,
"basePrice" : 300.0,
"purchasingPrice" : 150.0,
"retailPrice" : 450.0,
"vatPercentage" : null,
"vatSum" : null,
"manufacturer" : "Япония",
"brand" : "Redd",
"type" : "Бифокальная",
"lensesClass" : "Тонированная",
"base" : 7.0,
"addidation" : 0.0,
"refractionIndex" : 1.67,
"material" : "Trivex",
"diameter" : 73,
"geometry" : "Биасферическая",
"cover" : "Crizal Alize+",
"technology" : "Transitions VI",
"color" : "Brown",
"invoicePrice" : 300.0
}
Parameter | Description |
---|---|
|
ID поставки |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive |
type |
String |
Тип |
Length must be between 0 and 50 inclusive. |
lensesClass |
String |
Класс линз |
Length must be between 0 and 50 inclusive. |
base |
Number |
База |
Must not be null |
addidation |
Number |
Аддидация |
|
refractionIndex |
Number |
Индекс преломления |
Must not be null |
material |
String |
Материал |
Length must be between 0 and 50 inclusive. |
diameter |
Number |
Диаметр |
Must not be null |
geometry |
String |
Геометрия |
Length must be between 0 and 50 inclusive. |
cover |
String |
Покрытие |
Length must be between 0 and 50 inclusive. |
technology |
String |
Технология |
Length must be between 0 and 50 inclusive. |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 9000004500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : null,
"num" : 1,
"comments" : null,
"purchasingSum" : 150.0,
"retailSum" : 450.0,
"baseSum" : 300.0,
"purchasingVatSum" : null,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 1,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 1000082259,
"retailPrice" : 450.0,
"purchasingPrice" : 150.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 300.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Япония",
"brand" : "Redd",
"refractionIndex" : 1.67,
"cover" : "Crizal Alize+",
"color" : "Brown",
"diameter" : 73,
"material" : "Trivex",
"geometry" : "Биасферическая",
"type" : "Бифокальная",
"lensesClass" : "Тонированная",
"technology" : "Transitions VI",
"baseCurve" : 7.0,
"add" : 0.0,
"right" : null,
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update accessory
PUT /api/v2/supplies/90953500/position/0/accessory HTTP/1.1
{
"count" : 2,
"basePrice" : 1100.0,
"purchasingPrice" : 1200.0,
"retailPrice" : 1300.0,
"vatPercentage" : 10.0,
"vatSum" : 1400.0,
"accessoryCategory" : "Капли",
"model" : "Глазные",
"invoicePrice" : 1100.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
accessoryCategory |
String |
Категория аксессуара |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14400.0,
"retailSum" : 14600.0,
"baseSum" : 14200.0,
"purchasingVatSum" : 14800.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1300.0,
"purchasingPrice" : 1200.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1100.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Капли",
"model" : "Глазные",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "BBGR",
"brand" : null,
"color" : null,
"cover" : "Neva Max Blue UV",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -0.5,
"refractionIndex" : 1.5,
"diameter" : 65,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Пластик",
"geometry" : "Сферическая",
"type" : "Однофокальная",
"lensClass" : "Компьютерная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Interojo",
"name" : "1-Day Acuvue Oasys",
"color" : null,
"curvatureRadius" : 7.8,
"diameter" : 14.3,
"wearingPeriod" : "2 недели",
"dioptre" : -6.5,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Interojo",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : null
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_1",
"brand" : null,
"refractionIndex" : 1.7,
"cover" : "Crizal Alize+",
"color" : null,
"diameter" : 67,
"material" : "Поликарбонат",
"geometry" : "BC 6",
"type" : "Стигматическая",
"lensesClass" : "Поляризационная",
"technology" : null,
"baseCurve" : 6.3,
"add" : null,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update sunglasses
PUT /api/v2/supplies/90953500/position/1/sunglasses HTTP/1.1
{
"count" : 2,
"basePrice" : 1000.0,
"purchasingPrice" : 1000.0,
"retailPrice" : 1000.0,
"vatPercentage" : 20.0,
"vatSum" : 1000.0,
"manufacturer" : "Дания",
"brand" : "Fabiano",
"model" : "6007",
"frameType" : "Ободковая",
"material" : "Металл",
"targetGroup" : "Дет.",
"lensesType" : "-",
"color" : "19",
"design" : "Винтовая",
"invoicePrice" : 1000.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
frameType |
String |
Тип оправы |
Length must be between 0 and 50 inclusive. |
material |
String |
Материал |
Length must be between 0 and 50 inclusive |
targetGroup |
String |
Целевая группа |
Length must be between 0 and 50 inclusive. |
lensesType |
String |
Тип линз |
Length must be between 0 and 50 inclusive |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
design |
String |
Дизайн |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14000.0,
"retailSum" : 14000.0,
"baseSum" : 14000.0,
"purchasingVatSum" : 14000.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Дания",
"brand" : "Fabiano",
"color" : "19",
"model" : "6007",
"targetGroup" : "Дет.",
"material" : "Металл",
"frameType" : "Ободковая",
"lensesType" : "-",
"design" : "Винтовая",
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "BBGR",
"brand" : null,
"color" : null,
"cover" : "Neva Max Blue UV",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -0.5,
"refractionIndex" : 1.5,
"diameter" : 65,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Пластик",
"geometry" : "Сферическая",
"type" : "Однофокальная",
"lensClass" : "Компьютерная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Interojo",
"name" : "1-Day Acuvue Oasys",
"color" : null,
"curvatureRadius" : 7.8,
"diameter" : 14.3,
"wearingPeriod" : "2 недели",
"dioptre" : -6.5,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Interojo",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : null
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_1",
"brand" : null,
"refractionIndex" : 1.7,
"cover" : "Crizal Alize+",
"color" : null,
"diameter" : 67,
"material" : "Поликарбонат",
"geometry" : "BC 6",
"type" : "Стигматическая",
"lensesClass" : "Поляризационная",
"technology" : null,
"baseCurve" : 6.3,
"add" : null,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update glasses
PUT /api/v2/supplies/90953500/position/2/glasses HTTP/1.1
{
"count" : 2,
"basePrice" : 1000.0,
"purchasingPrice" : 1000.0,
"retailPrice" : 1000.0,
"vatPercentage" : 20.0,
"vatSum" : 1000.0,
"manufacturer" : "Италия",
"brand" : "Oscar Magnuson",
"model" : "CP1312-048",
"type" : "Ободковая",
"material" : "Пластик",
"targetGroup" : "Жен.",
"size" : null,
"design" : null,
"color" : null,
"invoicePrice" : 1000.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
type |
String |
Тип |
Length must be between 0 and 50 inclusive. |
material |
String |
Материал |
Length must be between 0 and 50 inclusive |
targetGroup |
String |
Целевая группа |
Length must be between 0 and 50 inclusive. |
size |
String |
Размер |
Length must be between 0 and 50 inclusive |
design |
String |
Дизайн |
Length must be between 0 and 50 inclusive |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14000.0,
"retailSum" : 14000.0,
"baseSum" : 14000.0,
"purchasingVatSum" : 14000.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Италия",
"brand" : "Oscar Magnuson",
"color" : null,
"model" : "CP1312-048",
"targetGroup" : "Жен.",
"material" : "Пластик",
"type" : "Ободковая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "BBGR",
"brand" : null,
"color" : null,
"cover" : "Neva Max Blue UV",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -0.5,
"refractionIndex" : 1.5,
"diameter" : 65,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Пластик",
"geometry" : "Сферическая",
"type" : "Однофокальная",
"lensClass" : "Компьютерная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Interojo",
"name" : "1-Day Acuvue Oasys",
"color" : null,
"curvatureRadius" : 7.8,
"diameter" : 14.3,
"wearingPeriod" : "2 недели",
"dioptre" : -6.5,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Interojo",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : null
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_1",
"brand" : null,
"refractionIndex" : 1.7,
"cover" : "Crizal Alize+",
"color" : null,
"diameter" : 67,
"material" : "Поликарбонат",
"geometry" : "BC 6",
"type" : "Стигматическая",
"lensesClass" : "Поляризационная",
"technology" : null,
"baseCurve" : 6.3,
"add" : null,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update lenses
PUT /api/v2/supplies/90953500/position/3/lenses HTTP/1.1
{
"count" : 2,
"basePrice" : 1000.0,
"purchasingPrice" : 1000.0,
"retailPrice" : 1000.0,
"vatPercentage" : 20.0,
"vatSum" : 1000.0,
"manufacturer" : "Essilor",
"brand" : "Asphor",
"type" : "Стигматическая",
"lensClass" : "Фотохромная",
"sphere" : -0.75,
"cylinder" : 1.75,
"addidation" : 2.5,
"refractionIndex" : 1.61,
"material" : "Полимер",
"diameter" : 60,
"geometry" : "Асферическая",
"cover" : "Super Hi-Vision",
"technology" : "Transitions",
"color" : "Brown",
"invoicePrice" : 1000.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive |
type |
String |
Тип |
Length must be between 0 and 50 inclusive. |
lensClass |
String |
Класс линз |
Length must be between 0 and 50 inclusive |
sphere |
Number |
Сфера |
Must not be null |
cylinder |
Number |
Цилиндр |
|
addidation |
Number |
Аддидация |
|
refractionIndex |
Number |
Индекс преломления |
Must not be null |
material |
String |
Материал |
Length must be between 0 and 50 inclusive. |
diameter |
Number |
Диаметр |
Must not be null |
geometry |
String |
Геометрия |
Length must be between 0 and 50 inclusive. |
cover |
String |
Покрытие |
Length must be between 0 and 50 inclusive. |
technology |
String |
Технология |
Length must be between 0 and 50 inclusive |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14000.0,
"retailSum" : 14000.0,
"baseSum" : 14000.0,
"purchasingVatSum" : 14000.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Essilor",
"brand" : "Asphor",
"color" : "Brown",
"cover" : "Super Hi-Vision",
"addidation" : 2.5,
"cylinderDioptre" : 1.75,
"dioptre" : -0.75,
"refractionIndex" : 1.61,
"diameter" : 60,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Полимер",
"geometry" : "Асферическая",
"type" : "Стигматическая",
"lensClass" : "Фотохромная",
"technology" : "Transitions",
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Interojo",
"name" : "1-Day Acuvue Oasys",
"color" : null,
"curvatureRadius" : 7.8,
"diameter" : 14.3,
"wearingPeriod" : "2 недели",
"dioptre" : -6.5,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Interojo",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : null
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_1",
"brand" : null,
"refractionIndex" : 1.7,
"cover" : "Crizal Alize+",
"color" : null,
"diameter" : 67,
"material" : "Поликарбонат",
"geometry" : "BC 6",
"type" : "Стигматическая",
"lensesClass" : "Поляризационная",
"technology" : null,
"baseCurve" : 6.3,
"add" : null,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update contact lenses
PUT /api/v2/supplies/90953500/position/4/contact-lenses HTTP/1.1
{
"count" : 2,
"basePrice" : 1000.0,
"purchasingPrice" : 1000.0,
"retailPrice" : 1000.0,
"vatPercentage" : 20.0,
"vatSum" : 1000.0,
"manufacturer" : "Johnson&Johnson",
"name" : "Acuvue Oasys",
"packageQuantity" : 12,
"sphere" : -1.25,
"cylinder" : -2.5,
"axis" : 10,
"addidation" : "low",
"diameter" : 14.0,
"curvatureRadius" : 8.5,
"color" : "TRUE SAPPHIRE",
"wearingPeriod" : "1 день",
"expireOn" : "2027-10-20",
"invoicePrice" : 1000.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
name |
String |
Название |
Length must be between 0 and 50 inclusive. |
packageQuantity |
Number |
Количество в упаковке |
Must be at least 1. |
sphere |
Number |
Сфера |
Must not be null |
cylinder |
Number |
Цилиндр |
|
axis |
Number |
Ось |
|
addidation |
String |
Аддидация |
Length must be between 0 and 50 inclusive. |
diameter |
Number |
Диаметр |
Must not be null |
curvatureRadius |
Number |
Радиус |
Must not be null |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
wearingPeriod |
String |
Период ношения |
Length must be between 0 and 50 inclusive. |
expireOn |
String |
Срок годности |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14000.0,
"retailSum" : 14000.0,
"baseSum" : 14000.0,
"purchasingVatSum" : 14000.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "BBGR",
"brand" : null,
"color" : null,
"cover" : "Neva Max Blue UV",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -0.5,
"refractionIndex" : 1.5,
"diameter" : 65,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Пластик",
"geometry" : "Сферическая",
"type" : "Однофокальная",
"lensClass" : "Компьютерная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Johnson&Johnson",
"name" : "Acuvue Oasys",
"color" : "TRUE SAPPHIRE",
"curvatureRadius" : 8.5,
"diameter" : 14.0,
"wearingPeriod" : "1 день",
"dioptre" : -1.25,
"cylinder" : -2.5,
"axis" : 10,
"add" : "low",
"packageQuantity" : 12,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Johnson&Johnson",
"brandName" : "Acuvue Oasys",
"orderId" : null,
"expireAt" : "2027-10-20"
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_1",
"brand" : null,
"refractionIndex" : 1.7,
"cover" : "Crizal Alize+",
"color" : null,
"diameter" : 67,
"material" : "Поликарбонат",
"geometry" : "BC 6",
"type" : "Стигматическая",
"lensesClass" : "Поляризационная",
"technology" : null,
"baseCurve" : 6.3,
"add" : null,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update extras
PUT /api/v2/supplies/90953500/position/5/extras HTTP/1.1
{
"count" : 2,
"basePrice" : 1000.0,
"purchasingPrice" : 1000.0,
"retailPrice" : 1000.0,
"vatPercentage" : 20.0,
"vatSum" : 1000.0,
"glassesManufacturer" : "Нидерланды",
"glassesBrand" : "Agio",
"model" : "40814",
"glassesType" : "Ободковая",
"material" : "-",
"targetGroup" : "Унисекс",
"color" : "c1",
"sphereOd" : -0.75,
"sphereOs" : -0.75,
"cylinderOd" : null,
"cylinderOs" : null,
"addidationOd" : null,
"addidationOs" : null,
"dpp" : null,
"lensesManufacturerOd" : null,
"lensesManufacturerOs" : null,
"lensesBrandOd" : null,
"lensesBrandOs" : null,
"lensesTypeOd" : null,
"lensesTypeOs" : null,
"lensClassOd" : null,
"lensClassOs" : null,
"coverOd" : null,
"coverOs" : null,
"invoicePrice" : 1000.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
glassesManufacturer |
String |
Производитель очков |
Length must be between 0 and 50 inclusive. |
glassesBrand |
String |
Бренд очков |
Length must be between 0 and 50 inclusive. |
model |
String |
Модель |
Length must be between 0 and 50 inclusive. |
glassesType |
String |
Тип очков |
Length must be between 0 and 50 inclusive. |
material |
String |
Материал |
Length must be between 0 and 50 inclusive |
targetGroup |
String |
Целевая группа |
Length must be between 0 and 50 inclusive. |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
sphereOd |
Number |
Сфера OD |
Must not be null |
sphereOs |
Number |
Сфера OS |
Must not be null |
cylinderOd |
Number |
Цилиндр OD |
|
cylinderOs |
Number |
Цилиндр OS |
|
addidationOd |
Number |
Аддидация OD |
|
addidationOs |
Number |
Аддидация OS |
|
dpp |
Number |
DPP |
|
lensesManufacturerOd |
String |
Производитель линз OD |
Length must be between 0 and 50 inclusive |
lensesManufacturerOs |
String |
Производитель линз OS |
Length must be between 0 and 50 inclusive |
lensesBrandOd |
String |
Бренд линз OD |
Length must be between 0 and 50 inclusive |
lensesBrandOs |
String |
Бренд линз OS |
Length must be between 0 and 50 inclusive |
lensesTypeOd |
String |
Тип линз OD |
Length must be between 0 and 50 inclusive |
lensesTypeOs |
String |
Тип линз OS |
Length must be between 0 and 50 inclusive |
lensClassOd |
String |
Класс линз OD |
Length must be between 0 and 50 inclusive |
lensClassOs |
String |
Класс линз OS |
Length must be between 0 and 50 inclusive |
coverOd |
String |
Покрытие OD |
Length must be between 0 and 50 inclusive |
coverOs |
String |
Покрытие OS |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14000.0,
"retailSum" : 14000.0,
"baseSum" : 14000.0,
"purchasingVatSum" : 14000.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "BBGR",
"brand" : null,
"color" : null,
"cover" : "Neva Max Blue UV",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -0.5,
"refractionIndex" : 1.5,
"diameter" : 65,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Пластик",
"geometry" : "Сферическая",
"type" : "Однофокальная",
"lensClass" : "Компьютерная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Interojo",
"name" : "1-Day Acuvue Oasys",
"color" : null,
"curvatureRadius" : 7.8,
"diameter" : 14.3,
"wearingPeriod" : "2 недели",
"dioptre" : -6.5,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Interojo",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : null
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Нидерланды",
"frameTargetGroup" : "Унисекс",
"frameMaterial" : "-",
"frameType" : "Ободковая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "Agio",
"frameColor" : "c1",
"frameModel" : "40814",
"odDioptre" : -0.75,
"osDioptre" : -0.75,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_1",
"brand" : null,
"refractionIndex" : 1.7,
"cover" : "Crizal Alize+",
"color" : null,
"diameter" : 67,
"material" : "Поликарбонат",
"geometry" : "BC 6",
"type" : "Стигматическая",
"lensesClass" : "Поляризационная",
"technology" : null,
"baseCurve" : 6.3,
"add" : null,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
update semi-finished lenses
PUT /api/v2/supplies/90953500/position/6/semifinished-lenses HTTP/1.1
{
"count" : 2,
"basePrice" : 1000.0,
"purchasingPrice" : 1000.0,
"retailPrice" : 1000.0,
"vatPercentage" : 20.0,
"vatSum" : 1000.0,
"manufacturer" : "supply_test_manufacturer_2",
"brand" : "brand2",
"type" : "Прогрессивная",
"lensesClass" : "Тонированная",
"base" : 6.4,
"addidation" : 8.3,
"refractionIndex" : 1.6,
"material" : "Orma 15",
"diameter" : 75,
"geometry" : "Биасферическая",
"cover" : "Optifog",
"technology" : "Polarising",
"color" : "Gray",
"invoicePrice" : 1000.0
}
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
Path | Type | Description | Constraints |
---|---|---|---|
count |
Number |
Кол-во |
Must be at least 1 and at most 9999. |
basePrice |
Number |
Базовая цена |
Must be at least 0 |
purchasingPrice |
Number |
Закупочная цена |
Must be at least 0. |
retailPrice |
Number |
Розничная цена |
Must be at least 0. |
vatPercentage |
Number |
Процент НДС |
Must be at least 0 |
vatSum |
Number |
Сумма НДС |
Must be at least 0 |
manufacturer |
String |
Производитель |
Length must be between 0 and 50 inclusive. |
brand |
String |
Бренд |
Length must be between 0 and 50 inclusive |
type |
String |
Тип |
Length must be between 0 and 50 inclusive. |
lensesClass |
String |
Класс линз |
Length must be between 0 and 50 inclusive. |
base |
Number |
База |
Must not be null |
addidation |
Number |
Аддидация |
|
refractionIndex |
Number |
Индекс преломления |
Must not be null |
material |
String |
Материал |
Length must be between 0 and 50 inclusive. |
diameter |
Number |
Диаметр |
Must not be null |
geometry |
String |
Геометрия |
Length must be between 0 and 50 inclusive. |
cover |
String |
Покрытие |
Length must be between 0 and 50 inclusive. |
technology |
String |
Технология |
Length must be between 0 and 50 inclusive. |
color |
String |
Цвет |
Length must be between 0 and 50 inclusive |
HTTP/1.1 200 OK
{
"id" : 90953500,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 15,
"comments" : null,
"purchasingSum" : 14000.0,
"retailSum" : 14000.0,
"baseSum" : 14000.0,
"purchasingVatSum" : 14000.0,
"departmentId" : null,
"groups" : [ {
"positionId" : 0,
"count" : 2,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953500,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
}, {
"positionId" : 1,
"count" : 2,
"goods" : {
"className" : "SunglassesResponse",
"id" : 9000953502,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}
}, {
"positionId" : 2,
"count" : 2,
"goods" : {
"className" : "GlassesResponse",
"id" : 9000953504,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : null,
"design" : null,
"orderId" : null
}
}, {
"positionId" : 3,
"count" : 2,
"goods" : {
"className" : "LensResponse",
"id" : 9000953506,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "BBGR",
"brand" : null,
"color" : null,
"cover" : "Neva Max Blue UV",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -0.5,
"refractionIndex" : 1.5,
"diameter" : 65,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "Пластик",
"geometry" : "Сферическая",
"type" : "Однофокальная",
"lensClass" : "Компьютерная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}
}, {
"positionId" : 4,
"count" : 2,
"goods" : {
"className" : "ContactLensResponse",
"id" : 9000953508,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "Interojo",
"name" : "1-Day Acuvue Oasys",
"color" : null,
"curvatureRadius" : 7.8,
"diameter" : 14.3,
"wearingPeriod" : "2 недели",
"dioptre" : -6.5,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"manufacturerName" : "Interojo",
"brandName" : "1-Day Acuvue Oasys",
"orderId" : null,
"expireAt" : null
}
}, {
"positionId" : 5,
"count" : 2,
"goods" : {
"className" : "ExtrasResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000953510,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
}
}, {
"positionId" : 6,
"count" : 2,
"goods" : {
"className" : "SemifinishedLensResponse",
"id" : 9000953512,
"retailPrice" : 1000.0,
"purchasingPrice" : 1000.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "SEMIFINISHED_LENS",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"manufacturer" : "supply_test_manufacturer_2",
"brand" : "brand2",
"refractionIndex" : 1.6,
"cover" : "Optifog",
"color" : "Gray",
"diameter" : 75,
"material" : "Orma 15",
"geometry" : "Биасферическая",
"type" : "Прогрессивная",
"lensesClass" : "Тонированная",
"technology" : "Polarising",
"baseCurve" : 6.4,
"add" : 8.3,
"right" : true,
"orderId" : null
}
}, {
"positionId" : 7,
"count" : 1,
"goods" : {
"className" : "AccessoryResponse",
"id" : 9000953525,
"retailPrice" : 0.0,
"purchasingPrice" : 0.0,
"soldPrice" : null,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"basePrice" : 1000.0,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "SAVED",
"accessoryCategory" : "Подарок",
"model" : "с рисунком",
"orderId" : null
}
} ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |
delete position
DELETE /api/v2/supplies/9000953006/position/0 HTTP/1.1
Parameter | Description |
---|---|
|
ID поставки |
|
ID позиции. Он же autosaveId |
HTTP/1.1 200 OK
{
"id" : 9000953006,
"arrivalOn" : "2025-10-20",
"contract" : null,
"invoiceOn" : null,
"invoiceNumber" : null,
"supplierName" : "supply_test_supplier",
"status" : "SAVED",
"inDeptNum" : null,
"num" : 0,
"comments" : null,
"purchasingSum" : 0.0,
"retailSum" : 0.0,
"baseSum" : 0.0,
"purchasingVatSum" : 0.0,
"departmentId" : null,
"groups" : [ ]
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
|
|
groups |
|
|
Id позиции в поставке (позиция - набор одновременно добавленных товаров) |
|
|
groups.count |
|
|
groups.goods |