Отчёты

Отчет по операциям

Request

  • HTTP Method: POST
  • Content Type: application/json
  • URL: https://api.skladbot.ru/v1/report/transactions

Parameters

PropertyDescription
customer_id
optional
Integer
ID клиента
type
required
string
Тип транзакции:
  • in(Приемка)
  • out(Отгрузка)
fromDateTime
Период формирования отчёта
toDateTime
Период формирования отчёта
with_detailsBoolean
true, если нужно добавить дополнительные параметры в ответ.

Примеры запроса

{
    "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

PropertyDescription
customer_idInteger
ID клиента
with_detailsBoolean
true, если нужно добавить дополнительные параметры в ответ.

Примеры запроса

{
    "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

PropertyDescription
customer_id
optional
Integer
ID клиента
fromDateTime
Период формирования отчёта
toDateTime
Период формирования отчёта
with_detailsBoolean
true, если нужно добавить дополнительные параметры в ответ.

Примеры запроса

{
    "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
            }
        ]
    }
}
Last Updated:
Contributors: Fayzulla, Allabergenov Salamat, FayzullaKhodja