Отчёты
Отчет по операциям
Request
- HTTP Method:
POST - Content Type:
application/json - URL:
https://api.skladbot.ru/v1/report/transactions
Parameters
| Property | Description |
|---|---|
customer_idoptional | Integer ID клиента |
typerequired | string Тип транзакции:
|
from | DateTime Период формирования отчёта |
to | DateTime Период формирования отчёта |
with_details | Booleantrue, если нужно добавить дополнительные параметры в ответ. |
Примеры запроса
{
"type": "in",
"from": "2024-05-01 00:00:00",
"to": "2024-05-07 00:00:00",
"with_details": true
}
Примеры ответа
{
"data": {
"total": 5000,
"type": "in",
"details": [
{
"customer": {
"name": "Тест клиент 1",
"inn": "123456789012",
"id": 123490
},
"amount": 2000
},
{
"customer": {
"name": "Тест клиент 2",
"inn": "123456789012",
"id": 123456
},
"amount": 3000
}
]
}
}
Отчет об остатках
Request
- HTTP Method:
POST - Content Type:
application/json - URL:
https://api.skladbot.ru/v1/report/stock
Parameters
| Property | Description |
|---|---|
customer_id | Integer ID клиента |
with_details | Booleantrue, если нужно добавить дополнительные параметры в ответ. |
Примеры запроса
{
"with_details": true
}
Примеры ответа
{
"data": {
"total": 2605774,
"details": [
{
"customer": {
"name": "Тест Клиент 1",
"inn": "112233453909",
"id": 1123
},
"amount": 303,
"nominal_amount": 0,
"total": 303
},
{
"customer": {
"name": "Тест Клиент 2",
"inn": "112233453910",
"id": 4356
},
"amount": 39860,
"nominal_amount": 213,
"total": 40073
}
]
}
}
Отчет по счетам
Request
- HTTP Method:
POST - Content Type:
application/json - URL:
https://api.skladbot.ru/v1/report/invoices
Parameters
| Property | Description |
|---|---|
customer_idoptional | Integer ID клиента |
from | DateTime Период формирования отчёта |
to | DateTime Период формирования отчёта |
with_details | Booleantrue, если нужно добавить дополнительные параметры в ответ. |
Примеры запроса
{
"from": "2024-05-01",
"to": "2024-05-07",
"with_details": true
}
Примеры ответа
{
"data": {
"total": 64730,
"details": [
{
"customer": {
"name": "Тест клиент 1",
"inn": "123456789012",
"id": 123490
},
"amount": 29020
},
{
"customer": {
"name": "Тест клиент 2",
"inn": "123456789012",
"id": 123456
},
"amount": 35710
}
]
}
}