[POST] …/v1/RevenueByDay/get
Возвращает информацию об обороте склада по дням
Входные параметры
Название | Тип данных | Обязательность | Описание параметра |
---|---|---|---|
start_date | Int64 | Необязательный | Дата начала периода в формате unixtime в секундах |
end_date | Int64 | Необязательный | Дата окончания периода в формате unixtime в секундах |
firm_id | Int64 | Необязательный | id предприятия |
Ограничения и проверки
Пример запроса
{
"start_date":1534153454,
"end_date":1534157896,
"firm_id":1
}
Выходные параметры
Название | Тип данных | Обязательность | Описание параметра |
---|---|---|---|
Result | Object of RevenueByDay | Обязательный | Объект RevenueByDay |
Пример ответа
{
"ok": true,
"result": [
{
"date": 1623610800,
"stock": {
"id": 1,
"name": "Склад",
"firm": {
"id": 1,
"group": {
"id": 1,
"parent_id": 0,
"name": "Предприятие",
"child_count": 0,
"last_update": 1623234128
},
"deleted_mark": false,
"last_update": 1623234128,
"name": "Предприятие",
"fullname": null,
"boss_name": null,
"address": null,
"phones": null,
"description": null,
"inn": null,
"bank_name": null,
"mfo": null,
"rs": null,
"oked": null,
"vat_index": null
},
"deleted_mark": false,
"last_update": 1623234152
},
"wholesale_amount": 0.0,
"wholesale_return_amount": 0.0,
"retail_amount": 5050.0
},
{
"date": 1623956400,
"stock": {
"id": 1,
"name": "Склад",
"firm": {
"id": 1,
"group": {
"id": 1,
"parent_id": 0,
"name": "Предприятие",
"child_count": 0,
"last_update": 1623234128
},
"deleted_mark": false,
"last_update": 1623234128,
"name": "Предприятие",
"fullname": null,
"boss_name": null,
"address": null,
"phones": null,
"description": null,
"inn": null,
"bank_name": null,
"mfo": null,
"rs": null,
"oked": null,
"vat_index": null
},
"deleted_mark": false,
"last_update": 1623234152
},
"wholesale_amount": 1000000.0,
"wholesale_return_amount": 0.0,
"retail_amount": 0.0
},
{
"date": 1624474800,
"stock": {
"id": 1,
"name": "Склад",
"firm": {
"id": 1,
"group": {
"id": 1,
"parent_id": 0,
"name": "Предприятие",
"child_count": 0,
"last_update": 1623234128
},
"deleted_mark": false,
"last_update": 1623234128,
"name": "Предприятие",
"fullname": null,
"boss_name": null,
"address": null,
"phones": null,
"description": null,
"inn": null,
"bank_name": null,
"mfo": null,
"rs": null,
"oked": null,
"vat_index": null
},
"deleted_mark": false,
"last_update": 1623234152
},
"wholesale_amount": 0.0,
"wholesale_return_amount": 0.0,
"retail_amount": 2000.0
},
{
"date": 1625598000,
"stock": {
"id": 1,
"name": "Склад",
"firm": {
"id": 1,
"group": {
"id": 1,
"parent_id": 0,
"name": "Предприятие",
"child_count": 0,
"last_update": 1623234128
},
"deleted_mark": false,
"last_update": 1623234128,
"name": "Предприятие",
"fullname": null,
"boss_name": null,
"address": null,
"phones": null,
"description": null,
"inn": null,
"bank_name": null,
"mfo": null,
"rs": null,
"oked": null,
"vat_index": null
},
"deleted_mark": false,
"last_update": 1623234152
},
"wholesale_amount": 0.0,
"wholesale_return_amount": 0.0,
"retail_amount": 3400.0
},
{
"date": 1625684400,
"stock": {
"id": 1,
"name": "Склад",
"firm": {
"id": 1,
"group": {
"id": 1,
"parent_id": 0,
"name": "Предприятие",
"child_count": 0,
"last_update": 1623234128
},
"deleted_mark": false,
"last_update": 1623234128,
"name": "Предприятие",
"fullname": null,
"boss_name": null,
"address": null,
"phones": null,
"description": null,
"inn": null,
"bank_name": null,
"mfo": null,
"rs": null,
"oked": null,
"vat_index": null
},
"deleted_mark": false,
"last_update": 1623234152
},
"wholesale_amount": 0.0,
"wholesale_return_amount": 0.0,
"retail_amount": 65000.008
},
{
"date": 1626030000,
"stock": {
"id": 1,
"name": "Склад",
"firm": {
"id": 1,
"group": {
"id": 1,
"parent_id": 0,
"name": "Предприятие",
"child_count": 0,
"last_update": 1623234128
},
"deleted_mark": false,
"last_update": 1623234128,
"name": "Предприятие",
"fullname": null,
"boss_name": null,
"address": null,
"phones": null,
"description": null,
"inn": null,
"bank_name": null,
"mfo": null,
"rs": null,
"oked": null,
"vat_index": null
},
"deleted_mark": false,
"last_update": 1623234152
},
"wholesale_amount": 7500.0,
"wholesale_return_amount": 0.0,
"retail_amount": 16250.0
}
]
}