Supplies

get price types

request
GET /api/v2/supplies/prices/types HTTP/1.1
response
HTTP/1.1 200 OK

[ "PURCHASE", "RETAIL" ]

get

request
GET /api/v2/supplies/9000003399 HTTP/1.1
Table 334. /api/v2/supplies/{supplyId}
Parameter Description

supplyId

ID поставки

response
HTTP/1.1 200 OK

{
  "id" : 9000003399,
  "arrivalOn" : "2025-10-17",
  "contract" : {
    "id" : 1,
    "name" : "Основной"
  },
  "invoiceOn" : "2025-10-20",
  "invoiceNumber" : "23RD00020531",
  "supplierName" : "ООО \"Джонсон & Джонсон\"",
  "status" : "SAVED",
  "inDeptNum" : null,
  "num" : 1,
  "comments" : "test",
  "purchasingSum" : 1461.0,
  "retailSum" : 0.0,
  "baseSum" : 1461.0,
  "purchasingVatSum" : null,
  "departmentId" : null,
  "groups" : [ {
    "positionId" : 0,
    "count" : 1,
    "goods" : {
      "className" : "AccessoryResponse",
      "id" : 9000333150,
      "retailPrice" : 400.0,
      "purchasingPrice" : 100.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "ACCESSORY",
      "expected" : false,
      "basePrice" : 250.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "accessoryCategory" : "Подарок",
      "model" : "магнит 892-Е20",
      "orderId" : null
    }
  }, {
    "positionId" : 1,
    "count" : 1,
    "goods" : {
      "className" : "SunglassesResponse",
      "id" : 9000333151,
      "retailPrice" : 400.0,
      "purchasingPrice" : 100.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "SUNGLASSES",
      "expected" : false,
      "basePrice" : 250.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" : 1,
    "goods" : {
      "className" : "GlassesResponse",
      "id" : 9000333152,
      "retailPrice" : 7500.0,
      "purchasingPrice" : 3000.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "GLASSES",
      "expected" : false,
      "basePrice" : 3500.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" : 1,
    "goods" : {
      "className" : "LensResponse",
      "id" : 9000333153,
      "retailPrice" : 4500.0,
      "purchasingPrice" : 1500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "LENS",
      "expected" : false,
      "basePrice" : 2500.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "manufacturer" : "BBGR",
      "brand" : "Extenso 10 OR",
      "color" : null,
      "cover" : "CC STOK",
      "addidation" : null,
      "cylinderDioptre" : null,
      "dioptre" : -1.0,
      "refractionIndex" : 1.5,
      "diameter" : 55,
      "partOfOrder" : null,
      "inProduction" : null,
      "inOtherDepartment" : null,
      "material" : "CR-39",
      "geometry" : "BC 3",
      "type" : "Однофокальная",
      "lensClass" : "Поляризационная фотохромная",
      "technology" : null,
      "dioptresFrom" : null,
      "dioptresTo" : null,
      "cylinderFrom" : null,
      "cylinderTo" : null,
      "semifinishedLensId" : null,
      "orderId" : null
    }
  }, {
    "positionId" : 4,
    "count" : 1,
    "goods" : {
      "className" : "ContactLensResponse",
      "id" : 9000333154,
      "retailPrice" : 1100.0,
      "purchasingPrice" : 500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "CONTACT_LENS",
      "expected" : false,
      "basePrice" : 900.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" : 1,
    "goods" : {
      "className" : "ExtrasResponse",
      "id" : 9000333155,
      "retailPrice" : 5700.0,
      "purchasingPrice" : 2500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "EXTRA",
      "expected" : false,
      "basePrice" : 3500.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "extrasDesc" : {
        "className" : "ExtrasDescResponse",
        "id" : 9000333155,
        "retailPrice" : 5700.0,
        "purchasingPrice" : 2500.0,
        "soldPrice" : null,
        "baseSalePrice" : null,
        "sellableCategory" : "EXTRA",
        "expected" : false,
        "basePrice" : 3500.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" : 1,
    "goods" : {
      "className" : "SemifinishedLensResponse",
      "id" : 9000333156,
      "retailPrice" : 5700.0,
      "purchasingPrice" : 2500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "SEMIFINISHED_LENS",
      "expected" : false,
      "basePrice" : 3500.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "manufacturer" : "B&K",
      "brand" : null,
      "refractionIndex" : 1.7,
      "cover" : "Crizal Alize+",
      "color" : null,
      "diameter" : 67,
      "material" : "Поликарбонат",
      "geometry" : "BC 6",
      "type" : "Стигматическая",
      "lensesClass" : "Поляризационная",
      "technology" : null,
      "baseCurve" : 11.33,
      "add" : null,
      "right" : true,
      "orderId" : null
    }
  } ]
}
Path Type Description

id

Number

id

arrivalOn

String

arrivalOn

invoiceOn

String

invoiceOn

supplierName

String

supplierName

status

String

status

inDeptNum

Number

inDeptNum

num

Number

num

comments

String

comments

purchasingSum

Number

purchasingSum

retailSum

Number

retailSum

baseSum

Number

baseSum

departmentId

Number

departmentId

groups

Array

groups

groups.positionId

Number

Id позиции в поставке (позиция - набор одновременно добавленных товаров)

groups.count

Number

groups.count

groups.goods

Array

groups.goods

list

request
GET /api/v2/supplies?size=10&page=0&status=SAVED HTTP/1.1
Parameter Description

arrivalOnFrom

date arrival from

arrivalOnTo

date arrival to

invoiceOnFrom

date invoice from

invoiceOnTo

date invoice to

supplierName

supplier name

specialSuppliers

true or false is special suppliers

status

status: SAVED or REGISTERED

pageable

Pageable description

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 1000000164,
    "arrivalOn" : "2020-05-25",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : "OptimaOpt",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 2,
    "comments" : "",
    "purchasingSum" : 200.0,
    "retailSum" : 2000.0,
    "baseSum" : 200.0,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000162,
    "arrivalOn" : "2020-04-20",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : "ООО \"Ваша Мамка\"",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 13,
    "comments" : "",
    "purchasingSum" : 8238.9,
    "retailSum" : 16560.0,
    "baseSum" : 8238.9,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000150,
    "arrivalOn" : "2020-02-13",
    "contract" : null,
    "invoiceOn" : "2020-02-13",
    "invoiceNumber" : null,
    "supplierName" : "OptimaOpt (1000001353 от 13.02.2020)",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 1,
    "comments" : "",
    "purchasingSum" : 5.0,
    "retailSum" : 1.0,
    "baseSum" : 5.0,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000146,
    "arrivalOn" : "2020-02-11",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : null,
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 10,
    "comments" : "",
    "purchasingSum" : 10000.0,
    "retailSum" : 4000000.0,
    "baseSum" : 10000.0,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000137,
    "arrivalOn" : "2020-01-20",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : null,
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 2,
    "comments" : "",
    "purchasingSum" : 20.0,
    "retailSum" : 100.0,
    "baseSum" : 20.0,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000130,
    "arrivalOn" : "2019-08-13",
    "contract" : null,
    "invoiceOn" : "2019-08-10",
    "invoiceNumber" : null,
    "supplierName" : "ООО \"Линзы Хойя Рус\" (19УТ-065582 от 10.08.2019)",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 12,
    "comments" : "Накладная номер 1c92af54-bb26-11e9-81c0-00155d022815",
    "purchasingSum" : 11802.12,
    "retailSum" : 0.0,
    "baseSum" : 11802.12,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000128,
    "arrivalOn" : "2019-08-13",
    "contract" : null,
    "invoiceOn" : "2019-08-10",
    "invoiceNumber" : null,
    "supplierName" : "ООО \"Линзы Хойя Рус\" (19УТ-065582 от 10.08.2019)",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 8,
    "comments" : "Накладная номер 1c92af54-bb26-11e9-81c0-00155d022815",
    "purchasingSum" : 1059.36,
    "retailSum" : 0.0,
    "baseSum" : 1059.36,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000123,
    "arrivalOn" : "2019-06-11",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : "ООО \"Ваша Мамка\"",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 2,
    "comments" : "",
    "purchasingSum" : 2.0,
    "retailSum" : 600.0,
    "baseSum" : 2.0,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000108,
    "arrivalOn" : "2019-02-26",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : "ООО \"Линзы Хойя Рус\"",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 2,
    "comments" : "",
    "purchasingSum" : 856.54,
    "retailSum" : 0.0,
    "baseSum" : 856.54,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  }, {
    "id" : 1000000107,
    "arrivalOn" : "2019-02-26",
    "contract" : null,
    "invoiceOn" : null,
    "invoiceNumber" : null,
    "supplierName" : "ООО \"Линзы Хойя Рус\"",
    "status" : "SAVED",
    "inDeptNum" : 0,
    "num" : 2,
    "comments" : "",
    "purchasingSum" : 856.54,
    "retailSum" : 0.0,
    "baseSum" : 856.54,
    "purchasingVatSum" : null,
    "departmentId" : 1000000005,
    "groups" : null
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 10,
    "sort" : {
      "empty" : false,
      "sorted" : true,
      "unsorted" : false
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "totalResult" : {
    "count" : 31,
    "totalNum" : 3908,
    "totalRetailSum" : 7852040.11,
    "totalPurchasingSum" : 1914134.73,
    "totalBaseSum" : 1914134.73,
    "pageNum" : 54,
    "pageRetailSum" : 4019261.0,
    "pagePurchasingSum" : 33040.46,
    "pageBaseSum" : 33040.46
  },
  "totalElements" : 31,
  "totalPages" : 4,
  "first" : true,
  "last" : false,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : false,
    "sorted" : true,
    "unsorted" : false
  },
  "numberOfElements" : 10,
  "empty" : false
}
Path Type Description

content[].

Array

an array of filtered supplies

[].id

Number

id

[].arrivalOn

String

arrivalOn

[].invoiceOn

String

invoiceOn

[].supplierName

String

supplierName

[].status

String

status

[].inDeptNum

Number

inDeptNum

[].num

Number

num

[].comments

String

comments

[].purchasingSum

Number

purchasingSum

[].retailSum

Number

retailSum

[].baseSum

Number

baseSum

[].departmentId

Number

departmentId

[].groups

Array

groups

[].groups.positionId

Number

Id позиции в поставке (позиция - набор одновременно добавленных товаров)

[].groups.count

Number

groups.count

[].groups.goods

Array

groups.goods

create empty

request
POST /api/v2/supplies HTTP/1.1
Content-Type: application/x-www-form-urlencoded
response
HTTP/1.1 200 OK

{
  "id" : 1000000176,
  "arrivalOn" : "2025-10-20",
  "contract" : null,
  "invoiceOn" : null,
  "invoiceNumber" : null,
  "supplierName" : null,
  "status" : "SAVED",
  "inDeptNum" : null,
  "num" : 0,
  "comments" : "",
  "purchasingSum" : 0.0,
  "retailSum" : 0.0,
  "baseSum" : null,
  "purchasingVatSum" : 0.0,
  "departmentId" : null,
  "groups" : null
}

update

request
PUT /api/v2/supplies/9000003399 HTTP/1.1

{
  "supplierName" : "OptimaOpt",
  "contractId" : 1005,
  "comment" : "Test comment for supply",
  "invoiceNumber" : "AB-7902-VALLEY",
  "invoiceCreatedOn" : "2025-03-03"
}
response
HTTP/1.1 200 OK

{
  "id" : 9000003399,
  "arrivalOn" : "2025-10-17",
  "contract" : {
    "id" : 1005,
    "name" : "Тест контракт 2025"
  },
  "invoiceOn" : "2025-03-03",
  "invoiceNumber" : "AB-7902-VALLEY",
  "supplierName" : "OptimaOpt",
  "status" : "SAVED",
  "inDeptNum" : null,
  "num" : 1,
  "comments" : "Test comment for supply",
  "purchasingSum" : 1461.0,
  "retailSum" : 0.0,
  "baseSum" : 1461.0,
  "purchasingVatSum" : null,
  "departmentId" : null,
  "groups" : [ {
    "positionId" : 0,
    "count" : 1,
    "goods" : {
      "className" : "AccessoryResponse",
      "id" : 9000333150,
      "retailPrice" : 400.0,
      "purchasingPrice" : 100.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "ACCESSORY",
      "expected" : false,
      "basePrice" : 250.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "accessoryCategory" : "Подарок",
      "model" : "магнит 892-Е20",
      "orderId" : null
    }
  }, {
    "positionId" : 1,
    "count" : 1,
    "goods" : {
      "className" : "SunglassesResponse",
      "id" : 9000333151,
      "retailPrice" : 400.0,
      "purchasingPrice" : 100.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "SUNGLASSES",
      "expected" : false,
      "basePrice" : 250.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" : 1,
    "goods" : {
      "className" : "GlassesResponse",
      "id" : 9000333152,
      "retailPrice" : 7500.0,
      "purchasingPrice" : 3000.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "GLASSES",
      "expected" : false,
      "basePrice" : 3500.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" : 1,
    "goods" : {
      "className" : "LensResponse",
      "id" : 9000333153,
      "retailPrice" : 4500.0,
      "purchasingPrice" : 1500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "LENS",
      "expected" : false,
      "basePrice" : 2500.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "manufacturer" : "BBGR",
      "brand" : "Extenso 10 OR",
      "color" : null,
      "cover" : "CC STOK",
      "addidation" : null,
      "cylinderDioptre" : null,
      "dioptre" : -1.0,
      "refractionIndex" : 1.5,
      "diameter" : 55,
      "partOfOrder" : null,
      "inProduction" : null,
      "inOtherDepartment" : null,
      "material" : "CR-39",
      "geometry" : "BC 3",
      "type" : "Однофокальная",
      "lensClass" : "Поляризационная фотохромная",
      "technology" : null,
      "dioptresFrom" : null,
      "dioptresTo" : null,
      "cylinderFrom" : null,
      "cylinderTo" : null,
      "semifinishedLensId" : null,
      "orderId" : null
    }
  }, {
    "positionId" : 4,
    "count" : 1,
    "goods" : {
      "className" : "ContactLensResponse",
      "id" : 9000333154,
      "retailPrice" : 1100.0,
      "purchasingPrice" : 500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "CONTACT_LENS",
      "expected" : false,
      "basePrice" : 900.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" : 1,
    "goods" : {
      "className" : "ExtrasResponse",
      "id" : 9000333155,
      "retailPrice" : 5700.0,
      "purchasingPrice" : 2500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "EXTRA",
      "expected" : false,
      "basePrice" : 3500.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "extrasDesc" : {
        "className" : "ExtrasDescResponse",
        "id" : 9000333155,
        "retailPrice" : 5700.0,
        "purchasingPrice" : 2500.0,
        "soldPrice" : null,
        "baseSalePrice" : null,
        "sellableCategory" : "EXTRA",
        "expected" : false,
        "basePrice" : 3500.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" : 1,
    "goods" : {
      "className" : "SemifinishedLensResponse",
      "id" : 9000333156,
      "retailPrice" : 5700.0,
      "purchasingPrice" : 2500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "SEMIFINISHED_LENS",
      "expected" : false,
      "basePrice" : 3500.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "manufacturer" : "B&K",
      "brand" : null,
      "refractionIndex" : 1.7,
      "cover" : "Crizal Alize+",
      "color" : null,
      "diameter" : 67,
      "material" : "Поликарбонат",
      "geometry" : "BC 6",
      "type" : "Стигматическая",
      "lensesClass" : "Поляризационная",
      "technology" : null,
      "baseCurve" : 11.33,
      "add" : null,
      "right" : true,
      "orderId" : null
    }
  } ]
}

set prices

request
POST /api/v2/supplies/90953500/prices HTTP/1.1

{
  "forZeroPricedOnly" : true,
  "type" : "PURCHASE",
  "price" : 2500.0
}
Table 335. /api/v2/supplies/{supplyId}/prices
Parameter Description

supplyId

ID поставки

response
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_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" : 2500.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "ACCESSORY",
      "expected" : false,
      "basePrice" : 1000.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "accessoryCategory" : "Подарок",
      "model" : "с рисунком",
      "orderId" : null
    }
  } ]
}

update prices

request
PUT /api/v2/supplies/90953500/prices HTTP/1.1

{
  "forZeroPricedOnly" : false,
  "type" : "PURCHASE",
  "multiplier" : 2.0,
  "increase" : 2500.0,
  "roundType" : "NO_ROUND"
}
Table 336. /api/v2/supplies/{supplyId}/prices
Parameter Description

supplyId

ID поставки

response
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" : 7000.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" : 7000.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" : 7000.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" : 7000.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" : 7000.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" : 7000.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" : 7000.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" : 7000.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" : 7000.0,
      "soldPrice" : null,
      "baseSalePrice" : null,
      "sellableCategory" : "ACCESSORY",
      "expected" : false,
      "basePrice" : 1000.0,
      "barcode" : null,
      "factory" : false,
      "departmentName" : null,
      "goodsStatus" : "SAVED",
      "accessoryCategory" : "Подарок",
      "model" : "с рисунком",
      "orderId" : null
    }
  } ]
}

register

request
PUT /api/v2/supplies/9000003399/register HTTP/1.1
Content-Type: application/x-www-form-urlencoded
response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/supplies/9000953006?arrivalOn=2025-10-20&supplier=supply_test_supplier HTTP/1.1
Table 337. /api/v2/supplies/{supplyId}
Parameter Description

supplyId

ID поставки

Parameter Description

arrivalOn

Дата поставки

supplier

ID поставщика

response
HTTP/1.1 200 OK

delete from journal

request
DELETE /api/v2/supplies/9000953006?arrivalOn=2025-10-20&supplier=supply_test_supplier HTTP/1.1
Table 338. /api/v2/supplies/{supplyId}
Parameter Description

supplyId

ID поставки

Parameter Description

arrivalOn

Дата поставки

supplier

ID поставщика

response
HTTP/1.1 200 OK