Supplies
get
GET /api/v2/supplies/1000000165 HTTP/1.1
Parameter | Description |
---|---|
|
ID поставки |
HTTP/1.1 200 OK
{
"id" : 1000000165,
"arrivalOn" : "2020-05-26",
"invoiceOn" : "2020-05-18",
"supplierName" : "ООО \"Компания МОК\"",
"status" : "REGISTERED",
"inDeptNum" : null,
"num" : 1,
"comments" : "",
"purchasingSum" : 300.0,
"retailSum" : 1500.0,
"baseSum" : 300.0,
"departmentId" : null
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
list
GET /api/v2/supplies?size=10&page=0&status=SAVED HTTP/1.1
Parameter | Description |
---|---|
|
date arrival from |
|
date arrival to |
|
date invoice from |
|
date invoice to |
|
supplier name |
|
true or false is special suppliers |
|
status: SAVED or REGISTERED |
|
HTTP/1.1 200 OK
{
"content" : [ {
"id" : 1000000164,
"arrivalOn" : "2020-05-25",
"invoiceOn" : null,
"supplierName" : "OptimaOpt",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 2,
"comments" : "",
"purchasingSum" : 200.0,
"retailSum" : 2000.0,
"baseSum" : 200.0,
"departmentId" : 1000000005
}, {
"id" : 1000000162,
"arrivalOn" : "2020-04-20",
"invoiceOn" : null,
"supplierName" : "ООО \"Ваша Мамка\"",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 13,
"comments" : "",
"purchasingSum" : 8238.9,
"retailSum" : 16560.0,
"baseSum" : 8238.9,
"departmentId" : 1000000005
}, {
"id" : 1000000150,
"arrivalOn" : "2020-02-13",
"invoiceOn" : "2020-02-13",
"supplierName" : "OptimaOpt (1000001353 от 13.02.2020)",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 1,
"comments" : "",
"purchasingSum" : 5.0,
"retailSum" : 1.0,
"baseSum" : 5.0,
"departmentId" : 1000000005
}, {
"id" : 1000000137,
"arrivalOn" : "2020-01-20",
"invoiceOn" : null,
"supplierName" : null,
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 2,
"comments" : "",
"purchasingSum" : 20.0,
"retailSum" : 100.0,
"baseSum" : 20.0,
"departmentId" : 1000000005
}, {
"id" : 1000000130,
"arrivalOn" : "2019-08-13",
"invoiceOn" : "2019-08-10",
"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,
"departmentId" : 1000000005
}, {
"id" : 1000000128,
"arrivalOn" : "2019-08-13",
"invoiceOn" : "2019-08-10",
"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,
"departmentId" : 1000000005
}, {
"id" : 1000000123,
"arrivalOn" : "2019-06-11",
"invoiceOn" : null,
"supplierName" : "ООО \"Ваша Мамка\"",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 2,
"comments" : "",
"purchasingSum" : 2.0,
"retailSum" : 600.0,
"baseSum" : 2.0,
"departmentId" : 1000000005
}, {
"id" : 1000000108,
"arrivalOn" : "2019-02-26",
"invoiceOn" : null,
"supplierName" : "ООО \"Линзы Хойя Рус\"",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 2,
"comments" : "",
"purchasingSum" : 856.54,
"retailSum" : 0.0,
"baseSum" : 856.54,
"departmentId" : 1000000005
}, {
"id" : 1000000107,
"arrivalOn" : "2019-02-26",
"invoiceOn" : null,
"supplierName" : "ООО \"Линзы Хойя Рус\"",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 2,
"comments" : "",
"purchasingSum" : 856.54,
"retailSum" : 0.0,
"baseSum" : 856.54,
"departmentId" : 1000000005
}, {
"id" : 1000000091,
"arrivalOn" : "2019-02-22",
"invoiceOn" : null,
"supplierName" : "ООО \"Ваша Мамка\"",
"status" : "SAVED",
"inDeptNum" : 0,
"num" : 26,
"comments" : "",
"purchasingSum" : 80939.84,
"retailSum" : 218270.0,
"baseSum" : 80939.84,
"departmentId" : 1000000005
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 10,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"totalResult" : {
"count" : 30,
"totalNum" : 3898,
"totalRetailSum" : 3852040.11,
"totalPurchasingSum" : 1904134.73,
"totalBaseSum" : 1904134.73,
"pageNum" : 70,
"pageRetailSum" : 237531.0,
"pagePurchasingSum" : 103980.3,
"pageBaseSum" : 103980.3
},
"totalElements" : 30,
"totalPages" : 3,
"first" : true,
"last" : false,
"size" : 10,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 10,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
an array of filtered supplies |
|
|
id |
|
|
arrivalOn |
|
|
invoiceOn |
|
|
supplierName |
|
|
status |
|
|
inDeptNum |
|
|
num |
|
|
comments |
|
|
purchasingSum |
|
|
retailSum |
|
|
baseSum |
|
|
departmentId |
delete
DELETE /api/v2/supplies/9000953006?arrivalOn=2025-08-27&supplier=test_supplier HTTP/1.1
Parameter | Description |
---|---|
|
ID поставки |
Parameter | Description |
---|---|
|
Дата поставки |
|
ID поставщика |
HTTP/1.1 200 OK
delete from journal
DELETE /api/v2/supplies/9000953006?arrivalOn=2025-08-27&supplier=test_supplier HTTP/1.1
Parameter | Description |
---|---|
|
ID поставки |
Parameter | Description |
---|---|
|
Дата поставки |
|
ID поставщика |
HTTP/1.1 200 OK