Главная
Главная
  • Авторизация
  • Календарь
  • Склад
  • Центр заявок

    • Центр заявок
    • Список заявок
    • Создание заявки
    • Поиск товаров для заявки
  • Клиенты
  • Компании
  • Продукты
  • Финансы
  • Отчёты

Список заявок

Поля фильтра

Request

  • HTTP Method: GET
  • Content Type: application/json
  • URL: https://api.skladbot.ru/v1/requests/filter/fields

Header Parameters

PropertyDescription
Authorizationstring
API-ключ.

Примеры ответа

{
    "stages": [
        { "id": 2, "name": "Приемка" }
    ],
    "types": [
        { "id": 1, "name": "1. Забор груза" }
    ],
    "executors": [
        { "id": 1, "name": "Иванов Алексей" }
    ]
}

Список заявок

Request

  • HTTP Method: GET
  • Content Type: application/json
  • URL: https://api.skladbot.ru/v1/requests

Header Parameters

PropertyDescription
Authorizationstring
API-ключ.

Query Params

PropertyDescription
search
optional
String
Поиск по номеру поставки
status
optional
String
Фильтр по статусу:
  • active (Активные)
  • completed (Выполненные)
  • archived (Архивированные)
customer_id
optional
Integer
Фильтр по клиенту
executor_id
optional
Integer
Фильтр по исполнителю текущего этапа
stage_id
optional
Integer
Фильтр по текущему этапу
type_id
optional
Integer
Фильтр по типу заявки
filters
optional
Object
Фильтры по динамическим полям. Ключи — коды полей, значения — ожидаемое значение. Даты приводятся к Y-m-d. Значение "all" пропускает фильтр.
limit
optional
Integer
Количество элементов на странице. По умолчанию 10
sort
optional
String
Столбец сортировки. Поддерживается: customer, executor. По умолчанию: updated_at по убыванию

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

"https://api.skladbot.ru/v1/requests?search=WH-123&limit=20"

Примеры ответа

{
    "data": [
        {
            "id": 19883,
            "delivery_number": "WH-R-19883",
            "customer": "ИП Тест",
            "created_at": "2024-09-12",
            "status": "new",
            "executor": "Не задан",
            "archived": 0,
            "type": "2.1 Приемка без согласование маркировки",
            "stage_title": "Приемка",
            "stage_code": "acceptance",
            "can_be_executed": true,
            "time_to_process": "36:27",
            "expired": true,
            "is_completed": 0
        }
    ],
    "links": {
        "first": "https://api.skladbot.ru/v1/requests?page=1",
        "last": "https://api.skladbot.ru/v1/requests?page=5",
        "prev": null,
        "next": "https://api.skladbot.ru/v1/requests?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 5,
        "per_page": 10,
        "to": 10,
        "total": 47
    }
}
Last Updated:
Contributors: FayzullaKhodja
Prev
Центр заявок
Next
Создание заявки