MENU navbar-image

О документации

REST API системы учёта проката Rent in Hand: клиенты, аренды, инвентарь, магазин и склад, ремонт, доставка.

Это справочник по REST API Rent in Hand — системы учёта проката. Через API можно вести клиентов, создавать и закрывать аренды, читать инвентарь и его занятость, работать с продажами, ремонтом и доставкой: всё то же, что доступно в личном кабинете.

Документация собирается из кода приложения, поэтому список методов и параметров всегда соответствует текущей версии. Машинно-читаемые версии: OpenAPI 3 и коллекция Postman с уже заполненными адресом и авторизацией. Для ИИ-агентов и скриптов есть этот же вводный раздел в markdown и llms.txt.

Начало работы

Адрес API: https://api.rentinhand.ru, все методы начинаются с /v2/. Полный адрес выглядит так: https://api.rentinhand.ru/v2/point. Работайте именно с поддоменом api. — сайт и личный кабинет живут на своих адресах.

Шаг 1 — вход. В API входят так же, как в личный кабинет: логином и паролем пользователя. Отправьте их на POST /v2/login и получите токен доступа:

curl "https://api.rentinhand.ru/v2/login" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"login": "ВАШ_ЛОГИН", "password": "ВАШ_ПАРОЛЬ"}'

Ответ 200:

{"data": {"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9…", "token_type": "Bearer", "expires_at": "2027-03-10T12:00:00+0300"}}

Ответ 403 с текстом «Неверный логин или пароль» — проверьте учётные данные. Токен доступа действует шесть месяцев (expires_at); для разового скрипта его достаточно, для постоянной интеграции сделайте следующий шаг.

Шаг 2 — API-токен. Выпустите постоянный токен интеграции, передав токен доступа в заголовке:

curl -X POST "https://api.rentinhand.ru/v2/api-token" \
  -H "Authorization: Bearer ТОКЕН_ДОСТУПА_ИЗ_ШАГА_1" \
  -H "Accept: application/json"

Ответ 201:

{"data": {"token": "AbCdEf0123456789AbCdEf0123456789", "time_start": "2026-09-15T12:00:00+0300", "time_end": "2027-09-15T00:00:00+0300", "last_used_at": null}}

data.token — ваш API-токен: сохраните его в настройках интеграции. Повторный POST /v2/api-token возвращает тот же токен с ответом 200, пока он действует; посмотреть текущий, не выпуская нового, — GET /v2/api-token (data будет null, если действующего токена нет — в том числе пока следующий период тарифа не оплачен; после продления прежний токен снова действует); отозвать — DELETE /v2/api-token. Если у кабинета нет действующего тарифа (оплаченного или тестового периода), токен не выпускается: 422 с кодом API_TOKEN_NO_TARIFF или 403 с кодом TARIFF_EXPIRED — второй приходит, когда кабинет без подписки закрыт для изменений целиком; в обоих случаях продлите тариф и повторите запрос. Подробности и что делать при ошибке WIDGET_TOKEN_SCOPE — на странице про API-токен.

Шаг 3 — первый запрос. Список пунктов проката:

curl "https://api.rentinhand.ru/v2/point" \
  -H "Authorization: Bearer ВАШ_API_ТОКЕН" \
  -H "Accept: application/json"

Ответ 200 с {"data": [...]} — всё работает. Ответ 401 — см. коды ошибок ниже: в теле будет сказано, что именно не так с авторизацией. Для совместимости API-токен принимается и параметром ?get_token=, но заголовок надёжнее: токен не попадает в адресную строку и журналы прокси.

Отдельный пользователь для интеграции. Заведите в кабинете сотрудника специально под интеграцию (Сотрудники → Добавить) и выпускайте API-токен, войдя его логином. Права токена равны правам пользователя, так что интеграции можно дать ровно тот доступ, который ей нужен, а смена пароля директора её не сломает.

Авторизация

В системе три токена, и путать их нельзя:

Токен Кому Как передаётся
API-токен — выпускается POST /v2/api-token после входа постоянным интеграциям: 1С, сайтам, скриптам, ИИ-агентам заголовок Authorization: Bearer <токен>; для совместимости — параметр ?get_token=
Токен доступа — выдаётся при входе POST /v2/login кабинету и разовым скриптам; нужен, чтобы выпустить API-токен заголовок Authorization: Bearer <токен>
Токен виджета — 32 символа из кабинета (Профиль → Токен виджета) только виджету бронирования на сайте проката только query-параметр ?get_token= и только на маршрутах виджета (см. «Виджет бронирования»)

Токен виджета — не ключ API. Он вставляется в код страницы сайта проката и виден любому посетителю, поэтому API принимает его только на маршрутах, которые нужны виджету. В заголовке Authorization он не принимается (401, код WIDGET_TOKEN_IN_HEADER), на остальных маршрутах отклоняется (403, код WIDGET_TOKEN_SCOPE). Если ваша интеграция передавала этот токен — выпустите API-токен и подставьте его вместо токена виджета: пошагово на странице про API-токен, которую API и указывает в поле docs такого ответа.

Срок действия. time_end в ответе про API-токен — конец уже оплаченного периода тарифа вместе с продлениями, оплаченными вперёд (на тестовом периоде — конец тестового периода, null — тариф без даты окончания). Продление тарифа продлевает и выпущенный API-токен — выпускать новый не нужно. Если к time_end следующий период не оплачен, API отвечает 401 с кодом TOKEN_EXPIRED; после продления тарифа тот же токен снова принимается, не позже чем через минуту. Действует только последний выпущенный API-токен: новый выпускается, только если прежний отозван; отозванный отвечает 401 с кодом TOKEN_EXPIRED и после продления не оживает. Отзыв работает и без оплаченного тарифа: если токен мог утечь, отзовите его, не дожидаясь продления, — DELETE /v2/api-token с токеном доступа. Токен доступа живёт шесть месяцев с момента входа; когда истечёт — 401 с кодом TOKEN_INVALID, войдите заново. GET /v2/logout отзывает токен доступа досрочно, DELETE /v2/api-token — API-токен.

Права. Если у пользователя токена нет доступа к разделу (например, сотрудник без права на клиентов), метод вернёт 403. Проверяйте права в кабинете: Сотрудники → карточка → права.

Формат ответов

Ошибки

HTTP-статус говорит о классе проблемы, тело — о причине:

Статус Когда Тело
401 нет авторизации {"error": "…", "errors": [], "code": "TOKEN_INVALID", "docs": "…"} — коды: TOKEN_MISSING (токен не передан), TOKEN_INVALID (токен доступа истёк или недействителен — войдите заново), WIDGET_TOKEN_IN_HEADER (в Authorization передан токен виджета — docs ведёт на страницу про API-токен); для API-токена и токена виджета — TOKEN_NOT_FOUND, TOKEN_EXPIRED, TOKEN_SUPERSEDED, TOKEN_USER_INACTIVE
403 нет прав на раздел или отказ по данным (часть методов) {"message": "…"}; токен виджета вне его маршрутов — {"error": "…", "errors": [], "code": "WIDGET_TOKEN_SCOPE", "docs": "https://api.rentinhand.ru/docs/api-token.html"} — по ссылке в docs описано, как выпустить API-токен; у кабинета истёк тариф, а кабинет без подписки закрыт для изменений — {"message": "…", "code": "TARIFF_EXPIRED"} на POST, PUT, PATCH и DELETE, в том числе на выпуск API-токена (отзыв API-токена открыт и без подписки); разделы аналитики без действующей подписки отвечают 403 с тем же кодом и на GET
404 объект не найден или маршрут не существует {"error": "Запрашиваемые данные отсутствуют", "errors": []}; у несуществующего маршрута в error служебный текст на английском
409 позиция занята другой арендой на этот период: POST /v2/rent, PUT и PATCH /v2/rent/{id}, POST /v2/rent/builder/{key}/save, POST /v2/rent/close (с session_key), POST /v2/rent/reopen, POST /v2/marketplace/orders {"status": "ERROR", "error": "…", "errors": [], "code": "INVENTORY_BUSY"} — выберите другую позицию или другое время
422 не прошла валидация или бизнес-отказ (например, «неверные данные») {"error": "…", "errors": {"поле": ["сообщение"]}}; POST /v2/api-token без действующего тарифа — {"error": "…", "errors": [], "code": "API_TOKEN_NO_TARIFF", "docs": "…"}
429 слишком частые запросы к открытым маршрутам: вход POST /v2/login делит счётчик с регистрацией и ещё несколькими маршрутами без авторизации — не больше 60 запросов в минуту с одного адреса на все вместе {"error": "…", "errors": [], "code": "RATE_LIMITED"} + заголовок Retry-After
500 сбой на нашей стороне {"error": "…", "log_id": "uuid"} — сообщите log_id в поддержку

Что делать по коду 401: TOKEN_MISSING — заголовок Authorization не дошёл (проверьте, что он есть и начинается с Bearer); TOKEN_INVALID — токен доступа истёк или отозван, войдите заново; TOKEN_EXPIRED — следующий период тарифа не оплачен (после продления тот же API-токен снова заработает) или токен отозван (выпустите новый); WIDGET_TOKEN_IN_HEADER — вы передаёте токен виджета, для API нужен API-токен (см. ссылку в docs).

Для программы причина отказа — поле code: опирайтесь на него, а не на текст error, который переводится на язык кабинета и может меняться. Если у отказа нет своего кода, code повторяет класс статуса: BAD_REQUEST (400), UNAUTHORIZED (401), FORBIDDEN (403), NOT_FOUND (404), CONFLICT (409), UNPROCESSABLE (422), RATE_LIMITED (429), INTERNAL (5xx) — причину тогда объясняет error. Пока без code приходят 500 и часть отказов конструкторов со status: "ERROR" — в них ориентируйтесь на статус и error. Коды, кроме описанных выше для 401:

Код Статус Что значит и что делать
SALARY_PAY_NOT_SAVED 400 пакет выплат зарплаты не сохранён: он пишется целиком, ни одна выплата из запроса не записана
WIDGET_CLIENT_NOT_FOUND 400 восстановление пароля в виджете: клиента с таким телефоном и email нет
ACCESS_DENIED 403 у пользователя токена нет прав на раздел или на этот объект; при отказе по разделу его имя — в поле section: выдайте права сотруднику, под которым работает интеграция (Сотрудники → карточка → права)
TARIFF_EXPIRED 403 у кабинета истёк тариф: изменения закрыты до продления, разделы аналитики — и на чтение
WIDGET_TOKEN_SCOPE 403 токен виджета на маршруте не из виджета — нужен API-токен, как его выпустить — по ссылке в docs
WIDGET_SEARCH_PHONE_REQUIRED 403 поиск клиента по токену виджета — только по телефону, не меньше 10 цифр
WIDGET_RENTER_PASS_REQUIRED, WIDGET_RENTER_PASS_MISMATCH 403 кабинет арендатора в виджете: нет пропуска арендатора или он выдан другому клиенту
RENT_NOT_FOUND 404 POST /v2/rent/builder/prepare/{rentId}: аренды с таким id нет или она недоступна пользователю токена
INVENTORY_BUSY 409 позиция занята другой арендой на этот период — выберите другую позицию или другое время
VALIDATION_FAILED 422 поля запроса не прошли проверку: что не так с каждым полем — в errors ({"поле": ["сообщение"]}); исправьте значения и повторите запрос
EMPTY_REQUEST 422 в теле нет ни одного поля, которое принимает метод, — сверьте имена полей с описанием метода
OUT_OF_STOCK 422 товара на складе меньше, чем в запросе, — уменьшите количество
API_TOKEN_NO_TARIFF 422 API-токен выпускается только при действующем тарифе
RATE_LIMITED 429 слишком частые запросы к открытым маршрутам — повторите после паузы из заголовка Retry-After

В ответах конструкторов (/v2/rent/builder/*, /v2/stock/builder/*, /v2/repair/builder/*) проверяйте поле status: значение ERROR вместе с текстом в error означает, что шаг не принят.

Даты и часовые пояса

Время приходит строкой со смещением, обычно в ISO 8601: 2026-09-25T11:30:00+0000 (смещение без двоеточия). Разбирайте строку вместе со смещением и переводите время в нужный пояс сами: смещение у разных полей разное.

Примеры ответов у методов справочника собраны в разное время, и даты в них местами записаны не в том формате, что в настоящем ответе. Если пример расходится с этим разделом, верен раздел.

Часовой пояс организации задаётся в настройках кабинета. Сервер применяет его к черновикам конструктора и к границам суток в фильтрах по периоду.

Фильтры по периоду period_from и period_to:

period_interval — длительность в формате ISO 8601: P1D — сутки, PT6H — шесть часов. Период отсчитывается назад от текущего момента, а не от начала суток; period_from и period_to вместе с ним не учитываются.

Медиа

Поля avatar и media[].full_src ведут на оригинал изображения — файл в несколько мегабайт. Рядом с ними приходят готовые ссылки на уменьшенные копии: sizes рядом с full_src, avatar_sizes рядом с avatar. Ключи у обоих — размеры xs (144 px), sm (540 px), md (720 px), xl, xxl и оригинал orig:

{
  "full_src": "https://media.rentinhand.ru/production/public/orig/photo.jpg",
  "sizes": {
    "xs": "https://media.rentinhand.ru/production/public/xs/photo.jpg",
    "sm": "https://media.rentinhand.ru/production/public/sm/photo.jpg",
    "md": "https://media.rentinhand.ru/production/public/md/photo.jpg",
    "xl": "https://media.rentinhand.ru/production/public/xl/photo.jpg",
    "xxl": "https://media.rentinhand.ru/production/public/xxl/photo.jpg",
    "orig": "https://media.rentinhand.ru/production/public/orig/photo.jpg"
  }
}

Для витрин и списков берите sm или md: на каталоге из сотни позиций это снижает вес страницы в разы. Ссылки на размеры есть только у картинок с медиасервера Rent in Hand — у документов, заглушки и внешних аватаров их нет, берите исходное поле. В ответ больше 2 МБ (длинный список) ссылки на размеры не добавляются: запрашивайте такие списки страницами поменьше или замените в ссылке сегмент orig на нужный размер сами — получится та же ссылка.

Сценарий: создать аренду

Аренда собирается конструктором за несколько шагов внутри одной сессии:

  1. POST /v2/rent/builder/prepare — тело {"time_start": null, "time_end": null, "rent_state_id": null, "currency_id": null}. Все четыре ключа должны присутствовать (значения могут быть null — подставятся значения по умолчанию). В ответе — rentSessionKey.
  2. PUT /v2/rent/builder/{sessionKey}/add/client/{humanId} — привязать клиента (humanId — это id из /v2/human/client; нового клиента создайте через POST /v2/human/client).
  3. GET /v2/rent/builder/{sessionKey}/search/inventory — инвентарь, свободный на период черновика; price_id для следующего шага берите из prices[].id.
  4. PUT /v2/rent/builder/{sessionKey}/add/inventory — добавить позицию; ответ содержит пересчитанный черновик с суммами.
  5. PUT …/add/config, …/add/payment, …/add/discount/… — пункт выдачи, оплата, скидки по необходимости.
  6. POST /v2/rent/builder/{sessionKey}/save — сохранить. В ответе data.id — номер аренды для /v2/rent/{id}, /v2/rent/cancel, /v2/rent/close.

Редактирование существующей аренды — POST /v2/rent/builder/prepare/{rentId}, дальше те же шаги. Сессия конструктора живёт ограниченное время; повторный save уже сохранённого черновика вернёт ошибку — сохраняйте id из первого ответа.

Поиск клиента

GET /v2/human/client?search=<строка> — поиск по подстроке: ФИО, название компании, номер клиента, телефон и e-mail. Телефон сравнивается по цифрам, поэтому формат записи, скобки и ведущие 7/8 значения не имеют.

Точное совпадение — фильтры phone= и email=: номер сравнивается по цифрам в любом формате записи (ведущая 8 равна 7), e-mail — без учёта регистра. В ответ попадают только карточки с этим номером или адресом — так удобно проверять, есть ли клиент в базе, перед созданием нового.

Знак + в адресе запроса означает пробел: передавайте номер как %2B79507596307 либо просто цифрами — ?search=79507596307.

По одному номеру может найтись несколько карточек, если в базе есть дубли: ответ всегда список, нужную карточку берите по id.

Виджет бронирования

Виджет на сайте проката ходит в API токеном виджета из кабинета (Профиль → Токен виджета). Этот токен виден в коде страницы любому посетителю, поэтому API принимает его только параметром ?get_token= и только на маршрутах ниже; на остальных маршрутах и в заголовке Authorization он не работает. Если вы подключаете виджет по инструкции из кабинета, настраивать ничего не нужно — виджет делает всё сам. Раздел нужен тем, кто пишет собственную витрину поверх этих маршрутов.

Метод Маршрут Что делает
GET /v2/inventory, /v2/inventory/{id}, /v2/category/inventory, /v2/point, /v2/settings витрина: инвентарь, категории, пункты проката, настройки
GET /v2/rent/calendar занятость инвентаря
POST, PUT /v2/rent/builder/prepare, /v2/rent/builder/{key}/add/time, …/add/inventory, …/add/client/{humanId}, …/add/discount/promocode, /v2/rent/builder/{key}/save конструктор брони: расчёт, промокод, сохранение
POST /v2/widget/payment/new онлайн-оплата сохранённой брони в Робокассе проката: rent_id в теле, в ответе data.payment_url (null — онлайн-оплата у проката не подключена или выключена); бронь должна принадлежать этому прокату
GET /v2/human/client?search=<телефон> поиск клиента перед бронированием — только по телефону (не меньше 10 цифр) и всегда одна строка; иначе 403, код WIDGET_SEARCH_PHONE_REQUIRED
POST /v2/human/client создание клиента при бронировании
POST, PUT /v2/widget/auth, /v2/widget/register, /v2/widget/send-code, /v2/widget/restore-password аккаунт арендатора: вход, регистрация, восстановление пароля
GET, PUT /v2/rent?client_human_id=…, /v2/human/client/{id} кабинет арендатора: его аренды и его карточка — только с пропуском арендатора

Пропуск арендатора. Ответы POST /v2/widget/auth, POST /v2/widget/register и PUT /v2/widget/restore-password содержат рядом с data поле renter_pass — подписанный пропуск на сутки. Передавайте его заголовком X-Renter-Pass в запросах кабинета: без него они отклоняются (403, код WIDGET_RENTER_PASS_REQUIRED), с чужим client_human_id или {id} — тоже (403, код WIDGET_RENTER_PASS_MISMATCH). Так по публичному токену нельзя прочитать аренды или карточку другого клиента.

Лимиты запросов

Отдельного лимита на запросы с API-токеном или токеном доступа нет; ограничены только открытые маршруты: вход POST /v2/login делит счётчик с регистрацией и ещё несколькими маршрутами без авторизации — не больше 60 запросов в минуту с одного адреса на все вместе. Выпустите API-токен один раз и храните его: входить перед каждым запросом не нужно.

Как получать изменения

Обмен построен на опросе: периодически запрашивайте списки с фильтром по периоду, например GET /v2/rent?period_from=2026-09-01&period_to=2026-09-02&per_page=200. Для большинства интеграций достаточно интервала в несколько минут — этого хватает, чтобы новые и изменённые аренды приезжали к вам вовремя.

Отладка

Для разработки и тестов заведите отдельного сотрудника или отдельный аккаунт. Тестовые клиенты и аренды останутся в нём и не смешаются с рабочей базой проката. Отдельный аккаунт на тестовом периоде подходит как песочница: API-токен в нём выпускается так же и действует до конца тестового периода, а после оплаты тарифа продлевается вместе с ним.

Повторные запросы

Создание клиента и сохранение аренды выполняйте по одному разу и сохраняйте id из ответа — по нему вы всегда найдёте созданную запись. Перед созданием клиента ищите существующего — GET /v2/human/client?phone=… или ?email=…: так в базе не появятся дубли, а история аренд останется цельной.

Изменения

Изменения контракта публикуются здесь. Если вы опираетесь на поле, которого нет в описании, напишите в поддержку — мы учтём это при развитии API.

Поддержка

Вопросы по API — в чат на сайте или на почту поддержки. Приложите метод, адрес и полный ответ сервера: по полям code и log_id мы найдём конкретный запрос в журнале.

Авторизация

Добавьте к запросу заголовок Authorization со значением "Bearer {API_ТОКЕН}".

Методы, требующие авторизации, помечены ниже значком requires authentication.

API-токен интеграции выпускается запросом POST /v2/api-token после входа (POST /v2/login) — в ответе поле data.token. Передавайте его в заголовке Authorization: Bearer <токен> — это способ по умолчанию во всех примерах ниже; для совместимости он принимается и параметром ?get_token=. Токен действует весь оплаченный период тарифа (на тестовом периоде — до конца тестового) и продлевается вместе с тарифом; если следующий период не оплачен, API ответит 401 с кодом TOKEN_EXPIRED, а после продления тот же токен снова заработает. Токен доступа из ответа POST /v2/login (шесть месяцев) в том же заголовке тоже принимается.

Токен виджета из кабинета (32 символа, Профиль → Токен виджета) — не для API: он принимается только параметром ?get_token= и только на маршрутах виджета бронирования. Подробности — в разделах «Авторизация» и «Виджет бронирования» выше и на странице про API-токен.

Авторизация и токены

Токен виджета: получить или выпустить для директора

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/director/generate-token" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/director/generate-token"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/director/generate-token';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/director/generate-token'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/director/generate-token

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Токен виджета: выпустить для сотрудника

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/human/employee/generate-token" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/generate-token"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/generate-token';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/generate-token'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/human/employee/generate-token

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Токен виджета: текущий токен сотрудника

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee/get-token" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/get-token"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/get-token';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/get-token'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/human/employee/get-token

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Текущий API-токен

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/api-token" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/api-token"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/api-token';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/api-token'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200, Действующий API-токен. Если его нет, в ответе data: null):


{
    "data": {
        "token": "AbCdEf0123456789AbCdEf0123456789",
        "time_start": "2026-09-15T12:00:00+0300",
        "time_end": "2027-09-15T00:00:00+0300",
        "last_used_at": "2026-09-20T09:15:00+0300"
    }
}
 

Запрос      

GET v2/api-token

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Выпустить API-токен интеграции

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/api-token" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/api-token"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/api-token';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/api-token'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Пример ответа (201, Токен выпущен. Пока он действует, повторный вызов возвращает его же с кодом 200):


{
    "data": {
        "token": "AbCdEf0123456789AbCdEf0123456789",
        "time_start": "2026-09-15T12:00:00+0300",
        "time_end": "2027-09-15T00:00:00+0300",
        "last_used_at": null
    }
}
 

Запрос      

POST v2/api-token

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Отозвать API-токен

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/api-token" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/api-token"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/api-token';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/api-token'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/api-token

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Войти и получить токен доступа

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"login\": \"consequatur\",
    \"password\": \"O[2UZ5ij-e\\/dl4m{o,\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "login": "consequatur",
    "password": "O[2UZ5ij-e\/dl4m{o,"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'login' => 'consequatur',
            'password' => 'O[2UZ5ij-e/dl4m{o,',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/login'
payload = {
    "login": "consequatur",
    "password": "O[2UZ5ij-e\/dl4m{o,"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "access_token": "<JWT>",
        "token_type": "Bearer",
        "expires_at": "2023-04-10T13:25:07+0300"
    }
}
 

Запрос      

POST v2/login

Заголовки

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

login   string     

Example: consequatur

password   string     

Example: O[2UZ5ij-e/dl4m{o,

Профиль

Список: profile

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/profile" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/profile"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/profile';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/profile'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/profile

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Обновить: profile/edit

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/profile/edit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"human\": {
        \"id\": 17,
        \"name\": \"consequatur\",
        \"surname\": \"consequatur\",
        \"patro\": \"consequatur\",
        \"vatin\": \"consequatur\",
        \"user\": {
            \"id\": 17,
            \"login\": \"consequatur\",
            \"password\": \"O[2UZ5ij-e\\/dl4m{o,\"
        },
        \"company\": {
            \"title\": \"consequatur\",
            \"address\": \"consequatur\"
        }
    },
    \"contacts\": [
        {
            \"id\": 17,
            \"value\": \"mqeopfuudtdsufvyvddqa\",
            \"contact_type_id\": 17
        }
    ],
    \"media\": [
        {
            \"media_id\": 17,
            \"resource_id\": 17,
            \"order_id\": 17,
            \"dict_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/profile/edit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "human": {
        "id": 17,
        "name": "consequatur",
        "surname": "consequatur",
        "patro": "consequatur",
        "vatin": "consequatur",
        "user": {
            "id": 17,
            "login": "consequatur",
            "password": "O[2UZ5ij-e\/dl4m{o,"
        },
        "company": {
            "title": "consequatur",
            "address": "consequatur"
        }
    },
    "contacts": [
        {
            "id": 17,
            "value": "mqeopfuudtdsufvyvddqa",
            "contact_type_id": 17
        }
    ],
    "media": [
        {
            "media_id": 17,
            "resource_id": 17,
            "order_id": 17,
            "dict_id": 17
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/profile/edit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'human' => [
                'id' => 17,
                'name' => 'consequatur',
                'surname' => 'consequatur',
                'patro' => 'consequatur',
                'vatin' => 'consequatur',
                'user' => [
                    'id' => 17,
                    'login' => 'consequatur',
                    'password' => 'O[2UZ5ij-e/dl4m{o,',
                ],
                'company' => [
                    'title' => 'consequatur',
                    'address' => 'consequatur',
                ],
            ],
            'contacts' => [
                [
                    'id' => 17,
                    'value' => 'mqeopfuudtdsufvyvddqa',
                    'contact_type_id' => 17,
                ],
            ],
            'media' => [
                [
                    'media_id' => 17,
                    'resource_id' => 17,
                    'order_id' => 17,
                    'dict_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/profile/edit'
payload = {
    "id": 17,
    "human": {
        "id": 17,
        "name": "consequatur",
        "surname": "consequatur",
        "patro": "consequatur",
        "vatin": "consequatur",
        "user": {
            "id": 17,
            "login": "consequatur",
            "password": "O[2UZ5ij-e\/dl4m{o,"
        },
        "company": {
            "title": "consequatur",
            "address": "consequatur"
        }
    },
    "contacts": [
        {
            "id": 17,
            "value": "mqeopfuudtdsufvyvddqa",
            "contact_type_id": 17
        }
    ],
    "media": [
        {
            "media_id": 17,
            "resource_id": 17,
            "order_id": 17,
            "dict_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/profile/edit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

id   integer     

Example: 17

human   object     
id   integer     

Example: 17

name   string  optional    

Example: consequatur

surname   string  optional    

Example: consequatur

patro   string  optional    

Example: consequatur

vatin   string  optional    

Example: consequatur

user   object  optional    
id   integer  optional    

Example: 17

login   string  optional    

Example: consequatur

password   string  optional    

Example: O[2UZ5ij-e/dl4m{o,

company   object     
title   string  optional    

Example: consequatur

address   string  optional    

Example: consequatur

user   object  optional    
contacts   object[]  optional    
id   integer  optional    

Example: 17

value   string  optional    

Must be at least 2 characters. Must not be greater than 255 characters. Example: mqeopfuudtdsufvyvddqa

contact_type_id   integer  optional    

Must match an existing stored value. Example: 17

media   object[]  optional    
media_id   integer  optional    

Example: 17

resource_id   integer  optional    

Example: 17

order_id   integer  optional    

Example: 17

dict_id   integer  optional    

Example: 17

Клиенты

Список: human/client/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/client/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/human/client/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: human/client/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/human/client/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/human/client/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: human/client

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/client?search=%D0%98%D0%B2%D0%B0%D0%BD%D0%BE%D0%B2&phone=79507596307&email=client%40example.com&contact=%2B79507596307" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client"
);

const params = {
    "search": "Иванов",
    "phone": "79507596307",
    "email": "client@example.com",
    "contact": "+79507596307",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'search' => 'Иванов',
            'phone' => '79507596307',
            'email' => 'client@example.com',
            'contact' => '+79507596307',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client'
params = {
  'search': 'Иванов',
  'phone': '79507596307',
  'email': 'client@example.com',
  'contact': '+79507596307',
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 62964,
            "number": 31,
            "address": null,
            "comment": null,
            "black_list": 0,
            "is_legal_entity": false,
            "source_attraction": null,
            "human": {
                "id": 67035,
                "avatar": null,
                "avatar_fio": "TM",
                "guid": "1ee3c420-1da4-11ed-8c7c-6d8b0411ea9b",
                "is_admin": false,
                "is_client": true,
                "is_director": false,
                "is_employee": false,
                "male": 1,
                "fio": "Иванов Иван Иванович",
                "name": "Иван",
                "surname": "Иванов",
                "patro": null,
                "short_fio": "Иванов И.И.",
                "number": "31",
                "sms_flag": true,
                "birthday": null,
                "passport_serial": null,
                "passport_number": null,
                "passport_take": null,
                "passport_code": null,
                "passport_take_date": null,
                "vatin": null
            },
            "contacts": []
        },
        {
            "id": 88351,
            "number": 79,
            "address": null,
            "comment": null,
            "black_list": 0,
            "is_legal_entity": false,
            "source_attraction": null,
            "human": {
                "id": 90169,
                "avatar": null,
                "avatar_fio": "бМ",
                "guid": "480c4690-b448-11ed-984d-c991d2eeb259",
                "is_admin": false,
                "is_client": true,
                "is_director": false,
                "is_employee": false,
                "male": 1,
                "fio": "Иванов Иван Иванович",
                "name": "Иван",
                "surname": "Иванов",
                "patro": null,
                "short_fio": "Иванов И.И.",
                "number": "79",
                "sms_flag": false,
                "birthday": null,
                "passport_serial": null,
                "passport_number": null,
                "passport_take": null,
                "passport_code": null,
                "passport_take_date": null,
                "vatin": null
            },
            "contacts": []
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/human/client?page=1",
        "last": "https://api.rentinhand.ru/v2/human/client?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/human/client?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/human/client",
        "per_page": 117,
        "to": 117,
        "total": 117,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/human/client

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

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

search   string  optional    

Поиск по подстроке: ФИО, название компании, номер клиента, телефон, e-mail. Телефон сравнивается по цифрам, формат записи и код страны значения не имеют. Example: Иванов

phone   string  optional    

Точное совпадение по телефону в любом формате записи: сравнение идёт по цифрам, ведущая 8 равна 7. Example: 79507596307

email   string  optional    

Точное совпадение по e-mail без учёта регистра. Example: client@example.com

contact   string  optional    

Точное совпадение по контакту в том виде, в каком он сохранён в карточке. Example: +79507596307

Создать: human/client

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/human/client" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"number\": 17,
    \"human_id\": 17,
    \"address\": \"consequatur\",
    \"comment\": \"consequatur\",
    \"black_list\": false,
    \"source_attraction_id\": 17,
    \"is_legal_entity\": false,
    \"zadarma_id\": 17,
    \"has_contract\": false,
    \"has_deposit\": true,
    \"password\": \"O[2UZ5ij-e\\/dl4m{o,\",
    \"restore_code\": \"consequatur\",
    \"discounts\": [
        17
    ],
    \"contacts\": [
        {
            \"contact_type_id\": 17,
            \"value\": \"mqeopfuudtdsufvyvddqa\"
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "number": 17,
    "human_id": 17,
    "address": "consequatur",
    "comment": "consequatur",
    "black_list": false,
    "source_attraction_id": 17,
    "is_legal_entity": false,
    "zadarma_id": 17,
    "has_contract": false,
    "has_deposit": true,
    "password": "O[2UZ5ij-e\/dl4m{o,",
    "restore_code": "consequatur",
    "discounts": [
        17
    ],
    "contacts": [
        {
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'number' => 17,
            'human_id' => 17,
            'address' => 'consequatur',
            'comment' => 'consequatur',
            'black_list' => false,
            'source_attraction_id' => 17,
            'is_legal_entity' => false,
            'zadarma_id' => 17,
            'has_contract' => false,
            'has_deposit' => true,
            'password' => 'O[2UZ5ij-e/dl4m{o,',
            'restore_code' => 'consequatur',
            'discounts' => [
                17,
            ],
            'contacts' => [
                [
                    'contact_type_id' => 17,
                    'value' => 'mqeopfuudtdsufvyvddqa',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client'
payload = {
    "number": 17,
    "human_id": 17,
    "address": "consequatur",
    "comment": "consequatur",
    "black_list": false,
    "source_attraction_id": 17,
    "is_legal_entity": false,
    "zadarma_id": 17,
    "has_contract": false,
    "has_deposit": true,
    "password": "O[2UZ5ij-e\/dl4m{o,",
    "restore_code": "consequatur",
    "discounts": [
        17
    ],
    "contacts": [
        {
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/human/client

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

number   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

address   string  optional    

Example: consequatur

comment   string  optional    

Example: consequatur

black_list   boolean  optional    

Example: false

source_attraction_id   integer  optional    

Example: 17

is_legal_entity   boolean  optional    

Example: false

zadarma_id   integer  optional    

Example: 17

has_contract   boolean  optional    

Example: false

has_deposit   boolean  optional    

Example: true

password   string  optional    

Example: O[2UZ5ij-e/dl4m{o,

restore_code   string  optional    

Example: consequatur

human   object  optional    
contacts   object[]  optional    
contact_type_id   integer  optional    

Must match an existing stored value. Example: 17

value   string  optional    

Must be at least 2 characters. Must not be greater than 255 characters. Example: mqeopfuudtdsufvyvddqa

discounts   integer[]     
company   string  optional    
id   integer  optional    

Example: 17

title   string  optional    

Example: consequatur

email   string  optional    

Example: qkunze@example.com

website   string  optional    

Example: consequatur

mobile   string  optional    

Example: consequatur

place_id   integer  optional    

Example: 17

group_of_user_id   integer  optional    

Example: 17

bic   string  optional    

Example: consequatur

ogrn   string  optional    

Example: consequatur

inn   string  optional    

Example: consequatur

kpp   string  optional    

Example: consequatur

checking_account   string  optional    

Example: consequatur

correspondent_account   string  optional    

Example: consequatur

bank_name   string  optional    

Example: consequatur

address   string  optional    

Example: consequatur

media   object  optional    

Получить: human/client (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/client/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client/2'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 101295,
        "number": 123,
        "address": null,
        "comment": "dga",
        "black_list": 0,
        "is_legal_entity": true,
        "source_attraction": null,
        "human": {
            "id": 103595,
            "avatar": null,
            "avatar_fio": "TL",
            "guid": "f302ccd0-2639-11ee-8b8d-5581eb6a919b",
            "is_admin": false,
            "is_client": true,
            "is_director": false,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": null,
            "short_fio": "Иванов И.И.",
            "number": "123",
            "sms_flag": false,
            "birthday": "1990-01-15",
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null,
            "vatin": "NEW_VATIN"
        },
        "contacts": [
            {
                "id": 9310,
                "value": "+79990000000",
                "confirmed": 0,
                "contact_type": {
                    "id": 1,
                    "title": "Телефон",
                    "const": "PHONE"
                }
            },
            {
                "id": 9311,
                "value": "user@example.com",
                "confirmed": 0,
                "contact_type": {
                    "id": 2,
                    "title": "Email",
                    "const": "EMAIL"
                }
            }
        ]
    }
}
 

Запрос      

GET v2/human/client/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the client. Example: 2

Обновить: human/client (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/human/client/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"number\": 17,
    \"address\": \"consequatur\",
    \"comment\": \"consequatur\",
    \"black_list\": false,
    \"source_attraction_id\": 17,
    \"is_legal_entity\": false,
    \"zadarma_id\": 17,
    \"has_contract\": false,
    \"has_deposit\": true,
    \"password\": \"O[2UZ5ij-e\\/dl4m{o,\",
    \"restore_code\": \"consequatur\",
    \"discounts\": [
        17
    ],
    \"vk_user_id\": \"consequatur\",
    \"contacts\": [
        {
            \"id\": 17,
            \"contact_type_id\": 17,
            \"value\": \"mqeopfuudtdsufvyvddqa\"
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "number": 17,
    "address": "consequatur",
    "comment": "consequatur",
    "black_list": false,
    "source_attraction_id": 17,
    "is_legal_entity": false,
    "zadarma_id": 17,
    "has_contract": false,
    "has_deposit": true,
    "password": "O[2UZ5ij-e\/dl4m{o,",
    "restore_code": "consequatur",
    "discounts": [
        17
    ],
    "vk_user_id": "consequatur",
    "contacts": [
        {
            "id": 17,
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client/2';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'number' => 17,
            'address' => 'consequatur',
            'comment' => 'consequatur',
            'black_list' => false,
            'source_attraction_id' => 17,
            'is_legal_entity' => false,
            'zadarma_id' => 17,
            'has_contract' => false,
            'has_deposit' => true,
            'password' => 'O[2UZ5ij-e/dl4m{o,',
            'restore_code' => 'consequatur',
            'discounts' => [
                17,
            ],
            'vk_user_id' => 'consequatur',
            'contacts' => [
                [
                    'id' => 17,
                    'contact_type_id' => 17,
                    'value' => 'mqeopfuudtdsufvyvddqa',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client/2'
payload = {
    "id": 17,
    "number": 17,
    "address": "consequatur",
    "comment": "consequatur",
    "black_list": false,
    "source_attraction_id": 17,
    "is_legal_entity": false,
    "zadarma_id": 17,
    "has_contract": false,
    "has_deposit": true,
    "password": "O[2UZ5ij-e\/dl4m{o,",
    "restore_code": "consequatur",
    "discounts": [
        17
    ],
    "vk_user_id": "consequatur",
    "contacts": [
        {
            "id": 17,
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 101295,
        "number": 123,
        "address": null,
        "comment": "dga",
        "black_list": 0,
        "is_legal_entity": true,
        "source_attraction": null,
        "human": {
            "id": 103595,
            "avatar": null,
            "avatar_fio": "TL",
            "guid": "f302ccd0-2639-11ee-8b8d-5581eb6a919b",
            "is_admin": false,
            "is_client": true,
            "is_director": false,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": null,
            "short_fio": "Иванов И.И.",
            "number": "123",
            "sms_flag": false,
            "birthday": "1990-01-15",
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null,
            "vatin": "NEW_VATIN"
        },
        "contacts": [
            {
                "id": 9310,
                "value": "+79990000000",
                "confirmed": 0,
                "contact_type": {
                    "id": 1,
                    "title": "Телефон",
                    "const": "PHONE"
                }
            },
            {
                "id": 9311,
                "value": "user@example.com",
                "confirmed": 0,
                "contact_type": {
                    "id": 2,
                    "title": "Email",
                    "const": "EMAIL"
                }
            }
        ]
    }
}
 

Запрос      

PUT v2/human/client/{id}

PATCH v2/human/client/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the client. Example: 2

Параметры тела

id   integer     

Example: 17

number   integer  optional    

Example: 17

address   string  optional    

Example: consequatur

comment   string  optional    

Example: consequatur

black_list   boolean  optional    

Example: false

source_attraction_id   integer  optional    

Example: 17

is_legal_entity   boolean  optional    

Example: false

zadarma_id   integer  optional    

Example: 17

has_contract   boolean  optional    

Example: false

has_deposit   boolean  optional    

Example: true

password   string  optional    

Example: O[2UZ5ij-e/dl4m{o,

restore_code   string  optional    

Example: consequatur

contacts   object[]  optional    
id   integer  optional    

Example: 17

contact_type_id   integer  optional    

Must match an existing stored value. Example: 17

value   string  optional    

Must be at least 2 characters. Must not be greater than 255 characters. Example: mqeopfuudtdsufvyvddqa

company   object  optional    
human   object  optional    
discounts   integer[]     
media   object  optional    
vk_user_id   string  optional    

Example: consequatur

Удалить: human/client (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/human/client/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/client/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/client/2';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/client/2'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/human/client/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the client. Example: 2

Список: human

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/human

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Получить: human (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/2462" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/2462"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/2462';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/2462'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/human/{human_id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

human_id   integer     

The ID of the human. Example: 2462

Аренды

Список: rent/calendar

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/calendar" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"from\": \"consequatur\",
    \"to\": \"consequatur\",
    \"point_id\": 17,
    \"inventory_id\": 17,
    \"human_id\": 17,
    \"admin_user_id\": 17,
    \"category_id\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/calendar"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "consequatur",
    "to": "consequatur",
    "point_id": 17,
    "inventory_id": 17,
    "human_id": 17,
    "admin_user_id": 17,
    "category_id": [
        17
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/calendar';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'from' => 'consequatur',
            'to' => 'consequatur',
            'point_id' => 17,
            'inventory_id' => 17,
            'human_id' => 17,
            'admin_user_id' => 17,
            'category_id' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/calendar'
payload = {
    "from": "consequatur",
    "to": "consequatur",
    "point_id": 17,
    "inventory_id": 17,
    "human_id": 17,
    "admin_user_id": 17,
    "category_id": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "inventory_title": "Лонгборд RIDEX KOI",
            "time_start": "2022-09-30 11:07:00+00",
            "time_end": "2022-10-01 11:07:00+00"
        },
        {
            "inventory_title": "Роликовые коньки K2 F.I.T. 80 PRO",
            "time_start": "2022-09-30 11:07:00+00",
            "time_end": "2022-10-01 11:07:00+00"
        }
    ]
}
 

Запрос      

GET v2/rent/calendar

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

from   string     

Example: consequatur

to   string     

Example: consequatur

point_id   integer  optional    

Example: 17

inventory_id   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

admin_user_id   integer  optional    

Example: 17

category_id   integer[]  optional    

Список: rent/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/rent/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: rent/close-multiple

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/close-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rents\": [
        {
            \"rent_id\": 17,
            \"pay_type_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/close-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rents": [
        {
            "rent_id": 17,
            "pay_type_id": 17
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/close-multiple';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rents' => [
                [
                    'rent_id' => 17,
                    'pay_type_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/close-multiple'
payload = {
    "rents": [
        {
            "rent_id": 17,
            "pay_type_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/close-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

rents   object[]     
rent_id   integer     

Example: 17

add_payed   string  optional    
pay_type_id   integer  optional    

Example: 17

Создать: rent/close

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/close" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rent_id\": 17,
    \"pay_type_id\": 17,
    \"session_key\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/close"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rent_id": 17,
    "pay_type_id": 17,
    "session_key": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/close';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rent_id' => 17,
            'pay_type_id' => 17,
            'session_key' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/close'
payload = {
    "rent_id": 17,
    "pay_type_id": 17,
    "session_key": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/close

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

rent_id   integer     

Example: 17

add_payed   string  optional    
pay_type_id   integer  optional    

Example: 17

session_key   string  optional    

Example: consequatur

Создать: rent/cancel-multiple

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/cancel-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rents\": [
        {
            \"rent_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/cancel-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rents": [
        {
            "rent_id": 17
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/cancel-multiple';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rents' => [
                [
                    'rent_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/cancel-multiple'
payload = {
    "rents": [
        {
            "rent_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/cancel-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

rents   object[]     
rent_id   integer     

Example: 17

Создать: rent/cancel

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/cancel" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rent_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/cancel"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rent_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/cancel';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rent_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/cancel'
payload = {
    "rent_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/cancel

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

rent_id   integer     

Example: 17

Reopen a closed or canceled rent

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/reopen" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rent_id\": 17,
    \"session_key\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/reopen"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rent_id": 17,
    "session_key": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/reopen';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rent_id' => 17,
            'session_key' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/reopen'
payload = {
    "rent_id": 17,
    "session_key": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/reopen

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

rent_id   integer     

Must match an existing stored value. Example: 17

session_key   string     

Example: consequatur

Удалить: rent/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/rent/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Лента заметок аренды

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/40112/note" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112/note"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112/note';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112/note'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/rent/{rent_id}/note

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

rent_id   integer     

The ID of the rent. Example: 40112

Добавить заметку к аренде

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/40112/note" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"body\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112/note"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "body": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112/note';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'body' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112/note'
payload = {
    "body": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/{rent_id}/note

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

rent_id   integer     

The ID of the rent. Example: 40112

Параметры тела

body   string     

Example: consequatur

Редактировать заметку

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/40112/note/17" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"body\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112/note/17"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "body": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112/note/17';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'body' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112/note/17'
payload = {
    "body": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/rent/{rent_id}/note/{note_id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

rent_id   integer     

The ID of the rent. Example: 40112

note_id   integer     

The ID of the note. Example: 17

Параметры тела

body   string     

Example: consequatur

Очистить все заметки аренды (только директор)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/40112/note" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112/note"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112/note';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112/note'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/rent/{rent_id}/note

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

rent_id   integer     

The ID of the rent. Example: 40112

Удалить заметку

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/40112/note/17" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112/note/17"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112/note/17';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112/note/17'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/rent/{rent_id}/note/{note_id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

rent_id   integer     

The ID of the rent. Example: 40112

note_id   integer     

The ID of the note. Example: 17

Список: rent

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 131865,
            "sum": 200,
            "sum_real": 200,
            "sum_discount": 0,
            "sum_additional_service": 0,
            "sum_inventory": 0,
            "sum_kit": 0,
            "sum_deposit": 0,
            "need_calc_breaking": true,
            "need_calc_rent_delay": true,
            "payed": 0,
            "fine_time": 0,
            "fine_broken": 0,
            "comment": null,
            "order_number": 473,
            "order_number_text": "473",
            "is_understaffed": false,
            "time_start": "2023-03-21T16:21:00+0000",
            "time_end": "2023-03-21T17:23:00+0000",
            "time_fact_end": null,
            "open_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "close_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "deposit": null,
            "human": {
                "id": 81083,
                "guid": "10e92be0-9800-11ed-be53-45b74f5cc6ee",
                "surname": "Иванов",
                "name": "Иван",
                "patro": null,
                "short_fio": null,
                "avatar_fio": null,
                "birthday": null,
                "fio": "Иванов Иван Иванович",
                "avatar": null
            },
            "rent_state": {
                "id": 6,
                "title": "words.rent_state_overdue",
                "const": "OVERDUE",
                "dom_class": "rent-state-overdue"
            },
            "inventories": [
                {
                    "id": 316147,
                    "inventory_id": 79420,
                    "resource_id": 686770,
                    "inventory": {
                        "id": 79420,
                        "title": "Роликовые коньки MICRO SHAPER-COMBO",
                        "article_number": "016",
                        "rent_number": "6",
                        "category": {
                            "id": 443442,
                            "title": "Ролики"
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53188,
                                "title": null
                            },
                            {
                                "id": 60195,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "replace_inventory_id": null,
                    "sum": "200",
                    "sum_one": "200",
                    "sum_inventory": "200",
                    "sum_broken": "0",
                    "sum_service": "0",
                    "sum_discount": "0",
                    "sum_total": "200",
                    "sum_amount_payment": "0"
                }
            ],
            "kits": [],
            "additional_services": [],
            "discounts": []
        },
        {
            "id": 105451,
            "sum": 2850,
            "sum_real": 2850,
            "sum_discount": 0,
            "sum_additional_service": 0,
            "sum_inventory": 0,
            "sum_kit": 0,
            "sum_deposit": 0,
            "need_calc_breaking": true,
            "need_calc_rent_delay": false,
            "payed": 0,
            "fine_time": 0,
            "fine_broken": 0,
            "comment": null,
            "order_number": 296,
            "order_number_text": "296",
            "is_understaffed": false,
            "time_start": "2022-09-26T22:34:00+0000",
            "time_end": "2022-09-27T21:00:00+0000",
            "time_fact_end": "2022-10-05T11:24:51+0000",
            "open_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "close_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "deposit": null,
            "human": {
                "id": 71843,
                "guid": "7c079610-3ac6-11ed-81d8-b764d603c134",
                "surname": "Иванов",
                "name": "Иван",
                "patro": "",
                "short_fio": null,
                "avatar_fio": null,
                "birthday": null,
                "fio": "Иванов Иван Иванович",
                "avatar": null
            },
            "rent_state": {
                "id": 5,
                "title": "words.rent_state_closed",
                "const": "CLOSED",
                "dom_class": "rent-state-closed"
            },
            "inventories": [
                {
                    "id": 222860,
                    "inventory_id": 79428,
                    "resource_id": 483807,
                    "inventory": {
                        "id": 79428,
                        "title": "Лонгборд EASTCOASTE MALIBU",
                        "article_number": "017",
                        "rent_number": "17",
                        "category": {
                            "id": 443547,
                            "title": "Лонгборды"
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53196,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "replace_inventory_id": null,
                    "sum": "2850",
                    "sum_one": "2850",
                    "sum_inventory": "2850",
                    "sum_broken": "0",
                    "sum_service": "0",
                    "sum_discount": "0",
                    "sum_total": "2850",
                    "sum_amount_payment": "0"
                }
            ],
            "kits": [],
            "additional_services": [],
            "discounts": []
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/rent?page=1",
        "last": "https://api.rentinhand.ru/v2/rent?page=27",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/rent?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 27,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/rent?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/rent",
        "per_page": 10,
        "to": 10,
        "total": 267,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/rent

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: rent

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"time_start\": \"consequatur\",
    \"time_end\": \"consequatur\",
    \"currency_id\": 17,
    \"rent_state_id\": 17,
    \"comment\": \"consequatur\",
    \"is_understaffed\": false,
    \"need_calc_breaking\": true,
    \"need_calc_rent_delay\": false,
    \"open_point_id\": 17,
    \"close_point_id\": 17,
    \"human_id\": 17,
    \"deposit\": {
        \"deposit_id\": 17,
        \"sum\": 11613.31890586
    },
    \"inventories\": [
        {
            \"inventory_id\": 17,
            \"price_id\": 17,
            \"count\": 45,
            \"comment\": \"consequatur\"
        }
    ],
    \"kits\": [
        {
            \"kit_id\": 17,
            \"price_id\": 17,
            \"count\": 45
        }
    ],
    \"additional_services\": [
        {
            \"additional_service_id\": 17,
            \"count\": 45
        }
    ],
    \"discounts\": [
        {
            \"discount_id\": 17
        }
    ],
    \"payments\": [
        {
            \"value\": 11613.31890586,
            \"pay_type_id\": 17,
            \"point_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "time_start": "consequatur",
    "time_end": "consequatur",
    "currency_id": 17,
    "rent_state_id": 17,
    "comment": "consequatur",
    "is_understaffed": false,
    "need_calc_breaking": true,
    "need_calc_rent_delay": false,
    "open_point_id": 17,
    "close_point_id": 17,
    "human_id": 17,
    "deposit": {
        "deposit_id": 17,
        "sum": 11613.31890586
    },
    "inventories": [
        {
            "inventory_id": 17,
            "price_id": 17,
            "count": 45,
            "comment": "consequatur"
        }
    ],
    "kits": [
        {
            "kit_id": 17,
            "price_id": 17,
            "count": 45
        }
    ],
    "additional_services": [
        {
            "additional_service_id": 17,
            "count": 45
        }
    ],
    "discounts": [
        {
            "discount_id": 17
        }
    ],
    "payments": [
        {
            "value": 11613.31890586,
            "pay_type_id": 17,
            "point_id": 17
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'time_start' => 'consequatur',
            'time_end' => 'consequatur',
            'currency_id' => 17,
            'rent_state_id' => 17,
            'comment' => 'consequatur',
            'is_understaffed' => false,
            'need_calc_breaking' => true,
            'need_calc_rent_delay' => false,
            'open_point_id' => 17,
            'close_point_id' => 17,
            'human_id' => 17,
            'deposit' => [
                'deposit_id' => 17,
                'sum' => 11613.31890586,
            ],
            'inventories' => [
                [
                    'inventory_id' => 17,
                    'price_id' => 17,
                    'count' => 45,
                    'comment' => 'consequatur',
                ],
            ],
            'kits' => [
                [
                    'kit_id' => 17,
                    'price_id' => 17,
                    'count' => 45,
                ],
            ],
            'additional_services' => [
                [
                    'additional_service_id' => 17,
                    'count' => 45,
                ],
            ],
            'discounts' => [
                [
                    'discount_id' => 17,
                ],
            ],
            'payments' => [
                [
                    'value' => 11613.31890586,
                    'pay_type_id' => 17,
                    'point_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent'
payload = {
    "time_start": "consequatur",
    "time_end": "consequatur",
    "currency_id": 17,
    "rent_state_id": 17,
    "comment": "consequatur",
    "is_understaffed": false,
    "need_calc_breaking": true,
    "need_calc_rent_delay": false,
    "open_point_id": 17,
    "close_point_id": 17,
    "human_id": 17,
    "deposit": {
        "deposit_id": 17,
        "sum": 11613.31890586
    },
    "inventories": [
        {
            "inventory_id": 17,
            "price_id": 17,
            "count": 45,
            "comment": "consequatur"
        }
    ],
    "kits": [
        {
            "kit_id": 17,
            "price_id": 17,
            "count": 45
        }
    ],
    "additional_services": [
        {
            "additional_service_id": 17,
            "count": 45
        }
    ],
    "discounts": [
        {
            "discount_id": 17
        }
    ],
    "payments": [
        {
            "value": 11613.31890586,
            "pay_type_id": 17,
            "point_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

time_start   string     

Example: consequatur

time_end   string     

Example: consequatur

time_fact_end   string  optional    
currency_id   integer  optional    

Example: 17

rent_state_id   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

is_understaffed   boolean  optional    

Example: false

need_calc_breaking   boolean  optional    

Example: true

need_calc_rent_delay   boolean  optional    

Example: false

open_point_id   integer  optional    

Example: 17

close_point_id   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

inventories   object[]  optional    

This field is required when none of kits and additional_services are present.

inventory_id   integer     

Example: 17

price_id   integer     

Example: 17

count   integer  optional    

Must be at least 1. Example: 45

comment   string  optional    

Example: consequatur

time_start   string  optional    
time_end   string  optional    
kits   object[]  optional    
kit_id   integer     

Example: 17

price_id   integer     

Example: 17

count   integer  optional    

Must be at least 1. Example: 45

additional_services   object[]  optional    
additional_service_id   integer     

Example: 17

count   integer  optional    

Must be at least 1. Example: 45

discounts   object[]  optional    
discount_id   integer     

Example: 17

payments   object[]  optional    
value   number     

Example: 11613.31890586

pay_type_id   integer     

Example: 17

date   string  optional    
point_id   integer  optional    

Example: 17

deposit   object  optional    
deposit_id   integer  optional    

This field is required when deposit is present. Example: 17

sum   number  optional    

Example: 11613.31890586

Получить: rent (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/40112" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 131865,
        "sum": 200,
        "sum_real": 200,
        "sum_discount": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": true,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "comment": null,
        "order_number": 473,
        "order_number_text": "473",
        "is_understaffed": false,
        "time_start": "2023-03-21T16:21:00+0000",
        "time_end": "2023-03-21T17:23:00+0000",
        "time_fact_end": null,
        "open_point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "close_point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "deposit": null,
        "human": {
            "id": 81083,
            "guid": "10e92be0-9800-11ed-be53-45b74f5cc6ee",
            "surname": "Иванов",
            "name": "Иван",
            "patro": null,
            "short_fio": null,
            "avatar_fio": null,
            "birthday": null,
            "fio": "Иванов Иван Иванович",
            "avatar": null
        },
        "rent_state": {
            "id": 6,
            "title": "words.rent_state_overdue",
            "const": "OVERDUE",
            "dom_class": "rent-state-overdue"
        },
        "inventories": [
            {
                "id": 316147,
                "inventory_id": 79420,
                "resource_id": 686770,
                "inventory": {
                    "id": 79420,
                    "title": "Роликовые коньки MICRO SHAPER-COMBO",
                    "article_number": "016",
                    "rent_number": "6",
                    "category": {
                        "id": 443442,
                        "title": "Ролики"
                    },
                    "state": {
                        "id": 5709,
                        "title": "В Аренде",
                        "const": "RENT",
                        "color": "#4fc3f7",
                        "text_color": "#000000"
                    },
                    "prices": [
                        {
                            "id": 53188,
                            "title": null
                        },
                        {
                            "id": 60195,
                            "title": null
                        }
                    ],
                    "another": 0,
                    "children_count": 0,
                    "is_group": false
                },
                "replace_inventory_id": null,
                "sum": "200",
                "sum_one": "200",
                "sum_inventory": "200",
                "sum_broken": "0",
                "sum_service": "0",
                "sum_discount": "0",
                "sum_total": "200",
                "sum_amount_payment": "0"
            }
        ],
        "kits": [],
        "additional_services": [],
        "discounts": []
    }
}
 

Запрос      

GET v2/rent/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the rent. Example: 40112

Обновить: rent (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/40112" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"currency_id\": 17,
    \"rent_state_id\": 17,
    \"comment\": \"consequatur\",
    \"is_understaffed\": false,
    \"need_calc_breaking\": true,
    \"need_calc_rent_delay\": false,
    \"open_point_id\": 17,
    \"close_point_id\": 17,
    \"human_id\": 17,
    \"deposit\": {
        \"deposit_id\": 17,
        \"sum\": 11613.31890586
    },
    \"inventories\": [
        {
            \"inventory_id\": 17,
            \"price_id\": 17,
            \"count\": 45,
            \"comment\": \"consequatur\"
        }
    ],
    \"kits\": [
        {
            \"kit_id\": 17,
            \"price_id\": 17,
            \"count\": 45
        }
    ],
    \"additional_services\": [
        {
            \"additional_service_id\": 17,
            \"count\": 45
        }
    ],
    \"discounts\": [
        {
            \"discount_id\": 17
        }
    ],
    \"payments\": [
        {
            \"value\": 11613.31890586,
            \"pay_type_id\": 17,
            \"point_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "currency_id": 17,
    "rent_state_id": 17,
    "comment": "consequatur",
    "is_understaffed": false,
    "need_calc_breaking": true,
    "need_calc_rent_delay": false,
    "open_point_id": 17,
    "close_point_id": 17,
    "human_id": 17,
    "deposit": {
        "deposit_id": 17,
        "sum": 11613.31890586
    },
    "inventories": [
        {
            "inventory_id": 17,
            "price_id": 17,
            "count": 45,
            "comment": "consequatur"
        }
    ],
    "kits": [
        {
            "kit_id": 17,
            "price_id": 17,
            "count": 45
        }
    ],
    "additional_services": [
        {
            "additional_service_id": 17,
            "count": 45
        }
    ],
    "discounts": [
        {
            "discount_id": 17
        }
    ],
    "payments": [
        {
            "value": 11613.31890586,
            "pay_type_id": 17,
            "point_id": 17
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'currency_id' => 17,
            'rent_state_id' => 17,
            'comment' => 'consequatur',
            'is_understaffed' => false,
            'need_calc_breaking' => true,
            'need_calc_rent_delay' => false,
            'open_point_id' => 17,
            'close_point_id' => 17,
            'human_id' => 17,
            'deposit' => [
                'deposit_id' => 17,
                'sum' => 11613.31890586,
            ],
            'inventories' => [
                [
                    'inventory_id' => 17,
                    'price_id' => 17,
                    'count' => 45,
                    'comment' => 'consequatur',
                ],
            ],
            'kits' => [
                [
                    'kit_id' => 17,
                    'price_id' => 17,
                    'count' => 45,
                ],
            ],
            'additional_services' => [
                [
                    'additional_service_id' => 17,
                    'count' => 45,
                ],
            ],
            'discounts' => [
                [
                    'discount_id' => 17,
                ],
            ],
            'payments' => [
                [
                    'value' => 11613.31890586,
                    'pay_type_id' => 17,
                    'point_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112'
payload = {
    "currency_id": 17,
    "rent_state_id": 17,
    "comment": "consequatur",
    "is_understaffed": false,
    "need_calc_breaking": true,
    "need_calc_rent_delay": false,
    "open_point_id": 17,
    "close_point_id": 17,
    "human_id": 17,
    "deposit": {
        "deposit_id": 17,
        "sum": 11613.31890586
    },
    "inventories": [
        {
            "inventory_id": 17,
            "price_id": 17,
            "count": 45,
            "comment": "consequatur"
        }
    ],
    "kits": [
        {
            "kit_id": 17,
            "price_id": 17,
            "count": 45
        }
    ],
    "additional_services": [
        {
            "additional_service_id": 17,
            "count": 45
        }
    ],
    "discounts": [
        {
            "discount_id": 17
        }
    ],
    "payments": [
        {
            "value": 11613.31890586,
            "pay_type_id": 17,
            "point_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/rent/{id}

PATCH v2/rent/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the rent. Example: 40112

Параметры тела

time_start   string  optional    
time_end   string  optional    
time_fact_end   string  optional    
currency_id   integer  optional    

Example: 17

rent_state_id   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

is_understaffed   boolean  optional    

Example: false

need_calc_breaking   boolean  optional    

Example: true

need_calc_rent_delay   boolean  optional    

Example: false

open_point_id   integer  optional    

Example: 17

close_point_id   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

inventories   object[]  optional    
inventory_id   integer     

Example: 17

price_id   integer     

Example: 17

count   integer  optional    

Must be at least 1. Example: 45

comment   string  optional    

Example: consequatur

time_start   string  optional    
time_end   string  optional    
kits   object[]  optional    
kit_id   integer     

Example: 17

price_id   integer     

Example: 17

count   integer  optional    

Must be at least 1. Example: 45

additional_services   object[]  optional    
additional_service_id   integer     

Example: 17

count   integer  optional    

Must be at least 1. Example: 45

discounts   object[]  optional    
discount_id   integer     

Example: 17

payments   object[]  optional    
value   number     

Example: 11613.31890586

pay_type_id   integer     

Example: 17

date   string  optional    
point_id   integer  optional    

Example: 17

deposit   object  optional    
deposit_id   integer  optional    

This field is required when deposit is present. Example: 17

sum   number  optional    

Example: 11613.31890586

Удалить: rent (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/40112" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/40112"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/40112';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/40112'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/rent/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the rent. Example: 40112

Создать: rent/convert-time

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/convert-time" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/convert-time"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/convert-time';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/convert-time'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/rent/convert-time

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Аренда: конструктор

Создать: rent/builder/prepare (по id)

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/builder/prepare/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rent_state_id\": 17,
    \"currency_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/prepare/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rent_state_id": 17,
    "currency_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/prepare/consequatur';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rent_state_id' => 17,
            'currency_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/prepare/consequatur'
payload = {
    "rent_state_id": 17,
    "currency_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "status": "OK",
    "rentSessionKey": "RentSessionKey01",
    "rent": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_end": "2023-08-21 17:23:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

POST v2/rent/builder/prepare/{rentId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

rentId   string     

Example: consequatur

Параметры тела

time_start   string  optional    
time_end   string  optional    
rent_state_id   integer  optional    

Example: 17

currency_id   integer  optional    

Example: 17

Создать: rent/builder/prepare

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/builder/prepare" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rent_state_id\": 17,
    \"currency_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/prepare"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rent_state_id": 17,
    "currency_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/prepare';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rent_state_id' => 17,
            'currency_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/prepare'
payload = {
    "rent_state_id": 17,
    "currency_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/builder/prepare

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

time_start   string  optional    
time_end   string  optional    
rent_state_id   integer  optional    

Example: 17

currency_id   integer  optional    

Example: 17

Удалить: rent/builder/remove

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Создать: rent/builder/save

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/save" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/save"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/save';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/save'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/rent/builder/{sessionKey}/save

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Обновить: rent/builder/inventory/finish

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish'
payload = {
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 71600,
        "sum_real": 71600,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 70800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 71600,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/inventory/finish

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

Обновить: rent/builder/inventory/finish-multiple

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish-multiple';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/finish-multiple'
payload = {
    "inventory_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/rent/builder/{sessionKey}/inventory/finish-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

count   integer     

Example: 17

Обновить: rent/builder/inventory/replace

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/replace" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17,
    \"replace_inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/replace"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17,
    "replace_inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/replace';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
            'replace_inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/inventory/replace'
payload = {
    "inventory_id": 17,
    "replace_inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 67385,
        "time_start": "2022-03-16 10:15:00",
        "time_end": "2022-03-18 11:15:00",
        "time_fact_end": "2022-03-22 08:47:17",
        "sum": 2800,
        "sum_real": 2800,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 3800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 2800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": {
            "id": 12260,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2022-03-16 10:13:42",
            "time_end": "2022-03-16 10:40:39",
            "is_real": 1,
            "comment": null
        },
        "close_shift": null,
        "order_number": 162,
        "order_number_text": "162",
        "rent_state": {
            "id": 5,
            "title": "words.rent_state_closed",
            "const": "CLOSED",
            "dom_class": "rent-state-closed"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 42262,
                        "title": "Доска детскя",
                        "article_number": null,
                        "rent_number": null,
                        "category": null,
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 5791,
                                "title": "Сноуборды"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 5791,
                        "title": "Сноуборды"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": 0,
                    "replace_inventory": {
                        "id": 183566,
                        "title": "коньки фигурные",
                        "article_number": "6677889",
                        "rent_number": null,
                        "category": null,
                        "state": null,
                        "prices": [
                            {
                                "id": 9120,
                                "title": "Коньки"
                            }
                        ],
                        "another": 0,
                        "children_count": 5,
                        "is_group": true
                    },
                    "count": 1,
                    "sum": 1500,
                    "sum_one": 3100,
                    "sum_inventory": 3100,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 3100,
                    "sum_amount_payment": 0
                },
                "brokens": []
            },
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 183566,
                        "title": "коньки фигурные",
                        "article_number": "6677889",
                        "rent_number": null,
                        "category": null,
                        "state": null,
                        "prices": [
                            {
                                "id": 9120,
                                "title": "Коньки"
                            }
                        ],
                        "another": 0,
                        "children_count": 5,
                        "is_group": true
                    },
                    "price": {
                        "id": 9120,
                        "title": "Коньки"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 3500,
                    "sum_inventory": 3500,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 3500,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/inventory/replace

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

replace_inventory_id   integer     

Example: 17

Обновить: rent/builder/kit/finish

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/finish" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"kit_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/finish"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "kit_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/finish';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'kit_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/finish'
payload = {
    "kit_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2024-02-16T09:08:49-0700",
        "time_end": "2024-02-22T10:08:49-0700",
        "time_fact_end": null,
        "sum": 8880,
        "sum_real": 8880,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 8880,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": {
            "id": 60422,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2024-03-26T08:42:38-07:00",
            "time_end": null,
            "is_real": 1,
            "comment": null,
            "period": "P1DT3H54M2S"
        },
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 6,
            "title": "words.rent_state_overdue",
            "const": "OVERDUE",
            "dom_class": "rent-state-overdue"
        },
        "is_understaffed": false,
        "currency": {
            "id": 4,
            "title": "Гривна",
            "const": "UAH",
            "icon": "fa fa-currency fa-hryvnia",
            "translate": "words.currency_uah",
            "data": null
        },
        "admin_user": {
            "id": 21848,
            "avatar": "https://media.rentinhand.ru/production/public/orig/20220208-3ea662e0-88e3-11ec-875e-0572ac66c18c.png",
            "avatar_fio": "ГД",
            "guid": "b8bd4691-17e0-4a0b-bb4e-df229d74eed3",
            "is_admin": false,
            "is_client": false,
            "is_director": true,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": null,
            "sms_flag": true,
            "birthday": null,
            "passport_serial": "1234",
            "passport_number": "567890",
            "passport_take": "МВД России",
            "passport_code": null,
            "passport_take_date": "2015-06-11T00:00:00.000000Z",
            "vatin": "123456789987",
            "user_id": 3805
        },
        "inventories": [],
        "kits": [
            {
                "id": null,
                "kit": {
                    "id": 1291,
                    "title": "KitKit",
                    "article_number": null,
                    "rent_number": null,
                    "category": null,
                    "prices": [
                        {
                            "id": 24387,
                            "title": "новый тариф"
                        },
                        {
                            "id": 25814,
                            "title": "лира"
                        }
                    ]
                },
                "resource_id": null,
                "time_start": "2024-02-16 09:08:49",
                "time_end": "2024-02-16 09:08:49",
                "price": {
                    "id": 25814,
                    "title": "лира",
                    "values": [
                        {
                            "id": 76138,
                            "period": "P2D",
                            "more_then": "PT0S",
                            "price_id": 25814,
                            "value": 2220,
                            "sort_id": 0,
                            "is_fixed": false
                        }
                    ]
                },
                "sum": 8880,
                "sum_one": 8880,
                "count": 1,
                "sum_inventory": 8880,
                "sum_amount_payment": 0,
                "finished": true
            }
        ],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0,
        "check": null
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/kit/finish

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

kit_id   integer     

Example: 17

Обновить: rent/builder/kit/unite

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/unite" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"kit_id\": 17,
    \"inventory_ids\": []
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/unite"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "kit_id": 17,
    "inventory_ids": []
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/unite';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'kit_id' => 17,
            'inventory_ids' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/unite'
payload = {
    "kit_id": 17,
    "inventory_ids": []
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/rent/builder/{sessionKey}/kit/unite

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

kit_id   integer     

Example: 17

inventory_ids   object     

Список: rent/builder/kit/check-union

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/check-union" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/check-union"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/check-union';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/kit/check-union'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 1378,
            "title": "123",
            "inventories": [
                {
                    "id": 315241,
                    "title": "456456"
                },
                {
                    "id": 315240,
                    "title": "123123"
                }
            ]
        },
        {
            "id": 1379,
            "title": "456",
            "inventories": [
                {
                    "id": 315241,
                    "title": "456456"
                }
            ]
        }
    ]
}
 

Запрос      

GET v2/rent/builder/{sessionKey}/kit/check-union

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Обновить: rent/builder/add/client (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/client/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/client/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/client/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/client/consequatur'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_end": "2023-08-21 17:23:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 50,
        "sum_discount": 50,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": {
            "id": 46760,
            "avatar": null,
            "avatar_fio": "фи",
            "guid": "a8071460-9a21-11ec-b3e3-0d1f19368ef3",
            "is_admin": false,
            "is_client": true,
            "is_director": false,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": "21",
            "sms_flag": false,
            "birthday": null,
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null
        },
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/client/{humanId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

humanId   string     

Example: consequatur

Обновить: rent/builder/add/inventory

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17,
    \"price_id\": 17,
    \"resource_id\": 17,
    \"sum\": 17,
    \"sum_inventory\": 17,
    \"sum_broken\": 17,
    \"comment\": \"consequatur\",
    \"finished\": \"consequatur\",
    \"sum_amount_payment\": 17,
    \"sum_one\": 17,
    \"count\": 17,
    \"kit_id\": 17,
    \"parent_inventory_id\": 17,
    \"is_group\": false,
    \"discount_id\": 17,
    \"sum_discount\": 17,
    \"sum_total\": 17,
    \"resource_kit_id\": 17,
    \"kit_number\": 17,
    \"replace_inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "sum_broken": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "kit_id": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "resource_kit_id": 17,
    "kit_number": 17,
    "replace_inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/inventory';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
            'price_id' => 17,
            'resource_id' => 17,
            'sum' => 17,
            'sum_inventory' => 17,
            'sum_broken' => 17,
            'comment' => 'consequatur',
            'finished' => 'consequatur',
            'sum_amount_payment' => 17,
            'sum_one' => 17,
            'count' => 17,
            'kit_id' => 17,
            'parent_inventory_id' => 17,
            'is_group' => false,
            'discount_id' => 17,
            'sum_discount' => 17,
            'sum_total' => 17,
            'resource_kit_id' => 17,
            'kit_number' => 17,
            'replace_inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/inventory'
payload = {
    "inventory_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "sum_broken": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "kit_id": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "resource_kit_id": 17,
    "kit_number": 17,
    "replace_inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 800,
        "sum_real": 800,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

price_id   integer     

Example: 17

time_start   string  optional    
time_end   string  optional    
resource_id   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

sum_inventory   integer  optional    

Example: 17

sum_broken   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

finished   string  optional    

Example: consequatur

sum_amount_payment   integer  optional    

Example: 17

sum_one   integer  optional    

Example: 17

count   integer  optional    

Example: 17

kit_id   integer  optional    

Example: 17

parent_inventory_id   integer  optional    

Example: 17

is_group   boolean  optional    

Example: false

discount_id   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

sum_total   integer  optional    

Example: 17

resource_kit_id   integer  optional    

Example: 17

kit_number   integer  optional    

Example: 17

replace_inventory_id   integer  optional    

Example: 17

Обновить: rent/builder/add/kit

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/kit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"kit_id\": 17,
    \"price_id\": 17,
    \"resource_id\": 17,
    \"sum\": 17,
    \"sum_one\": 17,
    \"count\": 17,
    \"sum_inventory\": 17,
    \"sum_amount_payment\": 17,
    \"finished\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/kit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "kit_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_one": 17,
    "count": 17,
    "sum_inventory": 17,
    "sum_amount_payment": 17,
    "finished": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/kit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'kit_id' => 17,
            'price_id' => 17,
            'resource_id' => 17,
            'sum' => 17,
            'sum_one' => 17,
            'count' => 17,
            'sum_inventory' => 17,
            'sum_amount_payment' => 17,
            'finished' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/kit'
payload = {
    "kit_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_one": 17,
    "count": 17,
    "sum_inventory": 17,
    "sum_amount_payment": 17,
    "finished": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_end": "2023-08-21 17:23:00",
        "time_fact_end": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [
            {
                "id": null,
                "kit": {
                    "id": 826,
                    "title": "11",
                    "article_number": "2765768",
                    "rent_number": null,
                    "category": null,
                    "prices": [
                        {
                            "id": 14495,
                            "title": "Gogogoho"
                        }
                    ]
                },
                "resource_id": null,
                "time_start": "2023-11-03 23:05:29",
                "time_end": "2023-11-03 23:05:29",
                "price": {
                    "id": 14495,
                    "title": "Gogogoho",
                    "values": [
                        {
                            "id": 41821,
                            "period": "P1D",
                            "more_then": "P31D",
                            "price_id": 14495,
                            "value": 150,
                            "sort_id": 0,
                            "is_fixed": false
                        },
                        {
                            "id": 41822,
                            "period": "P30D",
                            "more_then": "PT0S",
                            "price_id": 14495,
                            "value": 8500,
                            "sort_id": 0,
                            "is_fixed": false
                        }
                    ]
                },
                "sum": 0,
                "sum_one": 0,
                "count": 1,
                "sum_inventory": 0,
                "sum_amount_payment": 0,
                "finished": false,
                "inventories": [
                    {
                        "id": null,
                        "resource_id": null,
                        "inventory": {
                            "id": 79425,
                            "title": "Лонгборд RIDEX SPIRIT",
                            "article_number": "014",
                            "description": "Лонгборд RIDEX SPIRIT SS22 - создана для тех, кто не представляет своей жизни без скорости, драйва, но в тоже время любит комфорт и стабильность во время катания. Убойный дизайн в комплекте.\nДерзкая новинка в линейке RIDEX для любителей фрирайда и круизинга.",
                            "rent_number": "14",
                            "category": null,
                            "state": {
                                "id": 5709,
                                "title": "В Аренде",
                                "const": "RENT",
                                "color": "#4fc3f7",
                                "text_color": "#000000"
                            },
                            "prices": [
                                {
                                    "id": 11834,
                                    "title": "Лонгборды"
                                }
                            ],
                            "another": 0,
                            "children_count": 0,
                            "is_group": false
                        },
                        "price": {
                            "id": 11834,
                            "title": "Лонгборды",
                            "values": [
                                {
                                    "id": 35400,
                                    "period": "P1D",
                                    "more_then": "PT0S",
                                    "price_id": 11834,
                                    "value": 750,
                                    "sort_id": 0,
                                    "is_fixed": false
                                },
                                {
                                    "id": 35398,
                                    "period": "PT5H",
                                    "more_then": "PT0S",
                                    "price_id": 11834,
                                    "value": 600,
                                    "sort_id": 0,
                                    "is_fixed": false
                                }
                            ]
                        },
                        "parent_inventory": null,
                        "kit_id": 826,
                        "resource_kit_id": null,
                        "discount": null,
                        "kit_number": null,
                        "replace_inventory": null,
                        "count": 1,
                        "sum": 0,
                        "sum_one": 0,
                        "sum_inventory": 0,
                        "sum_broken": 0,
                        "sum_service": 0,
                        "sum_discount": 0,
                        "sum_total": 0,
                        "sum_amount_payment": 0
                    }
                ]
            }
        ],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/kit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

kit_id   integer     

Example: 17

price_id   integer     

Example: 17

time_start   string  optional    
time_end   string  optional    
resource_id   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

sum_one   integer  optional    

Example: 17

count   integer  optional    

Example: 17

sum_inventory   integer  optional    

Example: 17

sum_amount_payment   integer  optional    

Example: 17

finished   boolean  optional    

Example: false

Обновить: rent/builder/add/broken

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/broken" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"broken_id\": 17,
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/broken"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "broken_id": 17,
    "inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/broken';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'broken_id' => 17,
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/broken'
payload = {
    "broken_id": 17,
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 1300,
        "sum_real": 1300,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 800,
        "fine_broken": 500,
        "sum_additional_service": 0,
        "sum_inventory": 800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 500,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": [
                    {
                        "id": null,
                        "broken": {
                            "id": 935,
                            "title": "разбили фару",
                            "const": null,
                            "price": 500
                        },
                        "price": 500
                    }
                ]
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/broken

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

broken_id   integer     

Example: 17

inventory_id   integer     

Example: 17

Обновить: rent/builder/add/deposit

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/deposit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"deposit_id\": 17,
    \"resource_id\": 17,
    \"is_accepted\": false,
    \"is_returned\": true
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/deposit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "deposit_id": 17,
    "resource_id": 17,
    "is_accepted": false,
    "is_returned": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/deposit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'deposit_id' => 17,
            'resource_id' => 17,
            'is_accepted' => false,
            'is_returned' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/deposit'
payload = {
    "id": 17,
    "deposit_id": 17,
    "resource_id": 17,
    "is_accepted": false,
    "is_returned": true
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": {
            "id": null,
            "deposit": {
                "id": 14223,
                "created_at": "2022-07-27T10:43:27+0000",
                "updated_at": "2022-07-27T10:43:27+0000",
                "deleted_at": null,
                "title": "Водительские права",
                "const": null,
                "created_user_id": 3805,
                "updated_user_id": 3805,
                "deleted_user_id": null,
                "is_money": null
            },
            "resource_id": null,
            "sum": 0,
            "is_accepted": false,
            "is_returned": false
        },
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/deposit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

deposit_id   integer     

Example: 17

resource_id   integer  optional    

Example: 17

is_accepted   boolean  optional    

Example: false

is_returned   boolean  optional    

Example: true

Обновить: rent/builder/add/service

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"additional_service_id\": 17,
    \"resource_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/service';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'additional_service_id' => 17,
            'resource_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/service'
payload = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 400,
        "sum_real": 400,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 400,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 400,
                "price": 400,
                "count": 1
            }
        ],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

additional_service_id   integer     

Example: 17

resource_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Обновить: rent/builder/add/payment

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/payment" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"value\": \"consequatur\",
    \"resource_id\": 17,
    \"pay_type_id\": 17,
    \"payment_date\": \"2026-09-29T17:13:48+03:00\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/payment"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "value": "consequatur",
    "resource_id": 17,
    "pay_type_id": 17,
    "payment_date": "2026-09-29T17:13:48+03:00"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/payment';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'value' => 'consequatur',
            'resource_id' => 17,
            'pay_type_id' => 17,
            'payment_date' => '2026-09-29T17:13:48+03:00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/payment'
payload = {
    "id": 17,
    "value": "consequatur",
    "resource_id": 17,
    "pay_type_id": 17,
    "payment_date": "2026-09-29T17:13:48+03:00"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 2000,
        "sum_real": 2000,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 123,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 2000,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-14 20:12:09",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24151,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-14 15:08:39",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/payment

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

value   string     

Example: consequatur

resource_id   integer  optional    

Example: 17

pay_type_id   integer  optional    

Example: 17

payment_date   string     

Must be a valid date. Must be a valid date in the format Y-m-d\TH:i:sP. Example: 2026-09-29T17:13:48+03:00

Обновить: rent/builder/add/time

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/time" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/time"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/time';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/time'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/time

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

time_start   string  optional    
time_end   string  optional    
time_fact_end   string  optional    

Обновить: rent/builder/add/config

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/config" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"consequatur\",
    \"need_calc_rent_delay\": false,
    \"need_calc_breaking\": true,
    \"admin_user_id\": 17,
    \"open_point_id\": 17,
    \"close_point_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/config"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "comment": "consequatur",
    "need_calc_rent_delay": false,
    "need_calc_breaking": true,
    "admin_user_id": 17,
    "open_point_id": 17,
    "close_point_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/config';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'comment' => 'consequatur',
            'need_calc_rent_delay' => false,
            'need_calc_breaking' => true,
            'admin_user_id' => 17,
            'open_point_id' => 17,
            'close_point_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/config'
payload = {
    "comment": "consequatur",
    "need_calc_rent_delay": false,
    "need_calc_breaking": true,
    "admin_user_id": 17,
    "open_point_id": 17,
    "close_point_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": {
            "id": 2599,
            "title": "пункт на суворовском",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "close_point": {
            "id": 2599,
            "title": "пункт на суворовском",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/config

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

comment   string  optional    

Example: consequatur

need_calc_rent_delay   boolean  optional    

Example: false

need_calc_breaking   boolean  optional    

Example: true

admin_user_id   integer  optional    

Example: 17

open_point_id   integer  optional    

Example: 17

close_point_id   integer  optional    

Example: 17

Обновить: rent/builder/add/discount/promocode

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/promocode" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"promocode\": \"consequatur\",
    \"force\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/promocode"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "promocode": "consequatur",
    "force": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/promocode';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'promocode' => 'consequatur',
            'force' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/promocode'
payload = {
    "promocode": "consequatur",
    "force": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/rent/builder/{sessionKey}/add/discount/promocode

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

promocode   string     

Example: consequatur

force   boolean  optional    

Example: false

Обновить: rent/builder/add/discount/custom

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/custom" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/custom"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/custom';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/discount/custom'
payload = {
    "value": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 800,
        "sum_real": 900,
        "sum_discount": 100,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 1382,
                    "created_at": "2022-01-26T06:43:52+0000",
                    "updated_at": "2022-01-26T06:43:52+0000",
                    "title": "Наценка 100",
                    "description": null,
                    "discount_type_id": 1,
                    "value": 100,
                    "discount_repeat_type_id": null,
                    "promocode": "+100                                              ",
                    "only_promo": true,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            },
            {
                "id": null,
                "discount": null,
                "resource_id": null,
                "limits": null,
                "sum": 100
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/discount/custom

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

value   string     

Example: consequatur

Обновить: rent/builder/add/product

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"product_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/add/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "product_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/product';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'product_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/add/product'
payload = {
    "id": 17,
    "product_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 2000,
        "sum_real": 2200,
        "sum_discount": 200,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 123,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 2000,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-14 20:12:09",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24151,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-14 15:08:39",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "products": [
            {
                "id": null,
                "product": {
                    "id": 1072,
                    "title": "Клавиатура",
                    "description": null,
                    "count": 4,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 5000,
                    "discounts": [
                        {
                            "id": 25,
                            "created_at": "2018-11-22T13:23:13+0000",
                            "updated_at": "2021-04-15T07:43:33+0000",
                            "title": "10%",
                            "description": null,
                            "discount_type_id": 2,
                            "value": 10,
                            "discount_repeat_type_id": null,
                            "promocode": "SALE                                              ",
                            "only_promo": true,
                            "time_start": null,
                            "limits": null,
                            "deleted_at": null,
                            "time_duration": null,
                            "created_user_id": 3805,
                            "updated_user_id": 3805,
                            "deleted_user_id": null,
                            "is_discount": true,
                            "list_type": null,
                            "laravel_through_key": 1072
                        }
                    ],
                    "created_at": "2022-07-28T11:32:15.000000Z",
                    "updated_at": "2023-05-25T08:49:45.000000Z"
                },
                "resource_id": null,
                "count": 1,
                "price": 5000,
                "sum_discount": 500,
                "sum_total": 5000,
                "discount": {
                    "id": 25,
                    "description": null,
                    "discount_periods": [],
                    "title": "10%",
                    "value": 10,
                    "discount_type": {
                        "id": 2,
                        "title": "Процент от суммы",
                        "icon": "%",
                        "min_value": 1,
                        "max_value": 100,
                        "const": "DISCOUNT_TYPE_PERCENT"
                    },
                    "only_promo": true,
                    "promocode": "SALE                                              ",
                    "limits": null,
                    "time_start": null,
                    "time_duration": null,
                    "is_discount": true
                },
                "sum_product": 4500
            }
        ]
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/add/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

product_id   integer     

Example: 17

count   integer  optional    

Example: 17

Обновить: rent/builder/update/inventory

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"inventory_id\": 17,
    \"price_id\": 17,
    \"resource_id\": 17,
    \"sum\": 17,
    \"sum_inventory\": 17,
    \"sum_broken\": 17,
    \"comment\": \"consequatur\",
    \"finished\": \"consequatur\",
    \"sum_amount_payment\": 17,
    \"sum_one\": 17,
    \"count\": 17,
    \"kit_id\": 17,
    \"parent_inventory_id\": 17,
    \"is_group\": false,
    \"discount_id\": 17,
    \"sum_discount\": 17,
    \"sum_total\": 17,
    \"resource_kit_id\": 17,
    \"kit_number\": 17,
    \"replace_inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "inventory_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "sum_broken": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "kit_id": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "resource_kit_id": 17,
    "kit_number": 17,
    "replace_inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/inventory';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'inventory_id' => 17,
            'price_id' => 17,
            'resource_id' => 17,
            'sum' => 17,
            'sum_inventory' => 17,
            'sum_broken' => 17,
            'comment' => 'consequatur',
            'finished' => 'consequatur',
            'sum_amount_payment' => 17,
            'sum_one' => 17,
            'count' => 17,
            'kit_id' => 17,
            'parent_inventory_id' => 17,
            'is_group' => false,
            'discount_id' => 17,
            'sum_discount' => 17,
            'sum_total' => 17,
            'resource_kit_id' => 17,
            'kit_number' => 17,
            'replace_inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/inventory'
payload = {
    "id": 17,
    "inventory_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "sum_broken": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "kit_id": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "resource_kit_id": 17,
    "kit_number": 17,
    "replace_inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 800,
        "sum_real": 800,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": 0,
                    "replace_inventory": null,
                    "count": 0,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/update/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

inventory_id   integer     

Example: 17

price_id   integer     

Example: 17

time_start   string  optional    
time_end   string  optional    
resource_id   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

sum_inventory   integer  optional    

Example: 17

sum_broken   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

finished   string  optional    

Example: consequatur

sum_amount_payment   integer  optional    

Example: 17

sum_one   integer  optional    

Example: 17

count   integer  optional    

Example: 17

kit_id   integer  optional    

Example: 17

parent_inventory_id   integer  optional    

Example: 17

is_group   boolean  optional    

Example: false

discount_id   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

sum_total   integer  optional    

Example: 17

resource_kit_id   integer  optional    

Example: 17

kit_number   integer  optional    

Example: 17

replace_inventory_id   integer  optional    

Example: 17

Обновить: rent/builder/update/kit

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/kit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"kit_id\": 17,
    \"price_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/kit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "kit_id": 17,
    "price_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/kit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'kit_id' => 17,
            'price_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/kit'
payload = {
    "id": 17,
    "kit_id": 17,
    "price_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2024-02-16T09:08:49-0700",
        "time_end": "2024-02-22T10:08:49-0700",
        "time_fact_end": null,
        "sum": 8880,
        "sum_real": 8880,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 8880,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": {
            "id": 60422,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2024-03-26T08:42:38-07:00",
            "time_end": null,
            "is_real": 1,
            "comment": null,
            "period": "P1DT3H49M38S"
        },
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 6,
            "title": "words.rent_state_overdue",
            "const": "OVERDUE",
            "dom_class": "rent-state-overdue"
        },
        "is_understaffed": false,
        "currency": {
            "id": 4,
            "title": "Гривна",
            "const": "UAH",
            "icon": "fa fa-currency fa-hryvnia",
            "translate": "words.currency_uah",
            "data": null
        },
        "admin_user": {
            "id": 21848,
            "avatar": "https://media.rentinhand.ru/production/public/orig/20220208-3ea662e0-88e3-11ec-875e-0572ac66c18c.png",
            "avatar_fio": "ГД",
            "guid": "b8bd4691-17e0-4a0b-bb4e-df229d74eed3",
            "is_admin": false,
            "is_client": false,
            "is_director": true,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": null,
            "sms_flag": true,
            "birthday": null,
            "passport_serial": "1234",
            "passport_number": "567890",
            "passport_take": "МВД России",
            "passport_code": null,
            "passport_take_date": "2015-06-11T00:00:00.000000Z",
            "vatin": "123456789987",
            "user_id": 3805
        },
        "inventories": [],
        "kits": [
            {
                "id": null,
                "kit": {
                    "id": 1291,
                    "title": "KitKit",
                    "article_number": null,
                    "rent_number": null,
                    "category": null,
                    "prices": [
                        {
                            "id": 24387,
                            "title": "новый тариф"
                        },
                        {
                            "id": 25814,
                            "title": "лира"
                        }
                    ]
                },
                "resource_id": null,
                "time_start": "2024-03-27 22:32:12",
                "time_end": "2024-03-27 22:32:12",
                "price": {
                    "id": 25814,
                    "title": "лира",
                    "values": [
                        {
                            "id": 76138,
                            "period": "P2D",
                            "more_then": "PT0S",
                            "price_id": 25814,
                            "value": 2220,
                            "sort_id": 0,
                            "is_fixed": false
                        }
                    ]
                },
                "sum": 8880,
                "sum_one": 8880,
                "count": 1,
                "sum_inventory": 8880,
                "sum_amount_payment": 0,
                "finished": false
            }
        ],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0,
        "check": null
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/update/kit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

kit_id   integer     

Example: 17

price_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Обновить: rent/builder/update/deposit

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/deposit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"deposit_id\": 17,
    \"resource_id\": 17,
    \"is_accepted\": false,
    \"is_returned\": true
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/deposit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "deposit_id": 17,
    "resource_id": 17,
    "is_accepted": false,
    "is_returned": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/deposit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'deposit_id' => 17,
            'resource_id' => 17,
            'is_accepted' => false,
            'is_returned' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/deposit'
payload = {
    "id": 17,
    "deposit_id": 17,
    "resource_id": 17,
    "is_accepted": false,
    "is_returned": true
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 100,
        "sum_real": 100,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 100,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": {
            "id": null,
            "deposit": {
                "id": 14223,
                "created_at": "2022-07-27T10:43:27+0000",
                "updated_at": "2022-07-27T10:43:27+0000",
                "deleted_at": null,
                "title": "Водительские права",
                "const": null,
                "created_user_id": 3805,
                "updated_user_id": 3805,
                "deleted_user_id": null,
                "is_money": null
            },
            "resource_id": null,
            "sum": 100,
            "is_accepted": true,
            "is_returned": true
        },
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/update/deposit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

deposit_id   integer     

Example: 17

resource_id   integer  optional    

Example: 17

is_accepted   boolean  optional    

Example: false

is_returned   boolean  optional    

Example: true

sum   string  optional    

Обновить: rent/builder/update/service

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"additional_service_id\": 17,
    \"resource_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/service';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'additional_service_id' => 17,
            'resource_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/service'
payload = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 2000,
        "sum_real": 2000,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 2000,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/update/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

additional_service_id   integer     

Example: 17

resource_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Обновить: rent/builder/update/product

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/update/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/product';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/update/product'
payload = {
    "product_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 2000,
        "sum_real": 2200,
        "sum_discount": 200,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 123,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 2000,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-14 20:12:09",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24151,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-14 15:08:39",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "products": [
            {
                "id": null,
                "product": {
                    "id": 1072,
                    "title": "Клавиатура",
                    "description": null,
                    "count": 4,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 5000,
                    "discounts": [
                        {
                            "id": 25,
                            "created_at": "2018-11-22T13:23:13+0000",
                            "updated_at": "2021-04-15T07:43:33+0000",
                            "title": "10%",
                            "description": null,
                            "discount_type_id": 2,
                            "value": 10,
                            "discount_repeat_type_id": null,
                            "promocode": "SALE                                              ",
                            "only_promo": true,
                            "time_start": null,
                            "limits": null,
                            "deleted_at": null,
                            "time_duration": null,
                            "created_user_id": 3805,
                            "updated_user_id": 3805,
                            "deleted_user_id": null,
                            "is_discount": true,
                            "list_type": null,
                            "laravel_through_key": 1072
                        }
                    ],
                    "created_at": "2022-07-28T11:32:15.000000Z",
                    "updated_at": "2023-05-25T08:49:45.000000Z"
                },
                "resource_id": null,
                "count": 2,
                "price": 5000,
                "sum_discount": 1000,
                "sum_total": 10000,
                "discount": {
                    "id": 25,
                    "description": null,
                    "discount_periods": [],
                    "title": "10%",
                    "value": 10,
                    "discount_type": {
                        "id": 2,
                        "title": "Процент от суммы",
                        "icon": "%",
                        "min_value": 1,
                        "max_value": 100,
                        "const": "DISCOUNT_TYPE_PERCENT"
                    },
                    "only_promo": true,
                    "promocode": "SALE                                              ",
                    "limits": null,
                    "time_start": null,
                    "time_duration": null,
                    "is_discount": true
                },
                "sum_product": 9000
            }
        ]
    }
}
 

Запрос      

PUT v2/rent/builder/{sessionKey}/update/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

product_id   integer     

Example: 17

count   integer  optional    

Example: 17

Удалить: rent/builder/remove/client

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/client" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/client"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/client';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/client'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_end": "2023-08-21 17:23:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/client

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Удалить: rent/builder/remove/inventory

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/inventory';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/inventory'
payload = {
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

Удалить: rent/builder/remove/kit

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/kit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"kit_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/kit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "kit_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/kit';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'kit_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/kit'
payload = {
    "kit_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2024-02-16T09:08:49-0700",
        "time_end": "2024-02-22T10:08:49-0700",
        "time_fact_end": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": {
            "id": 60422,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2024-03-26T08:42:38-07:00",
            "time_end": null,
            "is_real": 1,
            "comment": null,
            "period": "P1DT3H56M47S"
        },
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 6,
            "title": "words.rent_state_overdue",
            "const": "OVERDUE",
            "dom_class": "rent-state-overdue"
        },
        "is_understaffed": false,
        "currency": {
            "id": 4,
            "title": "Гривна",
            "const": "UAH",
            "icon": "fa fa-currency fa-hryvnia",
            "translate": "words.currency_uah",
            "data": null
        },
        "admin_user": {
            "id": 21848,
            "avatar": "https://media.rentinhand.ru/production/public/orig/20220208-3ea662e0-88e3-11ec-875e-0572ac66c18c.png",
            "avatar_fio": "ГД",
            "guid": "b8bd4691-17e0-4a0b-bb4e-df229d74eed3",
            "is_admin": false,
            "is_client": false,
            "is_director": true,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": null,
            "sms_flag": true,
            "birthday": null,
            "passport_serial": "1234",
            "passport_number": "567890",
            "passport_take": "МВД России",
            "passport_code": null,
            "passport_take_date": "2015-06-11T00:00:00.000000Z",
            "vatin": "123456789987",
            "user_id": 3805
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0,
        "check": null
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/kit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

kit_id   integer     

Example: 17

Удалить: rent/builder/remove/broken

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/broken" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"broken_id\": 17,
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/broken"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "broken_id": 17,
    "inventory_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/broken';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'broken_id' => 17,
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/broken'
payload = {
    "broken_id": 17,
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 800,
        "sum_real": 800,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/broken

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

broken_id   integer     

Example: 17

inventory_id   integer     

Example: 17

Удалить: rent/builder/remove/deposit

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/deposit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"deposit_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/deposit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "deposit_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/deposit';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'deposit_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/deposit'
payload = {
    "deposit_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/deposit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

deposit_id   integer     

Example: 17

Удалить: rent/builder/remove/service

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"additional_service_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "additional_service_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/service';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'additional_service_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/service'
payload = {
    "additional_service_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

additional_service_id   integer     

Example: 17

Удалить: rent/builder/remove/payment

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/payment" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"consequatur\",
    \"payment_date\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/payment"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "consequatur",
    "payment_date": "consequatur"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/payment';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 'consequatur',
            'payment_date' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/payment'
payload = {
    "value": "consequatur",
    "payment_date": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 2000,
        "sum_real": 2000,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 123,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 2000,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-14 20:12:09",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24151,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-14 15:08:39",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/payment

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

value   string     

Example: consequatur

payment_date   string     

Example: consequatur

Удалить: rent/builder/remove/discount

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/discount" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/discount"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/discount';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/discount'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 800,
        "sum_real": 800,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 800,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 800,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 11833,
                                "title": "Ролики"
                            },
                            {
                                "id": 15993,
                                "title": "месяц"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 11833,
                        "title": "Ролики"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/discount

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Удалить: rent/builder/remove/product

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/product';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/remove/product'
payload = {
    "product_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/rent/builder/{sessionKey}/remove/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

product_id   integer     

Example: 17

Список: rent/builder/search/inventory

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/builder/consequatur/search/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/search/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/search/inventory';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/search/inventory'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/rent/builder/{sessionKey}/search/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Список: rent/builder/search/kit

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/builder/consequatur/search/kit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/builder/consequatur/search/kit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/search/kit';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/builder/consequatur/search/kit'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/rent/builder/{sessionKey}/search/kit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Аренды: состояния

Список: rent/state

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/state" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/state"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/state';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/state'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 6,
            "title": "words.rent_state_overdue",
            "const": "OVERDUE",
            "dom_class": "rent-state-overdue"
        },
        {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/rent/state?page=1",
        "last": "https://api.rentinhand.ru/v2/rent/state?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/rent/state?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/rent/state",
        "per_page": 10,
        "to": 6,
        "total": 6,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/rent/state

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Получить: rent/state (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/state/6" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/state/6"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/state/6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/state/6'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1,
        "title": "words.rent_state_in_progress",
        "const": "IN_PROGRESS",
        "dom_class": "rent-state-in_progress"
    }
}
 

Запрос      

GET v2/rent/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 6

Аренды: залоги

Удалить: rent/deposit/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/deposit/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/deposit/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/deposit/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/deposit/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/rent/deposit/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: rent/deposit

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/deposit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/deposit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/deposit';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/deposit'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 14223,
            "title": "Водительские права",
            "const": null,
            "is_money": null
        },
        {
            "id": 14222,
            "title": "Денежный залог",
            "const": null,
            "is_money": true
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/rent/deposit?page=1",
        "last": "https://api.rentinhand.ru/v2/rent/deposit?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/rent/deposit?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/rent/deposit",
        "per_page": 10,
        "to": 7,
        "total": 7,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/rent/deposit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: rent/deposit

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/rent/deposit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\",
    \"is_money\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/deposit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur",
    "is_money": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/deposit';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
            'is_money' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/deposit'
payload = {
    "title": "consequatur",
    "const": "consequatur",
    "is_money": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/rent/deposit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

const   string     

Example: consequatur

is_money   boolean     

Example: false

Получить: rent/deposit (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/rent/deposit/31909" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/deposit/31909"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/deposit/31909';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/deposit/31909'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 14223,
        "title": "Водительские права",
        "const": null,
        "is_money": null
    }
}
 

Запрос      

GET v2/rent/deposit/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the deposit. Example: 31909

Обновить: rent/deposit (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/rent/deposit/31909" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\",
    \"is_money\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/deposit/31909"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur",
    "is_money": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/deposit/31909';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
            'is_money' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/deposit/31909'
payload = {
    "title": "consequatur",
    "const": "consequatur",
    "is_money": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 17127,
        "title": "Пример депозита 2",
        "const": "DEPOSIT_TEST_2",
        "is_money": true
    }
}
 

Запрос      

PUT v2/rent/deposit/{id}

PATCH v2/rent/deposit/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the deposit. Example: 31909

Параметры тела

title   string     

Example: consequatur

const   string     

Example: consequatur

is_money   boolean     

Example: false

Удалить: rent/deposit (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/rent/deposit/31909" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/rent/deposit/31909"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/deposit/31909';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/rent/deposit/31909'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/rent/deposit/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the deposit. Example: 31909

Инвентарь

Список: inventory/search-by-date

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/search-by-date" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/search-by-date"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/search-by-date';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/search-by-date'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/search-by-date

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: inventory/is-free (по id)

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/is-free/536460" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/is-free/536460"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/is-free/536460';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/is-free/536460'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/inventory/is-free/{inventory_id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Список: inventory/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: inventory/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/inventory/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: inventory/qr.svg

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/536460/qr.svg" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/qr.svg"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/qr.svg';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/qr.svg'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/{inventory_id}/qr.svg

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Список: inventory/barcode.svg

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/536460/barcode.svg" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/barcode.svg"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/barcode.svg';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/barcode.svg'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/{inventory_id}/barcode.svg

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Список: inventory/qr/print

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/536460/qr/print" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/qr/print"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/qr/print';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/qr/print'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/{inventory_id}/qr/print

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Список: inventory/codes

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/536460/codes" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/codes"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/codes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/codes'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/{inventory_id}/codes

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Создать: inventory/codes

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/536460/codes" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/codes"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/codes';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/codes'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/inventory/{inventory_id}/codes

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Удалить: inventory/codes (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/536460/codes/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/codes/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/codes/consequatur';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/codes/consequatur'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/inventory/{inventory_id}/codes/{codeId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

codeId   string     

Example: consequatur

Список: inventory

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 183566,
            "title": "коньки фигурные",
            "article_number": "6677889",
            "rent_number": null,
            "buy_date": "2023-04-30T21:00:00.000000Z",
            "buy_price": 5000,
            "option": [
                {
                    "title": "",
                    "value": ""
                }
            ],
            "category": null,
            "state": null,
            "point": {
                "id": 141,
                "title": "Пункт проката на Московской",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "prices": [
                {
                    "id": 9120,
                    "title": "Коньки",
                    "values": [
                        {
                            "id": 28602,
                            "period": "P1D",
                            "more_then": "PT0S",
                            "price_id": 9120,
                            "value": 500,
                            "sort_id": 0,
                            "is_fixed": false
                        }
                    ]
                }
            ],
            "another": 0,
            "children_count": 5,
            "is_group": true,
            "updated_at": "2023-05-26 12:10:48"
        },
        {
            "id": 182287,
            "title": "скакалка",
            "article_number": null,
            "rent_number": null,
            "buy_date": null,
            "buy_price": null,
            "option": [
                {
                    "title": "",
                    "value": ""
                }
            ],
            "category": null,
            "state": {
                "id": 5709,
                "title": "В Аренде",
                "const": "RENT",
                "color": "#4fc3f7",
                "text_color": "#000000"
            },
            "point": null,
            "prices": [
                {
                    "id": 8145,
                    "title": "Комплект",
                    "values": [
                        {
                            "id": 26309,
                            "period": "P3D",
                            "more_then": "PT0S",
                            "price_id": 8145,
                            "value": 1300,
                            "sort_id": 0,
                            "is_fixed": false
                        },
                        {
                            "id": 26310,
                            "period": "P1D",
                            "more_then": "PT0S",
                            "price_id": 8145,
                            "value": 500,
                            "sort_id": 0,
                            "is_fixed": false
                        }
                    ]
                }
            ],
            "another": 0,
            "children_count": 0,
            "is_group": false,
            "updated_at": "2023-05-11 17:04:36"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/inventory?page=1",
        "last": "https://api.rentinhand.ru/v2/inventory?page=5",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/inventory?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 5,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/inventory?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/inventory",
        "per_page": 10,
        "to": 10,
        "total": 45,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: inventory

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"article_number\": \"consequatur\",
    \"rent_number\": \"consequatur\",
    \"point_id\": 17,
    \"state_id\": 17,
    \"prices\": [
        17
    ],
    \"buy_date\": \"consequatur\",
    \"category_resource_id\": 17,
    \"option\": \"consequatur\",
    \"max\": 17,
    \"children_count\": 17,
    \"discounts\": [
        17
    ],
    \"children\": [
        {
            \"state_id\": 17,
            \"count\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "point_id": 17,
    "state_id": 17,
    "prices": [
        17
    ],
    "buy_date": "consequatur",
    "category_resource_id": 17,
    "option": "consequatur",
    "max": 17,
    "children_count": 17,
    "discounts": [
        17
    ],
    "children": [
        {
            "state_id": 17,
            "count": 17
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'article_number' => 'consequatur',
            'rent_number' => 'consequatur',
            'point_id' => 17,
            'state_id' => 17,
            'prices' => [
                17,
            ],
            'buy_date' => 'consequatur',
            'category_resource_id' => 17,
            'option' => 'consequatur',
            'max' => 17,
            'children_count' => 17,
            'discounts' => [
                17,
            ],
            'children' => [
                [
                    'state_id' => 17,
                    'count' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory'
payload = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "point_id": 17,
    "state_id": 17,
    "prices": [
        17
    ],
    "buy_date": "consequatur",
    "category_resource_id": 17,
    "option": "consequatur",
    "max": 17,
    "children_count": 17,
    "discounts": [
        17
    ],
    "children": [
        {
            "state_id": 17,
            "count": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

article_number   string  optional    

Example: consequatur

rent_number   string  optional    

Example: consequatur

point_id   integer  optional    

Example: 17

state_id   integer  optional    

Example: 17

prices   integer[]     
buy_date   string  optional    

Example: consequatur

buy_price   string  optional    
category_resource_id   integer  optional    

Example: 17

option   string  optional    

Example: consequatur

max   integer  optional    

Example: 17

children_count   integer  optional    

Example: 17

discounts   integer[]  optional    
cash_deposit   string  optional    
media   object  optional    
children   object[]  optional    
state_id   integer     

Example: 17

count   integer     

Example: 17

Получить: inventory (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/536460" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 183710,
        "title": "adasdasdsadasd123123",
        "article_number": null,
        "rent_number": "12314423",
        "buy_date": "2023-07-31T21:00:00.000000Z",
        "buy_price": 26384,
        "option": "[{\"title\":\"asd\",\"value\":\"asd\"},{\"title\":\"dsa\",\"value\":\"dsa\"}]",
        "category": null,
        "state": {
            "id": 15183,
            "title": "На доставке",
            "const": null,
            "color": "#8E43AD",
            "text_color": "#000000"
        },
        "point": {
            "id": 1276,
            "title": "КПД Краснодар",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "prices": [
            {
                "id": 14495,
                "title": "Gogogoho",
                "values": [
                    {
                        "id": 41821,
                        "period": "P1D",
                        "more_then": "P31D",
                        "price_id": 14495,
                        "value": 150,
                        "sort_id": 0,
                        "is_fixed": false
                    },
                    {
                        "id": 41822,
                        "period": "P30D",
                        "more_then": "PT0S",
                        "price_id": 14495,
                        "value": 8500,
                        "sort_id": 0,
                        "is_fixed": false
                    }
                ]
            }
        ],
        "discounts": [
            {
                "id": 1367,
                "description": null,
                "discount_periods": [],
                "title": "ол",
                "value": 100,
                "discount_type": {
                    "id": 1,
                    "title": "Определенная сумма",
                    "icon": "<i class='fa fa-rub'></i>",
                    "min_value": 1,
                    "max_value": 59000,
                    "const": "DISCOUNT_TYPE_PRICE"
                },
                "only_promo": true,
                "promocode": "ол                                                ",
                "limits": 0,
                "time_start": null,
                "time_duration": null,
                "is_discount": true
            }
        ],
        "another": 0,
        "children_count": 0,
        "is_group": false,
        "updated_at": "2023-08-11 16:38:32",
        "services": null
    }
}
 

Запрос      

GET v2/inventory/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the inventory. Example: 536460

Обновить: inventory (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/inventory/536460" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"article_number\": \"consequatur\",
    \"rent_number\": \"consequatur\",
    \"point_id\": 17,
    \"is_group\": false,
    \"state_id\": 17,
    \"prices\": [
        17
    ],
    \"buy_date\": \"consequatur\",
    \"category_resource_id\": 17,
    \"option\": \"consequatur\",
    \"max\": 17,
    \"children_count\": 17,
    \"discounts\": [
        17
    ],
    \"children\": [
        {
            \"state_id\": 17,
            \"count\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "point_id": 17,
    "is_group": false,
    "state_id": 17,
    "prices": [
        17
    ],
    "buy_date": "consequatur",
    "category_resource_id": 17,
    "option": "consequatur",
    "max": 17,
    "children_count": 17,
    "discounts": [
        17
    ],
    "children": [
        {
            "state_id": 17,
            "count": 17
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'article_number' => 'consequatur',
            'rent_number' => 'consequatur',
            'point_id' => 17,
            'is_group' => false,
            'state_id' => 17,
            'prices' => [
                17,
            ],
            'buy_date' => 'consequatur',
            'category_resource_id' => 17,
            'option' => 'consequatur',
            'max' => 17,
            'children_count' => 17,
            'discounts' => [
                17,
            ],
            'children' => [
                [
                    'state_id' => 17,
                    'count' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460'
payload = {
    "id": 17,
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "point_id": 17,
    "is_group": false,
    "state_id": 17,
    "prices": [
        17
    ],
    "buy_date": "consequatur",
    "category_resource_id": 17,
    "option": "consequatur",
    "max": 17,
    "children_count": 17,
    "discounts": [
        17
    ],
    "children": [
        {
            "state_id": 17,
            "count": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 183710,
        "title": "adasdasdsadasd123123",
        "article_number": null,
        "rent_number": "12314423",
        "buy_date": "2023-07-31T21:00:00.000000Z",
        "buy_price": 26384,
        "option": "[{\"title\":\"asd\",\"value\":\"asd\"},{\"title\":\"dsa\",\"value\":\"dsa\"}]",
        "category": null,
        "state": {
            "id": 15183,
            "title": "На доставке",
            "const": null,
            "color": "#8E43AD",
            "text_color": "#000000"
        },
        "point": {
            "id": 1276,
            "title": "КПД Краснодар",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "prices": [
            {
                "id": 14495,
                "title": "Gogogoho",
                "values": [
                    {
                        "id": 41821,
                        "period": "P1D",
                        "more_then": "P31D",
                        "price_id": 14495,
                        "value": 150,
                        "sort_id": 0,
                        "is_fixed": false
                    },
                    {
                        "id": 41822,
                        "period": "P30D",
                        "more_then": "PT0S",
                        "price_id": 14495,
                        "value": 8500,
                        "sort_id": 0,
                        "is_fixed": false
                    }
                ]
            }
        ],
        "another": 0,
        "children_count": 0,
        "is_group": false,
        "updated_at": "2023-08-11 16:38:32",
        "services": null
    }
}
 

Запрос      

PUT v2/inventory/{id}

PATCH v2/inventory/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the inventory. Example: 536460

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

article_number   string  optional    

Example: consequatur

rent_number   string  optional    

Example: consequatur

point_id   integer  optional    

Example: 17

is_group   boolean  optional    

Example: false

state_id   integer  optional    

Example: 17

prices   integer[]     
buy_date   string  optional    

Example: consequatur

buy_price   string  optional    
category_resource_id   integer  optional    

Example: 17

option   string  optional    

Example: consequatur

max   integer  optional    

Example: 17

children_count   integer  optional    

Example: 17

discounts   integer[]  optional    
cash_deposit   string  optional    
media   object  optional    
children   object[]  optional    
state_id   integer     

Example: 17

count   integer     

Example: 17

Удалить: inventory (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/536460" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/inventory/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the inventory. Example: 536460

Создать: inventory/outer

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/outer" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"category_resource_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/outer"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "category_resource_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/outer';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'category_resource_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/outer'
payload = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "category_resource_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/inventory/outer

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

category_resource_id   integer  optional    

Example: 17

media   object  optional    

Generate QR for inventory.

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/536460/generate-qr" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/536460/generate-qr"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/536460/generate-qr';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/536460/generate-qr'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/inventory/{inventory_id}/generate-qr

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventory_id   integer     

The ID of the inventory. Example: 536460

Инвентарь: цены

Удалить: inventory/price/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/price/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/price/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/price/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/price/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/inventory/price/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: inventory/price

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/price" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/price"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/price';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/price'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 15711,
            "title": "сноуборд",
            "values": [
                {
                    "id": 45581,
                    "period": "P1D",
                    "more_then": "PT0S",
                    "price_id": 15711,
                    "value": 1456,
                    "sort_id": 0,
                    "is_fixed": false
                }
            ]
        },
        {
            "id": 11832,
            "title": "Велосипеды 2",
            "values": [
                {
                    "id": 35394,
                    "period": "P1D",
                    "more_then": "PT0S",
                    "price_id": 11832,
                    "value": 2000,
                    "sort_id": 0,
                    "is_fixed": false
                },
                {
                    "id": 35392,
                    "period": "PT5H",
                    "more_then": "PT0S",
                    "price_id": 11832,
                    "value": 1000,
                    "sort_id": 0,
                    "is_fixed": false
                }
            ]
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/inventory/price?page=1",
        "last": "https://api.rentinhand.ru/v2/inventory/price?page=7",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/inventory/price?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 7,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/inventory/price?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/inventory/price",
        "per_page": 10,
        "to": 10,
        "total": 67,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/inventory/price

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: inventory/price

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/price" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"values\": [
        {
            \"period\": \"consequatur\",
            \"more_then\": \"consequatur\",
            \"price_id\": 17,
            \"is_fixed\": false,
            \"is_final\": true
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/price"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "values": [
        {
            "period": "consequatur",
            "more_then": "consequatur",
            "price_id": 17,
            "is_fixed": false,
            "is_final": true
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/price';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'values' => [
                [
                    'period' => 'consequatur',
                    'more_then' => 'consequatur',
                    'price_id' => 17,
                    'is_fixed' => false,
                    'is_final' => true,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/price'
payload = {
    "title": "consequatur",
    "values": [
        {
            "period": "consequatur",
            "more_then": "consequatur",
            "price_id": 17,
            "is_fixed": false,
            "is_final": true
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/inventory/price

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

values   object[]     
period   string     

Example: consequatur

more_then   string     

Example: consequatur

price_id   integer  optional    

Example: 17

value   string  optional    
is_fixed   boolean     

Example: false

is_final   boolean  optional    

Example: true

Получить: inventory/price (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/price/124" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/price/124"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/price/124';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/price/124'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/price/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the price. Example: 124

Обновить: inventory/price (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/inventory/price/124" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"values\": [
        {
            \"id\": 17,
            \"period\": \"consequatur\",
            \"more_then\": \"consequatur\",
            \"price_id\": 17,
            \"is_fixed\": false,
            \"is_final\": true
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/price/124"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "values": [
        {
            "id": 17,
            "period": "consequatur",
            "more_then": "consequatur",
            "price_id": 17,
            "is_fixed": false,
            "is_final": true
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/price/124';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'values' => [
                [
                    'id' => 17,
                    'period' => 'consequatur',
                    'more_then' => 'consequatur',
                    'price_id' => 17,
                    'is_fixed' => false,
                    'is_final' => true,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/price/124'
payload = {
    "id": 17,
    "title": "consequatur",
    "values": [
        {
            "id": 17,
            "period": "consequatur",
            "more_then": "consequatur",
            "price_id": 17,
            "is_fixed": false,
            "is_final": true
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 19584,
        "title": "EXAMPLE_222",
        "values": [
            {
                "id": 57705,
                "period": "P1D",
                "more_then": "P31D",
                "price_id": 19584,
                "value": 150,
                "sort_id": 0,
                "is_fixed": false
            }
        ]
    }
}
 

Запрос      

PUT v2/inventory/price/{id}

PATCH v2/inventory/price/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the price. Example: 124

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

values   object[]     
id   integer  optional    

Example: 17

period   string     

Example: consequatur

more_then   string     

Example: consequatur

price_id   integer  optional    

Example: 17

value   string  optional    
is_fixed   boolean     

Example: false

is_final   boolean  optional    

Example: true

Удалить: inventory/price (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/price/124" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/price/124"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/price/124';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/price/124'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/inventory/price/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the price. Example: 124

Инвентарь: состояния

Удалить: inventory/state/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/state/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/state/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/state/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/state/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/inventory/state/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: inventory/state

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/state" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/state"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/state';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/state'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 15183,
            "title": "На доставке",
            "const": null,
            "color": "#8E43AD",
            "text_color": "#000000"
        },
        {
            "id": 20970,
            "title": "проверка",
            "const": null,
            "color": "#ffffff",
            "text_color": "#000000"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/inventory/state?page=1",
        "last": "https://api.rentinhand.ru/v2/inventory/state?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/inventory/state?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/inventory/state",
        "per_page": 10,
        "to": 7,
        "total": 7,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/inventory/state

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: inventory/state

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/state" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"text_color\": \"consequatur\",
    \"const\": \"consequatur\",
    \"color\": \"consequatur\",
    \"is_available_for_rent\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/state"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "text_color": "consequatur",
    "const": "consequatur",
    "color": "consequatur",
    "is_available_for_rent": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/state';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'text_color' => 'consequatur',
            'const' => 'consequatur',
            'color' => 'consequatur',
            'is_available_for_rent' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/state'
payload = {
    "title": "consequatur",
    "text_color": "consequatur",
    "const": "consequatur",
    "color": "consequatur",
    "is_available_for_rent": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/inventory/state

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

text_color   string     

Example: consequatur

const   string  optional    

Example: consequatur

color   string     

Example: consequatur

is_available_for_rent   boolean  optional    

Example: false

Получить: inventory/state (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/state/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/state/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/state/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/state/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 15183,
        "title": "На доставке",
        "const": null,
        "color": "#8E43AD",
        "text_color": "#000000"
    }
}
 

Запрос      

GET v2/inventory/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 1

Обновить: inventory/state (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/inventory/state/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"text_color\": \"consequatur\",
    \"const\": \"consequatur\",
    \"color\": \"consequatur\",
    \"is_available_for_rent\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/state/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "text_color": "consequatur",
    "const": "consequatur",
    "color": "consequatur",
    "is_available_for_rent": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/state/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'text_color' => 'consequatur',
            'const' => 'consequatur',
            'color' => 'consequatur',
            'is_available_for_rent' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/state/1'
payload = {
    "id": 17,
    "title": "consequatur",
    "text_color": "consequatur",
    "const": "consequatur",
    "color": "consequatur",
    "is_available_for_rent": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 22137,
        "title": "Example222",
        "const": null,
        "color": "#8E43AD",
        "text_color": "#000000"
    }
}
 

Запрос      

PUT v2/inventory/state/{id}

PATCH v2/inventory/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 1

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

text_color   string     

Example: consequatur

const   string  optional    

Example: consequatur

color   string     

Example: consequatur

is_available_for_rent   boolean  optional    

Example: false

Удалить: inventory/state (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/inventory/state/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/state/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/state/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/state/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/inventory/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 1

Инвентарь: QR и штрихкоды

Список: inventory/qr/resolve

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/qr/resolve" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/qr/resolve"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/qr/resolve';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/qr/resolve'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/qr/resolve

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: inventory/qr/resolve

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/qr/resolve" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/qr/resolve"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/qr/resolve';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/qr/resolve'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/inventory/qr/resolve

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Список: inventory/qr/print

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/inventory/qr/print" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/qr/print"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/qr/print';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/qr/print'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/inventory/qr/print

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: inventory/qr/generate

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/inventory/qr/generate" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/inventory/qr/generate"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/qr/generate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/inventory/qr/generate'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/inventory/qr/generate

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Комплекты

Список: kit/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/kit/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/kit/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: kit/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/kit/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/kit/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: kit

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/kit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 742,
            "title": "тпртаптап",
            "article_number": null,
            "rent_number": null,
            "category": null,
            "objects": [
                {
                    "id": 1026,
                    "count": 1,
                    "inventory": null,
                    "category": null
                },
                {
                    "id": 1027,
                    "count": 1,
                    "inventory": null,
                    "category": null
                }
            ]
        },
        {
            "id": 740,
            "title": "ымвысвыс",
            "article_number": null,
            "rent_number": null,
            "category": null,
            "objects": [
                {
                    "id": 1017,
                    "count": 1,
                    "inventory": {
                        "id": 84373,
                        "title": "сввы",
                        "article_number": null,
                        "rent_number": null,
                        "category": null,
                        "state": {
                            "id": 5706,
                            "title": "Свободен",
                            "const": "FREE",
                            "color": "#ffffff",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 8318,
                                "title": "4 день бесплатно"
                            },
                            {
                                "id": 9459,
                                "title": "Микрофоны"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "category": null
                },
                {
                    "id": 1018,
                    "count": 1,
                    "inventory": {
                        "id": 79419,
                        "title": "Велосипед Stinger Caiman D 29",
                        "article_number": "015",
                        "rent_number": "5",
                        "category": {
                            "id": 443546,
                            "title": "Велосипеды",
                            "parent_id": null,
                            "sum_deposit": 0,
                            "prices": [],
                            "children": [],
                            "discounts": []
                        },
                        "state": null,
                        "prices": [
                            {
                                "id": 11832,
                                "title": "Велосипеды 2"
                            }
                        ],
                        "another": 0,
                        "children_count": 5,
                        "is_group": true
                    },
                    "category": null
                }
            ]
        }
    ],
    "links": {
        "first": "http://api.rentinhand.ru/v2/kit?page=1",
        "last": "http://api.rentinhand.ru/v2/kit?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "http://api.rentinhand.ru/v2/kit?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "http://api.rentinhand.ru/v2/kit",
        "per_page": 100,
        "to": 2,
        "total": 2,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/kit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: kit

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/kit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"prices\": [
        17
    ],
    \"article_number\": \"consequatur\",
    \"rent_number\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"category_resource_id\": 17,
    \"option\": \"consequatur\",
    \"objects\": [
        {
            \"inventory_id\": 17,
            \"category_id\": 17,
            \"count\": 17
        }
    ],
    \"media\": [
        {
            \"media_id\": 17,
            \"resource_id\": 17,
            \"order_id\": 17,
            \"dict_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "prices": [
        17
    ],
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "category_resource_id": 17,
    "option": "consequatur",
    "objects": [
        {
            "inventory_id": 17,
            "category_id": 17,
            "count": 17
        }
    ],
    "media": [
        {
            "media_id": 17,
            "resource_id": 17,
            "order_id": 17,
            "dict_id": 17
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'prices' => [
                17,
            ],
            'article_number' => 'consequatur',
            'rent_number' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'category_resource_id' => 17,
            'option' => 'consequatur',
            'objects' => [
                [
                    'inventory_id' => 17,
                    'category_id' => 17,
                    'count' => 17,
                ],
            ],
            'media' => [
                [
                    'media_id' => 17,
                    'resource_id' => 17,
                    'order_id' => 17,
                    'dict_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit'
payload = {
    "title": "consequatur",
    "prices": [
        17
    ],
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "category_resource_id": 17,
    "option": "consequatur",
    "objects": [
        {
            "inventory_id": 17,
            "category_id": 17,
            "count": 17
        }
    ],
    "media": [
        {
            "media_id": 17,
            "resource_id": 17,
            "order_id": 17,
            "dict_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/kit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

prices   integer[]     
article_number   string  optional    

Example: consequatur

rent_number   string  optional    

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

category_resource_id   integer  optional    

Example: 17

option   string  optional    

Example: consequatur

media   object[]  optional    
media_id   integer  optional    

Example: 17

resource_id   integer  optional    

Example: 17

order_id   integer  optional    

Example: 17

dict_id   integer  optional    

Example: 17

objects   object[]     
inventory_id   integer  optional    

Example: 17

category_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Получить: kit (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/kit/3" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit/3"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit/3';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit/3'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 740,
        "title": "ымвысвыс",
        "article_number": null,
        "rent_number": null,
        "category": null,
        "objects": [
            {
                "id": 1017,
                "count": 1,
                "inventory": {
                    "id": 84373,
                    "title": "сввы",
                    "article_number": null,
                    "rent_number": null,
                    "category": null,
                    "state": {
                        "id": 5706,
                        "title": "Свободен",
                        "const": "FREE",
                        "color": "#ffffff",
                        "text_color": "#000000"
                    },
                    "prices": [
                        {
                            "id": 8318,
                            "title": "4 день бесплатно"
                        },
                        {
                            "id": 9459,
                            "title": "Микрофоны"
                        }
                    ],
                    "another": 0,
                    "children_count": 0,
                    "is_group": false
                },
                "category": null
            },
            {
                "id": 1018,
                "count": 1,
                "inventory": {
                    "id": 79419,
                    "title": "Велосипед Stinger Caiman D 29",
                    "article_number": "015",
                    "rent_number": "5",
                    "category": {
                        "id": 443546,
                        "title": "Велосипеды",
                        "parent_id": null,
                        "sum_deposit": 0,
                        "prices": [],
                        "children": [],
                        "discounts": []
                    },
                    "state": null,
                    "prices": [
                        {
                            "id": 11832,
                            "title": "Велосипеды 2"
                        }
                    ],
                    "another": 0,
                    "children_count": 5,
                    "is_group": true
                },
                "category": null
            }
        ]
    }
}
 

Запрос      

GET v2/kit/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the kit. Example: 3

Обновить: kit (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/kit/3" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"prices\": [
        17
    ],
    \"article_number\": \"consequatur\",
    \"rent_number\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"category_resource_id\": 17,
    \"option\": \"consequatur\",
    \"objects\": [
        {
            \"id\": 17,
            \"inventory_id\": 17,
            \"category_id\": 17,
            \"count\": 17
        }
    ],
    \"media\": [
        {
            \"media_id\": 17,
            \"resource_id\": 17,
            \"order_id\": 17,
            \"dict_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit/3"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "prices": [
        17
    ],
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "category_resource_id": 17,
    "option": "consequatur",
    "objects": [
        {
            "id": 17,
            "inventory_id": 17,
            "category_id": 17,
            "count": 17
        }
    ],
    "media": [
        {
            "media_id": 17,
            "resource_id": 17,
            "order_id": 17,
            "dict_id": 17
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit/3';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'prices' => [
                17,
            ],
            'article_number' => 'consequatur',
            'rent_number' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'category_resource_id' => 17,
            'option' => 'consequatur',
            'objects' => [
                [
                    'id' => 17,
                    'inventory_id' => 17,
                    'category_id' => 17,
                    'count' => 17,
                ],
            ],
            'media' => [
                [
                    'media_id' => 17,
                    'resource_id' => 17,
                    'order_id' => 17,
                    'dict_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit/3'
payload = {
    "id": 17,
    "title": "consequatur",
    "prices": [
        17
    ],
    "article_number": "consequatur",
    "rent_number": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "category_resource_id": 17,
    "option": "consequatur",
    "objects": [
        {
            "id": 17,
            "inventory_id": 17,
            "category_id": 17,
            "count": 17
        }
    ],
    "media": [
        {
            "media_id": 17,
            "resource_id": 17,
            "order_id": 17,
            "dict_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1038,
        "title": "test123",
        "article_number": "123123",
        "rent_number": "123123",
        "option": [
            {
                "title": "asd",
                "value": "asd"
            },
            {
                "title": "dsa",
                "value": "dsa"
            }
        ],
        "objects": [
            {
                "id": 1774,
                "count": 3,
                "inventory": {
                    "id": 236118,
                    "title": "чехол +зарядник",
                    "article_number": null,
                    "description": null,
                    "rent_number": null,
                    "category": null,
                    "state": null,
                    "prices": [
                        {
                            "id": 20480,
                            "title": "тестовый тариф"
                        }
                    ],
                    "another": 0,
                    "children_count": 3,
                    "is_group": true
                },
                "category": null
            },
            {
                "id": 1782,
                "count": 2,
                "inventory": null,
                "category": {
                    "id": 1081977,
                    "title": "ролики детские",
                    "parent_id": 1081976,
                    "sum_deposit": 0,
                    "prices": [],
                    "children": [],
                    "discounts": []
                }
            }
        ],
        "prices": [
            {
                "id": 14495,
                "title": "Gogogoho"
            }
        ]
    }
}
 

Запрос      

PUT v2/kit/{id}

PATCH v2/kit/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the kit. Example: 3

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

prices   integer[]     
article_number   string  optional    

Example: consequatur

rent_number   string  optional    

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

category_resource_id   integer  optional    

Example: 17

option   string  optional    

Example: consequatur

media   object[]  optional    
media_id   integer  optional    

Example: 17

resource_id   integer  optional    

Example: 17

order_id   integer  optional    

Example: 17

dict_id   integer  optional    

Example: 17

objects   object[]     
id   integer  optional    

Example: 17

inventory_id   integer  optional    

Example: 17

category_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Удалить: kit (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/kit/3" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/kit/3"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/kit/3';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/kit/3'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/kit/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the kit. Example: 3

Категории

Список: category/product/flat

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/category/product/flat" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/product/flat"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/product/flat';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/product/flat'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/category/product/flat

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: category/product/multi-edit

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/category/product/multi-edit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"delete\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/product/multi-edit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "delete": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/product/multi-edit';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'delete' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/product/multi-edit'
payload = {
    "delete": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


[]
 

Запрос      

POST v2/category/product/multi-edit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

add   string[]  optional    
delete   integer[]  optional    

Создать: category/product/clear

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/category/product/clear" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/product/clear"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/product/clear';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/product/clear'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/category/product/clear

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Список: category/product

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/category/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/product';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/product'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 438110,
            "title": "Запчасти для телефонов",
            "parent_id": null,
            "children": [
                {
                    "id": 438111,
                    "title": "Чехлы",
                    "parent_id": 438110,
                    "children": []
                },
                {
                    "id": 438112,
                    "title": "Стекла",
                    "parent_id": 438110,
                    "children": []
                }
            ]
        },
        {
            "id": 438114,
            "title": "Запчасти для ноутбуков",
            "parent_id": null,
            "children": [
                {
                    "id": 438115,
                    "title": "Зарядные устройства",
                    "parent_id": 438114,
                    "children": []
                }
            ]
        }
    ],
    "meta": {
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/category/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Список: category/inventory/flat

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/category/inventory/flat" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/inventory/flat"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/inventory/flat';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/inventory/flat'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 443442,
            "title": "Ролики",
            "parent_id": null,
            "sum_deposit": 0,
            "discounts": []
        },
        {
            "id": 443546,
            "title": "Велосипеды",
            "parent_id": null,
            "sum_deposit": 0,
            "discounts": []
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/category/inventory/flat?page=1",
        "last": "https://api.rentinhand.ru/v2/category/inventory/flat?page=2",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/category/inventory/flat?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/category/inventory/flat?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/category/inventory/flat",
        "per_page": 10,
        "to": 10,
        "total": 18,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/category/inventory/flat

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: category/inventory/multi-edit

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/category/inventory/multi-edit" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"delete\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/inventory/multi-edit"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "delete": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/inventory/multi-edit';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'delete' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/inventory/multi-edit'
payload = {
    "delete": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


[]
 

Запрос      

POST v2/category/inventory/multi-edit

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

add   string[]  optional    
delete   integer[]  optional    

Создать: category/inventory/clear

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/category/inventory/clear" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/inventory/clear"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/inventory/clear';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/inventory/clear'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/category/inventory/clear

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Список: category/inventory

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/category/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/category/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/category/inventory';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/category/inventory'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 443442,
            "title": "Ролики",
            "parent_id": null,
            "children": []
        },
        {
            "id": 443546,
            "title": "Велосипеды",
            "parent_id": null,
            "children": []
        }
    ],
    "meta": {
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/category/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Пункты проката

Удалить: point/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/point/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/point/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/point/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/point/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/point/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: point

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/point" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/point"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/point';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/point'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 2599,
            "title": "пункт на суворовском",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/point?page=1",
        "last": "https://api.rentinhand.ru/v2/point?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/point?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/point",
        "per_page": 10,
        "to": 7,
        "total": 7,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/point

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: point

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/point" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"phone\": \"consequatur\",
    \"email\": \"qkunze@example.com\",
    \"website\": \"consequatur\",
    \"place_text\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/point"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "phone": "consequatur",
    "email": "qkunze@example.com",
    "website": "consequatur",
    "place_text": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/point';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'phone' => 'consequatur',
            'email' => 'qkunze@example.com',
            'website' => 'consequatur',
            'place_text' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/point'
payload = {
    "title": "consequatur",
    "phone": "consequatur",
    "email": "qkunze@example.com",
    "website": "consequatur",
    "place_text": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/point

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

phone   string  optional    

Example: consequatur

email   string  optional    

Example: qkunze@example.com

website   string  optional    

Example: consequatur

place_text   string  optional    

Example: consequatur

Получить: point (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/point/85" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/point/85"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/point/85';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/point/85'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 2599,
        "title": "пункт на суворовском",
        "email": null,
        "website": null,
        "phone": "+79990000000",
        "place_text": null
    }
}
 

Запрос      

GET v2/point/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the point. Example: 85

Обновить: point (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/point/85" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"phone\": \"consequatur\",
    \"email\": \"qkunze@example.com\",
    \"website\": \"consequatur\",
    \"place_text\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/point/85"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "phone": "consequatur",
    "email": "qkunze@example.com",
    "website": "consequatur",
    "place_text": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/point/85';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'phone' => 'consequatur',
            'email' => 'qkunze@example.com',
            'website' => 'consequatur',
            'place_text' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/point/85'
payload = {
    "id": 17,
    "title": "consequatur",
    "phone": "consequatur",
    "email": "qkunze@example.com",
    "website": "consequatur",
    "place_text": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 2912,
        "title": "Тест_222",
        "email": "user@example.com",
        "website": "example2.com",
        "phone": "+79990000000",
        "place_text": "Полный адрес 222"
    }
}
 

Запрос      

PUT v2/point/{id}

PATCH v2/point/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the point. Example: 85

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

phone   string  optional    

Example: consequatur

email   string  optional    

Example: qkunze@example.com

website   string  optional    

Example: consequatur

place_text   string  optional    

Example: consequatur

Удалить: point (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/point/85" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/point/85"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/point/85';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/point/85'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/point/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the point. Example: 85

Магазин: товары

Список: product/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/product/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/product/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/product/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: product/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/product/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/product/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/product/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: product

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 1539,
            "title": "комп",
            "description": null,
            "count": 1,
            "buy_date": null,
            "buy_price": 0,
            "artule": null,
            "price": 12111,
            "point": {
                "id": 1276,
                "title": "КПД Краснодар",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "discounts": [],
            "created_at": "2023-03-15T14:35:53.000000Z",
            "updated_at": "2023-03-15T14:35:53.000000Z"
        },
        {
            "id": 1606,
            "title": "27",
            "description": null,
            "count": 0,
            "buy_date": null,
            "buy_price": 0,
            "artule": null,
            "price": 4000,
            "point": {
                "id": 1276,
                "title": "КПД Краснодар",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "discounts": [],
            "created_at": "2023-03-27T15:41:30.000000Z",
            "updated_at": "2023-04-05T18:36:42.000000Z"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/product?page=1",
        "last": "https://api.rentinhand.ru/v2/product?page=2",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/product?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/product?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/product",
        "per_page": 10,
        "to": 10,
        "total": 13,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: product

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"count\": 17,
    \"point_id\": 17,
    \"artule\": \"consequatur\",
    \"price\": \"consequatur\",
    \"category_resource_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "count": 17,
    "point_id": 17,
    "artule": "consequatur",
    "price": "consequatur",
    "category_resource_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'count' => 17,
            'point_id' => 17,
            'artule' => 'consequatur',
            'price' => 'consequatur',
            'category_resource_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product'
payload = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "count": 17,
    "point_id": 17,
    "artule": "consequatur",
    "price": "consequatur",
    "category_resource_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

count   integer     

Example: 17

buy_date   string  optional    
buy_price   string  optional    
point_id   integer  optional    

Example: 17

artule   string  optional    

Example: consequatur

price   string     

Example: consequatur

category_resource_id   integer  optional    

Example: 17

media   object  optional    

Получить: product (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/product/184" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/product/184"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product/184';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product/184'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1539,
        "title": "комп",
        "description": null,
        "count": 1,
        "buy_date": null,
        "buy_price": 0,
        "artule": null,
        "price": 12111,
        "point": {
            "id": 1276,
            "title": "КПД Краснодар",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "discounts": [],
        "created_at": "2023-03-15T14:35:53.000000Z",
        "updated_at": "2023-03-15T14:35:53.000000Z"
    }
}
 

Запрос      

GET v2/product/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the product. Example: 184

Обновить: product (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/product/184" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"count\": 17,
    \"point_id\": 17,
    \"artule\": \"consequatur\",
    \"price\": \"consequatur\",
    \"category_resource_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/product/184"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "count": 17,
    "point_id": 17,
    "artule": "consequatur",
    "price": "consequatur",
    "category_resource_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product/184';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'count' => 17,
            'point_id' => 17,
            'artule' => 'consequatur',
            'price' => 'consequatur',
            'category_resource_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product/184'
payload = {
    "id": 17,
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "count": 17,
    "point_id": 17,
    "artule": "consequatur",
    "price": "consequatur",
    "category_resource_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1638,
        "title": "комп",
        "description": "кампутир",
        "count": 5,
        "buy_date": null,
        "buy_price": 200,
        "artule": null,
        "price": 200,
        "point": {
            "id": 1276,
            "title": "КПД Краснодар",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "discounts": [],
        "created_at": "2023-04-29T18:39:12.000000Z",
        "updated_at": "2023-04-29T18:40:48.000000Z"
    }
}
 

Запрос      

PUT v2/product/{id}

PATCH v2/product/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the product. Example: 184

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

count   integer     

Example: 17

buy_date   string  optional    
buy_price   string  optional    
point_id   integer  optional    

Example: 17

artule   string  optional    

Example: consequatur

price   string     

Example: consequatur

category_resource_id   integer  optional    

Example: 17

media   object  optional    

Удалить: product (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/product/184" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/product/184"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/product/184';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/product/184'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/product/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the product. Example: 184

Магазин: продажи

Список: stock/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/stock/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/stock/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: stock/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/stock/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: stock

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/stock" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 1711,
            "sum": 4000,
            "sum_real": 4000,
            "sum_discount": 0,
            "sum_product": 4000,
            "sum_total": 4000,
            "sum_additional_service": 0,
            "payed": 0,
            "time_fact_end": "2023-04-05T18:36:41.000000Z",
            "comment": null,
            "order_number": 14,
            "order_number_text": "14",
            "shift_id": 20412,
            "human": {
                "id": 46809,
                "guid": "829358e0-9ad8-11ec-9bfa-23847fbe625d",
                "surname": "Иванов",
                "name": "Иван",
                "patro": "Иванович",
                "short_fio": null,
                "avatar_fio": null,
                "birthday": null,
                "fio": "Иванов Иван Иванович",
                "avatar": null
            },
            "admin_user": {
                "id": 3805,
                "login": "test"
            },
            "products": [
                {
                    "id": 3525,
                    "count": 1,
                    "price": 4000,
                    "sum_discount": 0,
                    "sum_total": 4000,
                    "sum_product": 0,
                    "product": {
                        "id": 1606,
                        "title": "27",
                        "description": null,
                        "count": 0,
                        "buy_date": null,
                        "buy_price": 0,
                        "artule": null,
                        "price": 4000,
                        "point": {
                            "id": 1276,
                            "title": "КПД Краснодар",
                            "email": null,
                            "website": null,
                            "phone": "+79990000000",
                            "place_text": null
                        },
                        "discounts": [],
                        "created_at": "2023-03-27T15:41:30.000000Z",
                        "updated_at": "2023-04-05T18:36:42.000000Z"
                    },
                    "resource_id": 707144,
                    "created_at": "2023-04-05T18:36:42.000000Z",
                    "updated_at": "2023-04-05T18:36:42.000000Z"
                }
            ],
            "additional_services": [],
            "discounts": [],
            "created_at": "2023-04-05T18:36:42.000000Z",
            "updated_at": "2023-04-05T18:36:42.000000Z"
        },
        {
            "id": 1072,
            "sum": 3500,
            "sum_real": 3500,
            "sum_discount": 0,
            "sum_product": 3000,
            "sum_total": 0,
            "sum_additional_service": 0,
            "payed": 0,
            "time_fact_end": "2022-07-27T14:14:25.000000Z",
            "comment": "Доставка по адресу: Садовая 118Б кв 5, домофон 005В",
            "order_number": 4,
            "order_number_text": "4",
            "shift_id": 14007,
            "human": {
                "id": 32987,
                "guid": "5e6d5660-f91f-11eb-9d01-2f356bb0265f",
                "surname": "Иванов",
                "name": "Иван",
                "patro": "Иванович",
                "short_fio": null,
                "avatar_fio": null,
                "birthday": "1990-01-15",
                "fio": "Иванов Иван Иванович",
                "avatar": null
            },
            "admin_user": {
                "id": 3805,
                "login": "test"
            },
            "point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "products": [
                {
                    "id": 2470,
                    "count": 3,
                    "price": 1000,
                    "sum_discount": 0,
                    "sum_total": 3000,
                    "sum_product": 0,
                    "product": {
                        "id": 1071,
                        "title": "Зарядные устройства",
                        "description": null,
                        "count": 94,
                        "buy_date": null,
                        "buy_price": 0,
                        "artule": null,
                        "price": 1000,
                        "point": {
                            "id": 618,
                            "title": "Пункт проката на Суворова",
                            "email": null,
                            "website": null,
                            "phone": "+79990000000",
                            "place_text": null
                        },
                        "discounts": [],
                        "created_at": "2022-07-27T13:54:27.000000Z",
                        "updated_at": "2023-03-11T07:58:17.000000Z"
                    },
                    "resource_id": 438233,
                    "created_at": "2022-07-27T14:14:26.000000Z",
                    "updated_at": "2022-07-27T14:14:26.000000Z"
                }
            ],
            "additional_services": [
                {
                    "id": 5929,
                    "inventory_id": null,
                    "resource_id": 438233,
                    "inventory": null,
                    "replace_inventory_id": null,
                    "sum": "500",
                    "sum_one": null,
                    "sum_inventory": null,
                    "sum_broken": null,
                    "sum_service": null,
                    "sum_discount": null,
                    "sum_total": null,
                    "sum_amount_payment": null
                }
            ],
            "discounts": [],
            "created_at": "2022-07-27T14:14:26.000000Z",
            "updated_at": "2022-07-27T14:14:26.000000Z"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/stock?page=1",
        "last": "https://api.rentinhand.ru/v2/stock?page=2",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/stock?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/stock?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/stock",
        "per_page": 10,
        "to": 10,
        "total": 14,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/stock

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: stock

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/stock" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"sum\": 17,
    \"payed\": 17,
    \"sum_product\": 17,
    \"sum_additional_service\": 17,
    \"sum_real\": 17,
    \"sum_discount\": 17,
    \"human_id\": 17,
    \"admin_user_id\": 17,
    \"shift_id\": 17,
    \"point_id\": 17,
    \"comment\": \"consequatur\",
    \"currency_id\": 17,
    \"additional_services\": {
        \"additional_service_id\": 17,
        \"price\": 17,
        \"sum\": 17,
        \"count\": 17
    },
    \"discounts\": {
        \"discount_id\": 17
    },
    \"payments\": {
        \"value\": 17,
        \"pay_type_id\": 17,
        \"point_id\": 17,
        \"admin_user_id\": 17
    }
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sum": 17,
    "payed": 17,
    "sum_product": 17,
    "sum_additional_service": 17,
    "sum_real": 17,
    "sum_discount": 17,
    "human_id": 17,
    "admin_user_id": 17,
    "shift_id": 17,
    "point_id": 17,
    "comment": "consequatur",
    "currency_id": 17,
    "additional_services": {
        "additional_service_id": 17,
        "price": 17,
        "sum": 17,
        "count": 17
    },
    "discounts": {
        "discount_id": 17
    },
    "payments": {
        "value": 17,
        "pay_type_id": 17,
        "point_id": 17,
        "admin_user_id": 17
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sum' => 17,
            'payed' => 17,
            'sum_product' => 17,
            'sum_additional_service' => 17,
            'sum_real' => 17,
            'sum_discount' => 17,
            'human_id' => 17,
            'admin_user_id' => 17,
            'shift_id' => 17,
            'point_id' => 17,
            'comment' => 'consequatur',
            'currency_id' => 17,
            'additional_services' => [
                'additional_service_id' => 17,
                'price' => 17,
                'sum' => 17,
                'count' => 17,
            ],
            'discounts' => [
                'discount_id' => 17,
            ],
            'payments' => [
                'value' => 17,
                'pay_type_id' => 17,
                'point_id' => 17,
                'admin_user_id' => 17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock'
payload = {
    "sum": 17,
    "payed": 17,
    "sum_product": 17,
    "sum_additional_service": 17,
    "sum_real": 17,
    "sum_discount": 17,
    "human_id": 17,
    "admin_user_id": 17,
    "shift_id": 17,
    "point_id": 17,
    "comment": "consequatur",
    "currency_id": 17,
    "additional_services": {
        "additional_service_id": 17,
        "price": 17,
        "sum": 17,
        "count": 17
    },
    "discounts": {
        "discount_id": 17
    },
    "payments": {
        "value": 17,
        "pay_type_id": 17,
        "point_id": 17,
        "admin_user_id": 17
    }
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/stock

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

sum   integer  optional    

Example: 17

payed   integer  optional    

Example: 17

sum_product   integer  optional    

Example: 17

sum_additional_service   integer  optional    

Example: 17

sum_real   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

admin_user_id   integer  optional    

Example: 17

shift_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

currency_id   integer     

Example: 17

additional_services   object  optional    
additional_service_id   integer  optional    

Example: 17

price   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

count   integer  optional    

Example: 17

discounts   object  optional    
discount_id   integer  optional    

Example: 17

payments   object  optional    
date   string  optional    
value   integer  optional    

Example: 17

pay_type_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

admin_user_id   integer  optional    

Example: 17

Получить: stock (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/stock/574" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/574"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/574';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/574'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1072,
        "sum": 3500,
        "sum_real": 3500,
        "sum_discount": 0,
        "sum_product": 3000,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "time_fact_end": "2022-07-27T14:14:25.000000Z",
        "comment": "Доставка по адресу: Садовая 118Б кв 5, домофон 005В",
        "order_number": 4,
        "order_number_text": "4",
        "shift_id": 14007,
        "human": {
            "id": 32987,
            "guid": "5e6d5660-f91f-11eb-9d01-2f356bb0265f",
            "surname": "Иванов",
            "name": "Иван",
            "patro": "Иванович",
            "short_fio": null,
            "avatar_fio": null,
            "birthday": "1990-01-15",
            "fio": "Иванов Иван Иванович",
            "avatar": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "products": [
            {
                "id": 2470,
                "count": 3,
                "price": 1000,
                "sum_discount": 0,
                "sum_total": 3000,
                "sum_product": 0,
                "product": {
                    "id": 1071,
                    "title": "Зарядные устройства",
                    "description": null,
                    "count": 94,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 1000,
                    "point": {
                        "id": 618,
                        "title": "Пункт проката на Суворова",
                        "email": null,
                        "website": null,
                        "phone": "+79990000000",
                        "place_text": null
                    },
                    "discounts": [],
                    "created_at": "2022-07-27T13:54:27.000000Z",
                    "updated_at": "2023-03-11T07:58:17.000000Z"
                },
                "resource_id": 438233,
                "created_at": "2022-07-27T14:14:26.000000Z",
                "updated_at": "2022-07-27T14:14:26.000000Z"
            }
        ],
        "additional_services": [
            {
                "id": 5929,
                "inventory_id": null,
                "resource_id": 438233,
                "inventory": null,
                "replace_inventory_id": null,
                "sum": "500",
                "sum_one": null,
                "sum_inventory": null,
                "sum_broken": null,
                "sum_service": null,
                "sum_discount": null,
                "sum_total": null,
                "sum_amount_payment": null
            }
        ],
        "discounts": [],
        "created_at": "2022-07-27T14:14:26.000000Z",
        "updated_at": "2022-07-27T14:14:26.000000Z"
    }
}
 

Запрос      

GET v2/stock/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the stock. Example: 574

Обновить: stock (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/574" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"sum\": 17,
    \"payed\": 17,
    \"sum_product\": 17,
    \"sum_additional_service\": 17,
    \"sum_real\": 17,
    \"sum_discount\": 17,
    \"human_id\": 17,
    \"admin_user_id\": 17,
    \"shift_id\": 17,
    \"point_id\": 17,
    \"comment\": \"consequatur\",
    \"currency_id\": 17,
    \"additional_services\": {
        \"additional_service_id\": 17,
        \"price\": 17,
        \"sum\": 17,
        \"count\": 17
    },
    \"discounts\": {
        \"discount_id\": 17
    },
    \"payments\": {
        \"value\": 17,
        \"pay_type_id\": 17,
        \"point_id\": 17,
        \"admin_user_id\": 17
    }
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/574"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "sum": 17,
    "payed": 17,
    "sum_product": 17,
    "sum_additional_service": 17,
    "sum_real": 17,
    "sum_discount": 17,
    "human_id": 17,
    "admin_user_id": 17,
    "shift_id": 17,
    "point_id": 17,
    "comment": "consequatur",
    "currency_id": 17,
    "additional_services": {
        "additional_service_id": 17,
        "price": 17,
        "sum": 17,
        "count": 17
    },
    "discounts": {
        "discount_id": 17
    },
    "payments": {
        "value": 17,
        "pay_type_id": 17,
        "point_id": 17,
        "admin_user_id": 17
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/574';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'sum' => 17,
            'payed' => 17,
            'sum_product' => 17,
            'sum_additional_service' => 17,
            'sum_real' => 17,
            'sum_discount' => 17,
            'human_id' => 17,
            'admin_user_id' => 17,
            'shift_id' => 17,
            'point_id' => 17,
            'comment' => 'consequatur',
            'currency_id' => 17,
            'additional_services' => [
                'additional_service_id' => 17,
                'price' => 17,
                'sum' => 17,
                'count' => 17,
            ],
            'discounts' => [
                'discount_id' => 17,
            ],
            'payments' => [
                'value' => 17,
                'pay_type_id' => 17,
                'point_id' => 17,
                'admin_user_id' => 17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/574'
payload = {
    "id": 17,
    "sum": 17,
    "payed": 17,
    "sum_product": 17,
    "sum_additional_service": 17,
    "sum_real": 17,
    "sum_discount": 17,
    "human_id": 17,
    "admin_user_id": 17,
    "shift_id": 17,
    "point_id": 17,
    "comment": "consequatur",
    "currency_id": 17,
    "additional_services": {
        "additional_service_id": 17,
        "price": 17,
        "sum": 17,
        "count": 17
    },
    "discounts": {
        "discount_id": 17
    },
    "payments": {
        "value": 17,
        "pay_type_id": 17,
        "point_id": 17,
        "admin_user_id": 17
    }
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/stock/{id}

PATCH v2/stock/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the stock. Example: 574

Параметры тела

id   integer     

Example: 17

sum   integer  optional    

Example: 17

payed   integer  optional    

Example: 17

sum_product   integer  optional    

Example: 17

sum_additional_service   integer  optional    

Example: 17

sum_real   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

admin_user_id   integer  optional    

Example: 17

shift_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

currency_id   integer     

Example: 17

additional_services   object  optional    
additional_service_id   integer  optional    

Example: 17

price   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

count   integer  optional    

Example: 17

discounts   object  optional    
discount_id   integer  optional    

Example: 17

payments   object  optional    
date   string  optional    
value   integer  optional    

Example: 17

pay_type_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

admin_user_id   integer  optional    

Example: 17

Удалить: stock (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/574" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/574"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/574';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/574'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/stock/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the stock. Example: 574

Магазин: конструктор продажи

Создать: stock/builder/prepare (по id)

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/stock/builder/prepare/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"currency_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/prepare/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "currency_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/prepare/consequatur';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'currency_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/prepare/consequatur'
payload = {
    "currency_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/stock/builder/prepare/{stockId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

stockId   string     

Example: consequatur

Параметры тела

currency_id   integer  optional    

Example: 17

Создать: stock/builder/prepare

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/stock/builder/prepare" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"currency_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/prepare"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "currency_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/prepare';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'currency_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/prepare'
payload = {
    "currency_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "status": "OK",
    "stockSessionKey": "StockSessionKey1",
    "stock": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

POST v2/stock/builder/prepare

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

currency_id   integer  optional    

Example: 17

Создать: stock/builder/save

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/save" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/save"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/save';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/save'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/stock/builder/{sessionKey}/save

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Обновить: stock/builder/add/client (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/client/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/client/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/client/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/client/consequatur'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "comment": "",
        "shift": null,
        "human": {
            "id": 46760,
            "avatar": null,
            "avatar_fio": "фи",
            "guid": "a8071460-9a21-11ec-b3e3-0d1f19368ef3",
            "is_admin": false,
            "is_client": true,
            "is_director": false,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": "21",
            "sms_flag": false,
            "birthday": null,
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/add/client/{humanId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

humanId   string     

Example: consequatur

Обновить: stock/builder/add/product

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"product_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "product_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/product';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'product_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/product'
payload = {
    "id": 17,
    "product_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 100,
        "sum_real": 100,
        "sum_discount": 0,
        "sum_product": 100,
        "sum_total": 100,
        "sum_additional_service": 0,
        "payed": 123,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [
            {
                "id": null,
                "product": {
                    "id": 1121,
                    "title": "шестеренки",
                    "description": null,
                    "count": 1,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 100,
                    "discounts": [],
                    "created_at": "2022-09-07T12:26:18.000000Z",
                    "updated_at": "2023-02-24T14:28:50.000000Z"
                },
                "resource_id": null,
                "count": 1,
                "price": 100,
                "sum_discount": 0,
                "sum_total": 100,
                "discount": null,
                "sum_product": 100
            }
        ],
        "additional_services": [],
        "discounts": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-08 23:35:17",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24146,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-08 14:06:14",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ]
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/add/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

product_id   integer     

Example: 17

count   integer  optional    

Example: 17

Обновить: stock/builder/add/service

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"additional_service_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "additional_service_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/service';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'additional_service_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/service'
payload = {
    "id": 17,
    "additional_service_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 400,
        "sum_real": 400,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 400,
        "sum_additional_service": 400,
        "payed": 0,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "description": null,
                    "price": [],
                    "artule": null,
                    "category_resource_id": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "created_at": "2021-07-09T18:53:55+0000",
                    "updated_at": "2021-09-21T09:47:58+0000",
                    "deleted_at": null
                },
                "resource_id": null,
                "sum": 400,
                "price": 400,
                "count": 1
            }
        ],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/add/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

additional_service_id   integer     

Example: 17

count   integer  optional    

Example: 17

Обновить: stock/builder/add/payment

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/payment" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"value\": \"consequatur\",
    \"pay_type_id\": 17,
    \"payment_date\": \"2026-09-29T17:13:49+03:00\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/payment"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "value": "consequatur",
    "pay_type_id": 17,
    "payment_date": "2026-09-29T17:13:49+03:00"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/payment';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'value' => 'consequatur',
            'pay_type_id' => 17,
            'payment_date' => '2026-09-29T17:13:49+03:00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/payment'
payload = {
    "id": 17,
    "value": "consequatur",
    "pay_type_id": 17,
    "payment_date": "2026-09-29T17:13:49+03:00"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 123,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-08 23:35:17",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24146,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-08 14:06:14",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ]
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/add/payment

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

value   string     

Example: consequatur

pay_type_id   integer     

Example: 17

payment_date   string     

Must be a valid date. Must be a valid date in the format Y-m-d\TH:i:sP. Example: 2026-09-29T17:13:49+03:00

Обновить: stock/builder/add/discount/promocode

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/promocode" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"promocode\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/promocode"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "promocode": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/promocode';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'promocode' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/promocode'
payload = {
    "promocode": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/stock/builder/{sessionKey}/add/discount/promocode

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

promocode   string     

Example: consequatur

Обновить: stock/builder/add/discount/custom

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/custom" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/custom"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/custom';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/discount/custom'
payload = {
    "value": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 100,
        "sum_discount": 100,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "comment": "",
        "shift": {
            "id": 24150,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2023-07-11 08:44:01",
            "time_end": null,
            "is_real": 1,
            "comment": null
        },
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 1382,
                    "created_at": "2022-01-26T06:43:52+0000",
                    "updated_at": "2022-01-26T06:43:52+0000",
                    "title": "Наценка 100",
                    "description": null,
                    "discount_type_id": 1,
                    "value": 100,
                    "discount_repeat_type_id": null,
                    "promocode": "+100                                              ",
                    "only_promo": true,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "payments": []
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/add/discount/custom

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

value   string     

Example: consequatur

Обновить: stock/builder/add/config

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/config" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"consequatur\",
    \"admin_user_id\": 17,
    \"point_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/add/config"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "comment": "consequatur",
    "admin_user_id": 17,
    "point_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/config';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'comment' => 'consequatur',
            'admin_user_id' => 17,
            'point_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/add/config'
payload = {
    "comment": "consequatur",
    "admin_user_id": 17,
    "point_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "comment": "Нереальный комментарий",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": {
            "id": 2599,
            "title": "пункт на суворовском",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/add/config

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

comment   string  optional    

Example: consequatur

admin_user_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

Обновить: stock/builder/update/product

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/update/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/update/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/update/product';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/update/product'
payload = {
    "product_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 12000,
        "sum_real": 13200,
        "sum_discount": 1200,
        "sum_product": 10000,
        "sum_total": 12000,
        "sum_additional_service": 2000,
        "payed": 123,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "comment": "Нереальный комментарий",
        "shift": {
            "id": 24150,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2023-07-11 08:44:01",
            "time_end": null,
            "is_real": 1,
            "comment": null
        },
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [
            {
                "id": null,
                "product": {
                    "id": 1072,
                    "title": "Клавиатура",
                    "description": null,
                    "count": 4,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 5000,
                    "discounts": [
                        {
                            "id": 25,
                            "created_at": "2018-11-22T13:23:13+0000",
                            "updated_at": "2021-04-15T07:43:33+0000",
                            "title": "10%",
                            "description": null,
                            "discount_type_id": 2,
                            "value": 10,
                            "discount_repeat_type_id": null,
                            "promocode": "SALE                                              ",
                            "only_promo": true,
                            "time_start": null,
                            "limits": null,
                            "deleted_at": null,
                            "time_duration": null,
                            "created_user_id": 3805,
                            "updated_user_id": 3805,
                            "deleted_user_id": null,
                            "is_discount": true,
                            "list_type": null,
                            "laravel_through_key": 1072
                        }
                    ],
                    "created_at": "2022-07-28T11:32:15.000000Z",
                    "updated_at": "2023-05-25T08:49:45.000000Z"
                },
                "resource_id": null,
                "count": 2,
                "price": 5000,
                "sum_discount": 1000,
                "sum_total": 10000,
                "discount": {
                    "id": 25,
                    "description": null,
                    "discount_periods": [],
                    "title": "10%",
                    "value": 10,
                    "discount_type": {
                        "id": 2,
                        "title": "Процент от суммы",
                        "icon": "%",
                        "min_value": 1,
                        "max_value": 100,
                        "const": "DISCOUNT_TYPE_PERCENT"
                    },
                    "only_promo": true,
                    "promocode": "SALE                                              ",
                    "limits": null,
                    "time_start": null,
                    "time_duration": null,
                    "is_discount": true
                },
                "sum_product": 9000
            }
        ],
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-13 16:14:51",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 2,
                    "title": "Безналичный расчет",
                    "const": "CARD"
                },
                "point": null,
                "human_shift": {
                    "id": 24150,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-11 08:44:01",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ]
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/update/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

product_id   integer     

Example: 17

count   integer  optional    

Example: 17

Обновить: stock/builder/update/service

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/update/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"additional_service_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/update/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "additional_service_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/update/service';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'additional_service_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/update/service'
payload = {
    "id": 17,
    "additional_service_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 2000,
        "sum_real": 2000,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 2000,
        "sum_additional_service": 2000,
        "payed": 0,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "description": null,
                    "price": [],
                    "artule": null,
                    "category_resource_id": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "created_at": "2021-07-09T18:53:55+0000",
                    "updated_at": "2021-09-21T09:47:58+0000",
                    "deleted_at": null
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

PUT v2/stock/builder/{sessionKey}/update/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

additional_service_id   integer     

Example: 17

count   integer  optional    

Example: 17

Удалить: stock/builder/remove/client

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/client" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/client"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/client';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/client'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

DELETE v2/stock/builder/{sessionKey}/remove/client

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Удалить: stock/builder/remove/product

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/product';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/product'
payload = {
    "product_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/stock/builder/{sessionKey}/remove/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

product_id   integer     

Example: 17

Удалить: stock/builder/remove/service

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"additional_service_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "additional_service_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/service';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'additional_service_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/service'
payload = {
    "additional_service_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "comment": "",
        "shift": null,
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

DELETE v2/stock/builder/{sessionKey}/remove/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

additional_service_id   integer     

Example: 17

Удалить: stock/builder/remove/payment

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/payment" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"consequatur\",
    \"payment_date\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/payment"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "consequatur",
    "payment_date": "consequatur"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/payment';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 'consequatur',
            'payment_date' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/payment'
payload = {
    "value": "consequatur",
    "payment_date": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "comment": "",
        "shift": {
            "id": 24148,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2023-07-09 14:22:49",
            "time_end": null,
            "is_real": 1,
            "comment": null
        },
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

DELETE v2/stock/builder/{sessionKey}/remove/payment

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

value   string     

Example: consequatur

payment_date   string     

Example: consequatur

Удалить: stock/builder/remove/discount

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/discount" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/discount"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/discount';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/stock/builder/consequatur/remove/discount'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "sum_product": 0,
        "sum_total": 0,
        "sum_additional_service": 0,
        "payed": 0,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "comment": "",
        "shift": {
            "id": 24150,
            "human_id": 21848,
            "point_id": null,
            "time_start": "2023-07-11 08:44:01",
            "time_end": null,
            "is_real": 1,
            "comment": null
        },
        "human": null,
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "point": null,
        "products": [],
        "additional_services": [],
        "discounts": [],
        "payments": []
    }
}
 

Запрос      

DELETE v2/stock/builder/{sessionKey}/remove/discount

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Заказы и документы

Список: order/generate

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/order/generate" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/generate"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/generate';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/generate'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/order/generate

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: order/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/order/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/order/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: order/code

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/order/code" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/code"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/code';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/code'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/order/code

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: order/code

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/order/code" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/code"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/code';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/code'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/order/code

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Получить: order/code (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/order/code/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/code/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/code/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/code/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/order/code/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the code. Example: 1

Обновить: order/code (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/order/code/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/code/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/code/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/code/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Запрос      

PUT v2/order/code/{id}

PATCH v2/order/code/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the code. Example: 1

Удалить: order/code (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/order/code/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/code/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/code/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/code/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/order/code/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the code. Example: 1

Список: order

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/order" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 5829,
            "name": "Иван",
            "comment": null,
            "expense_type": {
                "id": 520,
                "title": "Непредвиденные расходы",
                "const": null
            },
            "value": 3000,
            "date": "2023-05-24 00:00:00",
            "inventory": null,
            "point": {
                "id": 1421,
                "title": "Мой пункт проката",
                "email": null,
                "website": null,
                "phone": null,
                "place_text": null
            },
            "inventory_id": null
        },
        {
            "id": 2519,
            "name": "Иван",
            "comment": null,
            "expense_type": {
                "id": 518,
                "title": "Хоз. нужды",
                "const": null
            },
            "value": 5000,
            "date": "2022-09-08 00:00:00",
            "inventory": null,
            "point": null,
            "inventory_id": null
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/expense?page=1",
        "last": "https://api.rentinhand.ru/v2/expense?page=4",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/expense?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 4,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/expense?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/expense",
        "per_page": 10,
        "to": 10,
        "total": 35,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/order

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: order

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/order" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"body\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/order"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "body": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'body' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order'
payload = {
    "title": "consequatur",
    "body": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/order

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

body   string  optional    

Example: consequatur

Получить: order (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/order/2069" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/2069"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/2069';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/2069'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 4351,
        "name": "Иван",
        "comment": null,
        "expense_type": {
            "id": 518,
            "title": "Хоз. нужды",
            "const": null
        },
        "value": 120,
        "date": "2023-02-22 00:00:00",
        "inventory": {
            "id": 139232,
            "title": "проверка больших чисел",
            "article_number": null,
            "rent_number": null,
            "category": null,
            "state": {
                "id": 5706,
                "title": "Свободен",
                "const": "FREE",
                "color": "#BDC3C8",
                "text_color": "#000000"
            },
            "prices": [
                {
                    "id": 70426,
                    "title": null
                }
            ],
            "another": 0,
            "children_count": 0,
            "is_group": false
        },
        "point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "inventory_id": 139232
    }
}
 

Запрос      

GET v2/order/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the order. Example: 2069

Обновить: order (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/order/2069" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"body\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/2069"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "body": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/2069';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'body' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/2069'
payload = {
    "id": 17,
    "title": "consequatur",
    "body": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 5970,
        "name": "Иван",
        "comment": "COMMENT_EDITED",
        "expense_type": {
            "id": 518,
            "title": "Хоз. нужды",
            "const": null
        },
        "value": 120,
        "date": "2023-02-23 00:00:00",
        "inventory": {
            "id": 139232,
            "title": "проверка больших чисел",
            "article_number": null,
            "rent_number": null,
            "category": null,
            "state": {
                "id": 5706,
                "title": "Свободен",
                "const": "FREE",
                "color": "#BDC3C8",
                "text_color": "#000000"
            },
            "prices": [
                {
                    "id": 70426,
                    "title": null
                }
            ],
            "another": 0,
            "children_count": 0,
            "is_group": false
        },
        "point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "inventory_id": 139232
    }
}
 

Запрос      

PUT v2/order/{id}

PATCH v2/order/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the order. Example: 2069

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

body   string  optional    

Example: consequatur

Удалить: order (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/order/2069" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/order/2069"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/order/2069';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/order/2069'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/order/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the order. Example: 2069

Способы оплаты

Удалить: payment-type/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/payment-type/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/payment-type/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/payment-type/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/payment-type/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/payment-type/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: payment-type

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/payment-type" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/payment-type"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/payment-type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/payment-type'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 5,
            "title": "Тестовое название",
            "const": "Тестовая константа"
        },
        {
            "id": 2,
            "title": "Безналичный расчет",
            "const": "CARD"
        }
    ],
    "links": {
        "first": "http://api.rentinhand.ru/v2/payment-type?page=1",
        "last": "http://api.rentinhand.ru/v2/payment-type?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "http://api.rentinhand.ru/v2/payment-type?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "http://api.rentinhand.ru/v2/payment-type",
        "per_page": 10,
        "to": 3,
        "total": 3,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/payment-type

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: payment-type

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/payment-type" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/payment-type"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/payment-type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/payment-type'
payload = {
    "title": "consequatur",
    "const": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/payment-type

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

const   string  optional    

Example: consequatur

Получить: payment-type (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/payment-type/41" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/payment-type/41"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/payment-type/41';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/payment-type/41'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 6,
        "title": "TEST_TYPE",
        "const": null
    }
}
 

Запрос      

GET v2/payment-type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the payment type. Example: 41

Обновить: payment-type (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/payment-type/41" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"const\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/payment-type/41"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "const": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/payment-type/41';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'const' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/payment-type/41'
payload = {
    "id": 17,
    "title": "consequatur",
    "const": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 6,
        "title": "TEST_TYPE_222",
        "const": null
    }
}
 

Запрос      

PUT v2/payment-type/{id}

PATCH v2/payment-type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the payment type. Example: 41

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

const   string  optional    

Example: consequatur

Удалить: payment-type (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/payment-type/41" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/payment-type/41"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/payment-type/41';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/payment-type/41'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/payment-type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the payment type. Example: 41

Скидки

Удалить: discount/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/discount/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/discount/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/discount/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/discount/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/discount/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: discount

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/discount" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/discount"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/discount';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/discount'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 1274,
            "description": null,
            "discount_periods": [],
            "title": "test",
            "value": 100,
            "discount_type": {
                "id": 1,
                "title": "Определенная сумма",
                "icon": "<i class='fa fa-rub'></i>",
                "min_value": 1,
                "max_value": 59000,
                "const": "DISCOUNT_TYPE_PRICE"
            },
            "only_promo": true,
            "promocode": "test                                              ",
            "limits": 0,
            "time_start": null,
            "time_duration": null,
            "is_discount": true
        },
        {
            "id": 1751,
            "description": null,
            "discount_periods": [
                {
                    "id": 230,
                    "time_start": "2022-09-01T21:01:00.000000Z",
                    "time_end": "2022-09-03T20:59:00.000000Z",
                    "discount_repeat_type": {
                        "title": "Ежемесячная",
                        "translate": "words.discount_repeat_type_month",
                        "period": "P1M"
                    }
                },
                {
                    "id": 231,
                    "time_start": "2022-09-01T21:01:00.000000Z",
                    "time_end": "2022-09-03T20:59:00.000000Z",
                    "discount_repeat_type": {
                        "title": "Еженедельная",
                        "translate": "words.discount_repeat_type_week",
                        "period": "P7D"
                    }
                }
            ],
            "title": "за выходные",
            "value": 2000,
            "discount_type": {
                "id": 1,
                "title": "Определенная сумма",
                "icon": "<i class='fa fa-rub'></i>",
                "min_value": 1,
                "max_value": 59000,
                "const": "DISCOUNT_TYPE_PRICE"
            },
            "only_promo": false,
            "promocode": null,
            "limits": 0,
            "time_start": null,
            "time_duration": null,
            "is_discount": true
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/discount?page=1",
        "last": "https://api.rentinhand.ru/v2/discount?page=3",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/discount?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/discount?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/discount",
        "per_page": 10,
        "to": 10,
        "total": 24,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/discount

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: discount

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/discount" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"value\": 11613.31890586,
    \"promocode\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"discount_type_id\": 17,
    \"only_promo\": false,
    \"limits\": 17,
    \"is_discount\": false
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/discount"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "value": 11613.31890586,
    "promocode": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "discount_type_id": 17,
    "only_promo": false,
    "limits": 17,
    "is_discount": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/discount';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'value' => 11613.31890586,
            'promocode' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'discount_type_id' => 17,
            'only_promo' => false,
            'limits' => 17,
            'is_discount' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/discount'
payload = {
    "title": "consequatur",
    "value": 11613.31890586,
    "promocode": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "discount_type_id": 17,
    "only_promo": false,
    "limits": 17,
    "is_discount": false
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/discount

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

value   number     

Example: 11613.31890586

promocode   string  optional    

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

discount_type_id   integer     

Example: 17

only_promo   boolean     

Example: false

limits   integer  optional    

Example: 17

time_start   string  optional    
time_duration   string  optional    
is_discount   boolean     

Example: false

Получить: discount (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/discount/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/discount/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/discount/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/discount/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1154,
        "description": null,
        "discount_periods": [
            {
                "id": 41,
                "time_start": "2021-11-01T03:06:00.000000Z",
                "time_end": "2021-11-01T04:08:00.000000Z",
                "discount_repeat_type": {
                    "title": "Еженедельная",
                    "translate": "words.discount_repeat_type_week",
                    "period": "P7D"
                }
            },
            {
                "id": 42,
                "time_start": "2021-11-02T06:07:00.000000Z",
                "time_end": "2021-11-02T09:07:00.000000Z",
                "discount_repeat_type": {
                    "title": "Еженедельная",
                    "translate": "words.discount_repeat_type_week",
                    "period": "P7D"
                }
            }
        ],
        "title": "Денежный залог",
        "value": 20,
        "discount_type": {
            "id": 2,
            "title": "Процент от суммы",
            "icon": "%",
            "min_value": 1,
            "max_value": 100,
            "const": "DISCOUNT_TYPE_PERCENT"
        },
        "only_promo": false,
        "promocode": null,
        "limits": 0,
        "time_start": null,
        "time_duration": null,
        "is_discount": true
    }
}
 

Запрос      

GET v2/discount/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the discount. Example: 1

Обновить: discount (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/discount/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"value\": 11613.31890586,
    \"promocode\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"discount_type_id\": 17,
    \"only_promo\": false,
    \"limits\": 17,
    \"is_discount\": false,
    \"id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/discount/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "value": 11613.31890586,
    "promocode": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "discount_type_id": 17,
    "only_promo": false,
    "limits": 17,
    "is_discount": false,
    "id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/discount/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'value' => 11613.31890586,
            'promocode' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'discount_type_id' => 17,
            'only_promo' => false,
            'limits' => 17,
            'is_discount' => false,
            'id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/discount/1'
payload = {
    "title": "consequatur",
    "value": 11613.31890586,
    "promocode": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "discount_type_id": 17,
    "only_promo": false,
    "limits": 17,
    "is_discount": false,
    "id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 2122,
        "title": "Пример2222",
        "value": 120,
        "discount_type": {
            "id": 1,
            "title": "Определенная сумма",
            "icon": "<i class='fa fa-rub'></i>",
            "min_value": 1,
            "max_value": 59000,
            "const": "DISCOUNT_TYPE_PRICE"
        },
        "only_promo": 1,
        "promocode": "ПРИМЕР_ПРОМОКОДА                                  ",
        "description": null,
        "limits": 0,
        "time_start": "2022-01-01 09:00:00+00",
        "time_duration": "P1M",
        "is_discount": 1
    }
}
 

Запрос      

PUT v2/discount/{id}

PATCH v2/discount/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the discount. Example: 1

Параметры тела

title   string     

Example: consequatur

value   number     

Example: 11613.31890586

promocode   string  optional    

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

discount_type_id   integer     

Example: 17

only_promo   boolean     

Example: false

limits   integer  optional    

Example: 17

time_start   string  optional    
time_duration   string  optional    
is_discount   boolean     

Example: false

id   integer     

Example: 17

Удалить: discount (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/discount/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/discount/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/discount/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/discount/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/discount/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the discount. Example: 1

Дополнительные услуги

Удалить: service/additional/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/service/additional/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/additional/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/additional/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/additional/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/service/additional/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: service/additional

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/service/additional" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/additional"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/additional';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/additional'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 377,
            "title": "Обучение",
            "price": 400
        },
        {
            "id": 1314,
            "title": "проверка",
            "price": 2000
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/service/additional?page=1",
        "last": "https://api.rentinhand.ru/v2/service/additional?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/service/additional?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/service/additional",
        "per_page": 10,
        "to": 3,
        "total": 3,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/service/additional

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: service/additional

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/service/additional" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"price\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/additional"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "price": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/additional';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'price' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/additional'
payload = {
    "title": "consequatur",
    "price": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/service/additional

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

price   string     

Example: consequatur

Получить: service/additional (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/service/additional/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/additional/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/additional/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/additional/2'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1314,
        "title": "проверка",
        "price": 2000
    }
}
 

Запрос      

GET v2/service/additional/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the additional. Example: 2

Обновить: service/additional (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/service/additional/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"price\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/additional/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "price": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/additional/2';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'price' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/additional/2'
payload = {
    "id": 17,
    "title": "consequatur",
    "price": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1595,
        "title": "ПРИМЕР",
        "price": 2000
    }
}
 

Запрос      

PUT v2/service/additional/{id}

PATCH v2/service/additional/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the additional. Example: 2

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

price   string     

Example: consequatur

Удалить: service/additional (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/service/additional/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/additional/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/additional/2';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/additional/2'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/service/additional/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the additional. Example: 2

Ремонт

Удалить: repair/state/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/state/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/state/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/state/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/state/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/repair/state/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: repair/state

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair/state" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/state"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/state';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/state'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/repair/state

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: repair/state

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/repair/state" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\",
    \"dom_class\": \"consequatur\",
    \"color\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/state"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur",
    "dom_class": "consequatur",
    "color": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/state';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
            'dom_class' => 'consequatur',
            'color' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/state'
payload = {
    "title": "consequatur",
    "const": "consequatur",
    "dom_class": "consequatur",
    "color": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/repair/state

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

const   string  optional    

Example: consequatur

dom_class   string  optional    

Example: consequatur

color   string     

Example: consequatur

Получить: repair/state (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair/state/30678" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/state/30678"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/state/30678';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/state/30678'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/repair/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 30678

Обновить: repair/state (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/state/30678" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\",
    \"dom_class\": \"consequatur\",
    \"color\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/state/30678"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur",
    "dom_class": "consequatur",
    "color": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/state/30678';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
            'dom_class' => 'consequatur',
            'color' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/state/30678'
payload = {
    "title": "consequatur",
    "const": "consequatur",
    "dom_class": "consequatur",
    "color": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/repair/state/{id}

PATCH v2/repair/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 30678

Параметры тела

title   string     

Example: consequatur

const   string  optional    

Example: consequatur

dom_class   string  optional    

Example: consequatur

color   string     

Example: consequatur

Удалить: repair/state (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/state/30678" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/state/30678"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/state/30678';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/state/30678'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/repair/state/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the state. Example: 30678

Список: repair/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/repair/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: repair/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"repairs\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "repairs": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'repairs' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/delete-multiple'
payload = {
    "repairs": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/repair/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

repairs   integer[]     

Итог по единице инвентаря: заявки, работы по ней и поломки в арендах.

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair/summary/inventory/1562" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/summary/inventory/1562"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/summary/inventory/1562';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/summary/inventory/1562'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/repair/summary/inventory/{inventoryId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

inventoryId   string     

Example: 1562

Личный инвентарь клиента по его заявкам, сведённый по единицам.

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair/summary/client/1562" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/summary/client/1562"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/summary/client/1562';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/summary/client/1562'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/repair/summary/client/{humanId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

humanId   string     

Example: 1562

Список: repair

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 131865,
            "sum": 200,
            "sum_real": 200,
            "sum_discount": 0,
            "sum_additional_service": 0,
            "sum_inventory": 0,
            "sum_kit": 0,
            "sum_deposit": 0,
            "need_calc_breaking": true,
            "need_calc_rent_delay": true,
            "payed": 0,
            "fine_time": 0,
            "fine_broken": 0,
            "comment": null,
            "order_number": 473,
            "order_number_text": "473",
            "is_understaffed": false,
            "time_start": "2023-03-21T16:21:00.000000Z",
            "time_end": "2023-03-21T17:23:00.000000Z",
            "time_fact_end": null,
            "open_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "close_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "deposit": null,
            "human": {
                "id": 81083,
                "guid": "10e92be0-9800-11ed-be53-45b74f5cc6ee",
                "surname": "Иванов",
                "name": "Иван",
                "patro": null,
                "short_fio": null,
                "avatar_fio": null,
                "birthday": null,
                "fio": "Иванов Иван Иванович",
                "avatar": null
            },
            "rent_state": {
                "id": 6,
                "title": "words.rent_state_overdue",
                "const": "OVERDUE",
                "dom_class": "rent-state-overdue"
            },
            "inventories": [
                {
                    "id": 316147,
                    "inventory_id": 79420,
                    "resource_id": 686770,
                    "inventory": {
                        "id": 79420,
                        "title": "Роликовые коньки MICRO SHAPER-COMBO",
                        "article_number": "016",
                        "rent_number": "6",
                        "category": {
                            "id": 443442,
                            "title": "Ролики"
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53188,
                                "title": null
                            },
                            {
                                "id": 60195,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "replace_inventory_id": null,
                    "sum": "200",
                    "sum_one": "200",
                    "sum_inventory": "200",
                    "sum_broken": "0",
                    "sum_service": "0",
                    "sum_discount": "0",
                    "sum_total": "200",
                    "sum_amount_payment": "0"
                }
            ],
            "kits": [],
            "additional_services": [],
            "discounts": []
        },
        {
            "id": 105451,
            "sum": 2850,
            "sum_real": 2850,
            "sum_discount": 0,
            "sum_additional_service": 0,
            "sum_inventory": 0,
            "sum_kit": 0,
            "sum_deposit": 0,
            "need_calc_breaking": true,
            "need_calc_rent_delay": false,
            "payed": 0,
            "fine_time": 0,
            "fine_broken": 0,
            "comment": null,
            "order_number": 296,
            "order_number_text": "296",
            "is_understaffed": false,
            "time_start": "2022-09-26T22:34:00.000000Z",
            "time_end": "2022-09-27T21:00:00.000000Z",
            "time_fact_end": "2022-10-05T11:24:51.000000Z",
            "open_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "close_point": {
                "id": 618,
                "title": "Пункт проката на Суворова",
                "email": null,
                "website": null,
                "phone": "+79990000000",
                "place_text": null
            },
            "deposit": null,
            "human": {
                "id": 71843,
                "guid": "7c079610-3ac6-11ed-81d8-b764d603c134",
                "surname": "Иванов",
                "name": "Иван",
                "patro": "",
                "short_fio": null,
                "avatar_fio": null,
                "birthday": null,
                "fio": "Иванов Иван Иванович",
                "avatar": null
            },
            "rent_state": {
                "id": 5,
                "title": "words.rent_state_closed",
                "const": "CLOSED",
                "dom_class": "rent-state-closed"
            },
            "inventories": [
                {
                    "id": 222860,
                    "inventory_id": 79428,
                    "resource_id": 483807,
                    "inventory": {
                        "id": 79428,
                        "title": "Лонгборд EASTCOASTE MALIBU",
                        "article_number": "017",
                        "rent_number": "17",
                        "category": {
                            "id": 443547,
                            "title": "Лонгборды"
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53196,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "replace_inventory_id": null,
                    "sum": "2850",
                    "sum_one": "2850",
                    "sum_inventory": "2850",
                    "sum_broken": "0",
                    "sum_service": "0",
                    "sum_discount": "0",
                    "sum_total": "2850",
                    "sum_amount_payment": "0"
                }
            ],
            "kits": [],
            "additional_services": [],
            "discounts": []
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/rent?page=1",
        "last": "https://api.rentinhand.ru/v2/rent?page=27",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/rent?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 27,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/rent?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/rent",
        "per_page": 10,
        "to": 10,
        "total": 267,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/repair

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: repair

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/repair" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"sum\": 17,
    \"sum_real\": 17,
    \"sum_discount\": 17,
    \"sum_additional_service\": 17,
    \"sum_service\": 17,
    \"payed\": 17,
    \"currency_id\": 17,
    \"comment\": \"consequatur\",
    \"time_start\": \"consequatur\",
    \"open_point_id\": 17,
    \"close_point_id\": 17,
    \"human_id\": 17,
    \"repair_state_id\": 17,
    \"inventories\": {
        \"id\": 17,
        \"inventory_id\": 17,
        \"resource_id\": 17,
        \"replace_inventory_id\": 17,
        \"sum\": 17,
        \"sum_one\": 17,
        \"sum_inventory\": 17,
        \"sum_service\": 17,
        \"sum_discount\": 17,
        \"sum_total\": 17,
        \"sum_amount_payment\": 17
    },
    \"additional_services\": {
        \"additional_service_id\": 17,
        \"price\": 17,
        \"sum\": 17,
        \"count\": 17
    },
    \"discounts\": {
        \"discount_id\": 17
    },
    \"payments\": {
        \"value\": 17,
        \"pay_type_id\": 17,
        \"point_id\": 17,
        \"admin_user_id\": 17
    }
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sum": 17,
    "sum_real": 17,
    "sum_discount": 17,
    "sum_additional_service": 17,
    "sum_service": 17,
    "payed": 17,
    "currency_id": 17,
    "comment": "consequatur",
    "time_start": "consequatur",
    "open_point_id": 17,
    "close_point_id": 17,
    "human_id": 17,
    "repair_state_id": 17,
    "inventories": {
        "id": 17,
        "inventory_id": 17,
        "resource_id": 17,
        "replace_inventory_id": 17,
        "sum": 17,
        "sum_one": 17,
        "sum_inventory": 17,
        "sum_service": 17,
        "sum_discount": 17,
        "sum_total": 17,
        "sum_amount_payment": 17
    },
    "additional_services": {
        "additional_service_id": 17,
        "price": 17,
        "sum": 17,
        "count": 17
    },
    "discounts": {
        "discount_id": 17
    },
    "payments": {
        "value": 17,
        "pay_type_id": 17,
        "point_id": 17,
        "admin_user_id": 17
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sum' => 17,
            'sum_real' => 17,
            'sum_discount' => 17,
            'sum_additional_service' => 17,
            'sum_service' => 17,
            'payed' => 17,
            'currency_id' => 17,
            'comment' => 'consequatur',
            'time_start' => 'consequatur',
            'open_point_id' => 17,
            'close_point_id' => 17,
            'human_id' => 17,
            'repair_state_id' => 17,
            'inventories' => [
                'id' => 17,
                'inventory_id' => 17,
                'resource_id' => 17,
                'replace_inventory_id' => 17,
                'sum' => 17,
                'sum_one' => 17,
                'sum_inventory' => 17,
                'sum_service' => 17,
                'sum_discount' => 17,
                'sum_total' => 17,
                'sum_amount_payment' => 17,
            ],
            'additional_services' => [
                'additional_service_id' => 17,
                'price' => 17,
                'sum' => 17,
                'count' => 17,
            ],
            'discounts' => [
                'discount_id' => 17,
            ],
            'payments' => [
                'value' => 17,
                'pay_type_id' => 17,
                'point_id' => 17,
                'admin_user_id' => 17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair'
payload = {
    "sum": 17,
    "sum_real": 17,
    "sum_discount": 17,
    "sum_additional_service": 17,
    "sum_service": 17,
    "payed": 17,
    "currency_id": 17,
    "comment": "consequatur",
    "time_start": "consequatur",
    "open_point_id": 17,
    "close_point_id": 17,
    "human_id": 17,
    "repair_state_id": 17,
    "inventories": {
        "id": 17,
        "inventory_id": 17,
        "resource_id": 17,
        "replace_inventory_id": 17,
        "sum": 17,
        "sum_one": 17,
        "sum_inventory": 17,
        "sum_service": 17,
        "sum_discount": 17,
        "sum_total": 17,
        "sum_amount_payment": 17
    },
    "additional_services": {
        "additional_service_id": 17,
        "price": 17,
        "sum": 17,
        "count": 17
    },
    "discounts": {
        "discount_id": 17
    },
    "payments": {
        "value": 17,
        "pay_type_id": 17,
        "point_id": 17,
        "admin_user_id": 17
    }
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/repair

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

sum   integer     

Example: 17

sum_real   integer     

Example: 17

sum_discount   integer     

Example: 17

sum_additional_service   integer     

Example: 17

sum_service   integer     

Example: 17

payed   integer     

Example: 17

currency_id   integer     

Example: 17

comment   string  optional    

Example: consequatur

time_start   string     

Example: consequatur

time_fact_end   string  optional    
open_point_id   integer  optional    

Example: 17

close_point_id   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

repair_state_id   integer     

Example: 17

inventories   object  optional    
id   integer  optional    

Example: 17

inventory_id   integer  optional    

Example: 17

resource_id   integer  optional    

Example: 17

replace_inventory_id   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

sum_one   integer  optional    

Example: 17

sum_inventory   integer  optional    

Example: 17

sum_service   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

sum_total   integer  optional    

Example: 17

sum_amount_payment   integer  optional    

Example: 17

additional_services   object  optional    
additional_service_id   integer  optional    

Example: 17

price   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

count   integer  optional    

Example: 17

discounts   object  optional    
discount_id   integer  optional    

Example: 17

payments   object  optional    
date   string  optional    
value   integer  optional    

Example: 17

pay_type_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

admin_user_id   integer  optional    

Example: 17

Получить: repair (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/repair/5334" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/5334"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/5334';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/5334'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 131865,
        "sum": 200,
        "sum_real": 200,
        "sum_discount": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": true,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "comment": null,
        "order_number": 473,
        "order_number_text": "473",
        "is_understaffed": false,
        "time_start": "2023-03-21T16:21:00.000000Z",
        "time_end": "2023-03-21T17:23:00.000000Z",
        "time_fact_end": null,
        "open_point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "close_point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "deposit": null,
        "human": {
            "id": 81083,
            "guid": "10e92be0-9800-11ed-be53-45b74f5cc6ee",
            "surname": "Иванов",
            "name": "Иван",
            "patro": null,
            "short_fio": null,
            "avatar_fio": null,
            "birthday": null,
            "fio": "Иванов Иван Иванович",
            "avatar": null
        },
        "rent_state": {
            "id": 6,
            "title": "words.rent_state_overdue",
            "const": "OVERDUE",
            "dom_class": "rent-state-overdue"
        },
        "inventories": [
            {
                "id": 316147,
                "inventory_id": 79420,
                "resource_id": 686770,
                "inventory": {
                    "id": 79420,
                    "title": "Роликовые коньки MICRO SHAPER-COMBO",
                    "article_number": "016",
                    "rent_number": "6",
                    "category": {
                        "id": 443442,
                        "title": "Ролики"
                    },
                    "state": {
                        "id": 5709,
                        "title": "В Аренде",
                        "const": "RENT",
                        "color": "#4fc3f7",
                        "text_color": "#000000"
                    },
                    "prices": [
                        {
                            "id": 53188,
                            "title": null
                        },
                        {
                            "id": 60195,
                            "title": null
                        }
                    ],
                    "another": 0,
                    "children_count": 0,
                    "is_group": false
                },
                "replace_inventory_id": null,
                "sum": "200",
                "sum_one": "200",
                "sum_inventory": "200",
                "sum_broken": "0",
                "sum_service": "0",
                "sum_discount": "0",
                "sum_total": "200",
                "sum_amount_payment": "0"
            }
        ],
        "kits": [],
        "additional_services": [],
        "discounts": []
    }
}
 

Запрос      

GET v2/repair/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the repair. Example: 5334

Обновить: repair (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/5334" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"consequatur\",
    \"repair_state_id\": 17,
    \"open_point_id\": 17,
    \"close_point_id\": 17,
    \"order_number_text\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/5334"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "comment": "consequatur",
    "repair_state_id": 17,
    "open_point_id": 17,
    "close_point_id": 17,
    "order_number_text": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/5334';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'comment' => 'consequatur',
            'repair_state_id' => 17,
            'open_point_id' => 17,
            'close_point_id' => 17,
            'order_number_text' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/5334'
payload = {
    "comment": "consequatur",
    "repair_state_id": 17,
    "open_point_id": 17,
    "close_point_id": 17,
    "order_number_text": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/repair/{id}

PATCH v2/repair/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the repair. Example: 5334

Параметры тела

comment   string  optional    

Example: consequatur

repair_state_id   integer  optional    

Example: 17

time_start   string  optional    
time_fact_end   string  optional    
open_point_id   integer  optional    

Example: 17

close_point_id   integer  optional    

Example: 17

order_number_text   string  optional    

Example: consequatur

Удалить: repair (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/5334" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/5334"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/5334';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/5334'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/repair/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the repair. Example: 5334

Создать: repair/close-multiple

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/repair/close-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"repairs\": [
        {
            \"repair_id\": 17,
            \"pay_type_id\": 17
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/close-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "repairs": [
        {
            "repair_id": 17,
            "pay_type_id": 17
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/close-multiple';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'repairs' => [
                [
                    'repair_id' => 17,
                    'pay_type_id' => 17,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/close-multiple'
payload = {
    "repairs": [
        {
            "repair_id": 17,
            "pay_type_id": 17
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/repair/close-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

repairs   object[]     
repair_id   integer     

Example: 17

add_payed   string  optional    
pay_type_id   integer  optional    

Example: 17

Ремонт: конструктор

Создать: repair/builder/prepare (по id)

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/repair/builder/prepare/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"repair_state_id\": 17,
    \"currency_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/prepare/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "repair_state_id": 17,
    "currency_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/prepare/consequatur';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'repair_state_id' => 17,
            'currency_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/prepare/consequatur'
payload = {
    "repair_state_id": 17,
    "currency_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/repair/builder/prepare/{repairId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

repairId   string     

Example: consequatur

Параметры тела

time_start   string  optional    
time_fact_end   string  optional    
repair_state_id   integer  optional    

Example: 17

currency_id   integer  optional    

Example: 17

Создать: repair/builder/prepare

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/repair/builder/prepare" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"repair_state_id\": 17,
    \"currency_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/prepare"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "repair_state_id": 17,
    "currency_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/prepare';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'repair_state_id' => 17,
            'currency_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/prepare'
payload = {
    "repair_state_id": 17,
    "currency_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "status": "OK",
    "repairSessionKey": "0123456789abcdef0123456789abcdef",
    "repair": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

POST v2/repair/builder/prepare

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

time_start   string  optional    
time_fact_end   string  optional    
repair_state_id   integer  optional    

Example: 17

currency_id   integer  optional    

Example: 17

Создать: repair/builder/save

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/save" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/save"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/save';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/save'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/repair/builder/{sessionKey}/save

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Обновить: repair/builder/add/client (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/client/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/client/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/client/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/client/consequatur'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_end": "2023-08-21 17:23:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": {
            "id": 46760,
            "avatar": null,
            "avatar_fio": "фи",
            "guid": "a8071460-9a21-11ec-b3e3-0d1f19368ef3",
            "is_admin": false,
            "is_client": true,
            "is_director": false,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": "21",
            "sms_flag": false,
            "birthday": null,
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null
        },
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null,
                    "laravel_through_key": 46760
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/client/{humanId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

humanId   string     

Example: consequatur

Обновить: repair/builder/add/inventory

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17,
    \"resource_id\": 17,
    \"sum\": 17,
    \"sum_inventory\": 17,
    \"comment\": \"consequatur\",
    \"finished\": \"consequatur\",
    \"sum_amount_payment\": 17,
    \"sum_one\": 17,
    \"count\": 17,
    \"parent_inventory_id\": 17,
    \"is_group\": false,
    \"discount_id\": 17,
    \"sum_discount\": 17,
    \"sum_total\": 17,
    \"replace_inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "replace_inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/inventory';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
            'resource_id' => 17,
            'sum' => 17,
            'sum_inventory' => 17,
            'comment' => 'consequatur',
            'finished' => 'consequatur',
            'sum_amount_payment' => 17,
            'sum_one' => 17,
            'count' => 17,
            'parent_inventory_id' => 17,
            'is_group' => false,
            'discount_id' => 17,
            'sum_discount' => 17,
            'sum_total' => 17,
            'replace_inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/inventory'
payload = {
    "inventory_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "replace_inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 172497,
                        "title": "формула",
                        "article_number": null,
                        "rent_number": null,
                        "category": null,
                        "state": {
                            "id": 5706,
                            "title": "Свободен",
                            "const": "FREE",
                            "color": "#BDC3C8",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 15690,
                                "title": "сноуборд"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15690,
                        "title": "сноуборд"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": [],
                "services": []
            }
        ],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

time_start   string  optional    
time_fact_end   string  optional    
resource_id   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

sum_inventory   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

finished   string  optional    

Example: consequatur

sum_amount_payment   integer  optional    

Example: 17

sum_one   integer  optional    

Example: 17

count   integer  optional    

Example: 17

parent_inventory_id   integer  optional    

Example: 17

is_group   boolean  optional    

Example: false

discount_id   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

sum_total   integer  optional    

Example: 17

replace_inventory_id   integer  optional    

Example: 17

Обновить: repair/builder/add/service

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"service_id\": 17,
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 17,
    "inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'service_id' => 17,
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service'
payload = {
    "service_id": 17,
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 4000,
        "sum_real": 4000,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 3000,
        "fine_broken": 500,
        "sum_additional_service": 0,
        "sum_inventory": 3500,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53189,
                                "title": null
                            },
                            {
                                "id": 69703,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15993,
                        "title": "месяц"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": 0,
                    "replace_inventory": null,
                    "count": 0,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 500,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": [
                    {
                        "id": null,
                        "broken": {
                            "id": 935,
                            "title": "разбили фару",
                            "const": null,
                            "price": 500
                        },
                        "price": 500
                    }
                ]
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

service_id   integer     

Example: 17

inventory_id   integer     

Example: 17

Обновить: repair/builder/add/discount/promocode

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/promocode" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"promocode\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/promocode"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "promocode": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/promocode';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'promocode' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/promocode'
payload = {
    "promocode": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/repair/builder/{sessionKey}/add/discount/promocode

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

promocode   string     

Example: consequatur

Обновить: repair/builder/add/discount/custom

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/custom" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/custom"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/custom';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/discount/custom'
payload = {
    "value": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/repair/builder/{sessionKey}/add/discount/custom

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

value   string     

Example: consequatur

Обновить: repair/builder/add/service/additional

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service/additional" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"additional_service_id\": 17,
    \"resource_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service/additional"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service/additional';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'additional_service_id' => 17,
            'resource_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/service/additional'
payload = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 400,
        "sum_real": 400,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 400,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 400,
                "price": 400,
                "count": 1
            }
        ],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/service/additional

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

additional_service_id   integer     

Example: 17

resource_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Обновить: repair/builder/add/payment

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/payment" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"value\": \"consequatur\",
    \"resource_id\": 17,
    \"pay_type_id\": 17,
    \"payment_date\": \"2026-09-29T17:13:49+03:00\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/payment"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "value": "consequatur",
    "resource_id": 17,
    "pay_type_id": 17,
    "payment_date": "2026-09-29T17:13:49+03:00"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/payment';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'value' => 'consequatur',
            'resource_id' => 17,
            'pay_type_id' => 17,
            'payment_date' => '2026-09-29T17:13:49+03:00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/payment'
payload = {
    "id": 17,
    "value": "consequatur",
    "resource_id": 17,
    "pay_type_id": 17,
    "payment_date": "2026-09-29T17:13:49+03:00"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 123,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [
            {
                "id": null,
                "date": "2023-07-10 17:48:23",
                "value": 123,
                "resource_id": null,
                "pay_type": {
                    "id": 1,
                    "title": "Наличные",
                    "const": "CASH"
                },
                "point": null,
                "human_shift": {
                    "id": 24148,
                    "human_id": 21848,
                    "point_id": null,
                    "time_start": "2023-07-09 14:22:49",
                    "time_end": null,
                    "is_real": 1,
                    "comment": null
                },
                "admin_user": {
                    "id": 3805,
                    "login": "test"
                }
            }
        ],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/payment

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

value   string     

Example: consequatur

resource_id   integer  optional    

Example: 17

pay_type_id   integer  optional    

Example: 17

payment_date   string     

Must be a valid date. Must be a valid date in the format Y-m-d\TH:i:sP. Example: 2026-09-29T17:13:49+03:00

Обновить: repair/builder/add/time

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/time" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/time"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/time';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/time'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/time

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

time_start   string  optional    
time_fact_end   string  optional    

Обновить: repair/builder/add/config

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/config" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"consequatur\",
    \"admin_user_id\": 17,
    \"open_point_id\": 17,
    \"close_point_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/config"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "comment": "consequatur",
    "admin_user_id": 17,
    "open_point_id": 17,
    "close_point_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/config';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'comment' => 'consequatur',
            'admin_user_id' => 17,
            'open_point_id' => 17,
            'close_point_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/config'
payload = {
    "comment": "consequatur",
    "admin_user_id": 17,
    "open_point_id": 17,
    "close_point_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": {
            "id": 2599,
            "title": "пункт на суворовском",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "close_point": {
            "id": 2599,
            "title": "пункт на суворовском",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/config

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

comment   string  optional    

Example: consequatur

admin_user_id   integer  optional    

Example: 17

open_point_id   integer  optional    

Example: 17

close_point_id   integer  optional    

Example: 17

Обновить: repair/builder/add/broken

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/broken" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"broken_id\": 17,
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/broken"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "broken_id": 17,
    "inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/broken';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'broken_id' => 17,
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/broken'
payload = {
    "broken_id": 17,
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 4000,
        "sum_real": 4000,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 3000,
        "fine_broken": 500,
        "sum_additional_service": 0,
        "sum_inventory": 3500,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53189,
                                "title": null
                            },
                            {
                                "id": 69703,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15993,
                        "title": "месяц"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": 0,
                    "replace_inventory": null,
                    "count": 0,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 500,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": [
                    {
                        "id": null,
                        "broken": {
                            "id": 935,
                            "title": "разбили фару",
                            "const": null,
                            "price": 500
                        },
                        "price": 500
                    }
                ]
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/broken

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

broken_id   integer     

Example: 17

inventory_id   integer     

Example: 17

Обновить: repair/builder/add/product

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"product_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "product_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/product';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'product_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/product'
payload = {
    "id": 17,
    "product_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [
            {
                "id": null,
                "product": {
                    "id": 1072,
                    "title": "Клавиатура",
                    "description": null,
                    "count": 5,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 5000,
                    "discounts": [
                        {
                            "id": 25,
                            "created_at": "2018-11-22T13:23:13+0000",
                            "updated_at": "2021-04-15T07:43:33+0000",
                            "title": "10%",
                            "description": null,
                            "discount_type_id": 2,
                            "value": 10,
                            "discount_repeat_type_id": null,
                            "promocode": "SALE                                              ",
                            "only_promo": true,
                            "time_start": null,
                            "limits": null,
                            "deleted_at": null,
                            "time_duration": null,
                            "created_user_id": 3805,
                            "updated_user_id": 3805,
                            "deleted_user_id": null,
                            "is_discount": true,
                            "list_type": null,
                            "laravel_through_key": 1072
                        }
                    ],
                    "created_at": "2022-07-28T11:32:15.000000Z",
                    "updated_at": "2022-08-29T14:20:57.000000Z"
                },
                "resource_id": null,
                "count": 1,
                "price": 5000,
                "sum_discount": 500,
                "sum_total": 5000,
                "discount": {
                    "id": 25,
                    "description": null,
                    "discount_periods": [],
                    "title": "10%",
                    "value": 10,
                    "discount_type": {
                        "id": 2,
                        "title": "Процент от суммы",
                        "icon": "%",
                        "min_value": 1,
                        "max_value": 100,
                        "const": "DISCOUNT_TYPE_PERCENT"
                    },
                    "only_promo": true,
                    "promocode": "SALE                                              ",
                    "limits": null,
                    "time_start": null,
                    "time_duration": null,
                    "is_discount": true
                },
                "sum_product": 4500
            }
        ],
        "sum_product": 5000
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/add/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

product_id   integer     

Example: 17

count   integer  optional    

Example: 17

Обновить: repair/builder/add/state (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/state/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/add/state/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/state/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/add/state/consequatur'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Запрос      

PUT v2/repair/builder/{sessionKey}/add/state/{repairStateId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

repairStateId   string     

Example: consequatur

Обновить: repair/builder/update/inventory

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/update/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"inventory_id\": 17,
    \"price_id\": 17,
    \"resource_id\": 17,
    \"sum\": 17,
    \"sum_inventory\": 17,
    \"sum_broken\": 17,
    \"comment\": \"consequatur\",
    \"finished\": \"consequatur\",
    \"sum_amount_payment\": 17,
    \"sum_one\": 17,
    \"count\": 17,
    \"kit_id\": 17,
    \"parent_inventory_id\": 17,
    \"is_group\": false,
    \"discount_id\": 17,
    \"sum_discount\": 17,
    \"sum_total\": 17,
    \"resource_kit_id\": 17,
    \"kit_number\": 17,
    \"replace_inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/update/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "inventory_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "sum_broken": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "kit_id": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "resource_kit_id": 17,
    "kit_number": 17,
    "replace_inventory_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/update/inventory';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'inventory_id' => 17,
            'price_id' => 17,
            'resource_id' => 17,
            'sum' => 17,
            'sum_inventory' => 17,
            'sum_broken' => 17,
            'comment' => 'consequatur',
            'finished' => 'consequatur',
            'sum_amount_payment' => 17,
            'sum_one' => 17,
            'count' => 17,
            'kit_id' => 17,
            'parent_inventory_id' => 17,
            'is_group' => false,
            'discount_id' => 17,
            'sum_discount' => 17,
            'sum_total' => 17,
            'resource_kit_id' => 17,
            'kit_number' => 17,
            'replace_inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/update/inventory'
payload = {
    "id": 17,
    "inventory_id": 17,
    "price_id": 17,
    "resource_id": 17,
    "sum": 17,
    "sum_inventory": 17,
    "sum_broken": 17,
    "comment": "consequatur",
    "finished": "consequatur",
    "sum_amount_payment": 17,
    "sum_one": 17,
    "count": 17,
    "kit_id": 17,
    "parent_inventory_id": 17,
    "is_group": false,
    "discount_id": 17,
    "sum_discount": 17,
    "sum_total": 17,
    "resource_kit_id": 17,
    "kit_number": 17,
    "replace_inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 172497,
                        "title": "формула",
                        "article_number": null,
                        "rent_number": null,
                        "category": null,
                        "state": {
                            "id": 5706,
                            "title": "Свободен",
                            "const": "FREE",
                            "color": "#BDC3C8",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 15690,
                                "title": "сноуборд"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15690,
                        "title": "сноуборд"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": [],
                "services": []
            }
        ],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/update/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

inventory_id   integer     

Example: 17

price_id   integer     

Example: 17

time_start   string  optional    
time_end   string  optional    
resource_id   integer  optional    

Example: 17

sum   integer  optional    

Example: 17

sum_inventory   integer  optional    

Example: 17

sum_broken   integer  optional    

Example: 17

comment   string  optional    

Example: consequatur

finished   string  optional    

Example: consequatur

sum_amount_payment   integer  optional    

Example: 17

sum_one   integer  optional    

Example: 17

count   integer  optional    

Example: 17

kit_id   integer  optional    

Example: 17

parent_inventory_id   integer  optional    

Example: 17

is_group   boolean  optional    

Example: false

discount_id   integer  optional    

Example: 17

sum_discount   integer  optional    

Example: 17

sum_total   integer  optional    

Example: 17

resource_kit_id   integer  optional    

Example: 17

kit_number   integer  optional    

Example: 17

replace_inventory_id   integer  optional    

Example: 17

Обновить: repair/builder/update/service/additional

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/update/service/additional" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"additional_service_id\": 17,
    \"resource_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/update/service/additional"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/update/service/additional';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'additional_service_id' => 17,
            'resource_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/update/service/additional'
payload = {
    "id": 17,
    "additional_service_id": 17,
    "resource_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 2000,
        "sum_real": 2000,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 2000,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [
            {
                "id": null,
                "additional_service": {
                    "id": 377,
                    "title": "Обучение",
                    "price": 400
                },
                "resource_id": null,
                "sum": 2000,
                "price": 400,
                "count": 5
            }
        ],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/update/service/additional

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

id   integer  optional    

Example: 17

additional_service_id   integer     

Example: 17

resource_id   integer  optional    

Example: 17

count   integer  optional    

Example: 17

Обновить: repair/builder/update/product

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/update/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product_id\": 17,
    \"count\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/update/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product_id": 17,
    "count": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/update/product';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product_id' => 17,
            'count' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/update/product'
payload = {
    "product_id": 17,
    "count": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [
            {
                "id": null,
                "product": {
                    "id": 1072,
                    "title": "Клавиатура",
                    "description": null,
                    "count": 5,
                    "buy_date": null,
                    "buy_price": 0,
                    "artule": null,
                    "price": 5000,
                    "discounts": [
                        {
                            "id": 25,
                            "created_at": "2018-11-22T13:23:13+0000",
                            "updated_at": "2021-04-15T07:43:33+0000",
                            "title": "10%",
                            "description": null,
                            "discount_type_id": 2,
                            "value": 10,
                            "discount_repeat_type_id": null,
                            "promocode": "SALE                                              ",
                            "only_promo": true,
                            "time_start": null,
                            "limits": null,
                            "deleted_at": null,
                            "time_duration": null,
                            "created_user_id": 3805,
                            "updated_user_id": 3805,
                            "deleted_user_id": null,
                            "is_discount": true,
                            "list_type": null,
                            "laravel_through_key": 1072
                        }
                    ],
                    "created_at": "2022-07-28T11:32:15.000000Z",
                    "updated_at": "2022-08-29T14:20:57.000000Z"
                },
                "resource_id": null,
                "count": 2,
                "price": 5000,
                "sum_discount": 1000,
                "sum_total": 10000,
                "discount": {
                    "id": 25,
                    "description": null,
                    "discount_periods": [],
                    "title": "10%",
                    "value": 10,
                    "discount_type": {
                        "id": 2,
                        "title": "Процент от суммы",
                        "icon": "%",
                        "min_value": 1,
                        "max_value": 100,
                        "const": "DISCOUNT_TYPE_PERCENT"
                    },
                    "only_promo": true,
                    "promocode": "SALE                                              ",
                    "limits": null,
                    "time_start": null,
                    "time_duration": null,
                    "is_discount": true
                },
                "sum_product": 9000
            }
        ],
        "sum_product": 10000
    }
}
 

Запрос      

PUT v2/repair/builder/{sessionKey}/update/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

product_id   integer     

Example: 17

count   integer  optional    

Example: 17

Удалить: repair/builder/remove/client

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/client" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/client"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/client';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/client'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_end": "2023-08-21 17:23:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": false,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [],
        "products": []
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/client

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Удалить: repair/builder/remove/inventory

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/inventory" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/inventory"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "inventory_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/inventory';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/inventory'
payload = {
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 172497,
                        "title": "формула",
                        "article_number": null,
                        "rent_number": null,
                        "category": null,
                        "state": {
                            "id": 5706,
                            "title": "Свободен",
                            "const": "FREE",
                            "color": "#BDC3C8",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 15690,
                                "title": "сноуборд"
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15690,
                        "title": "сноуборд"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": null,
                    "replace_inventory": null,
                    "count": 1,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": [],
                "services": []
            }
        ],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/inventory

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

inventory_id   integer     

Example: 17

Удалить: repair/builder/remove/discount

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/discount" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/discount"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/discount';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/discount'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/discount

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Удалить: repair/builder/remove/service/additional

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service/additional" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"additional_service_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service/additional"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "additional_service_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service/additional';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'additional_service_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service/additional'
payload = {
    "additional_service_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/service/additional

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

additional_service_id   integer     

Example: 17

Удалить: repair/builder/remove/service

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"service_id\": 17,
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 17,
    "inventory_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'service_id' => 17,
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/service'
payload = {
    "service_id": 17,
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 3500,
        "sum_real": 3500,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 3000,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 3500,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53189,
                                "title": null
                            },
                            {
                                "id": 69703,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15993,
                        "title": "месяц"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": 0,
                    "replace_inventory": null,
                    "count": 0,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

service_id   integer     

Example: 17

inventory_id   integer     

Example: 17

Удалить: repair/builder/remove/payment

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/payment" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"consequatur\",
    \"payment_date\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/payment"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "consequatur",
    "payment_date": "consequatur"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/payment';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 'consequatur',
            'payment_date' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/payment'
payload = {
    "value": "consequatur",
    "payment_date": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 0,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/payment

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

value   string     

Example: consequatur

payment_date   string     

Example: consequatur

Удалить: repair/builder/remove/broken

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/broken" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"broken_id\": 17,
    \"inventory_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/broken"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "broken_id": 17,
    "inventory_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/broken';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'broken_id' => 17,
            'inventory_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/broken'
payload = {
    "broken_id": 17,
    "inventory_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-04-22 10:10:00",
        "time_end": "2023-04-23 10:10:00",
        "time_fact_end": "2023-04-24 10:10:00",
        "sum": 3500,
        "sum_real": 3500,
        "sum_discount": 0,
        "need_calc_breaking": true,
        "need_calc_rent_delay": false,
        "payed": 0,
        "fine_time": 3000,
        "fine_broken": 0,
        "sum_additional_service": 0,
        "sum_inventory": 3500,
        "sum_kit": 0,
        "sum_deposit": 0,
        "human": null,
        "comment": "Нереальный комментарий",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 1,
            "title": "words.rent_state_in_progress",
            "const": "IN_PROGRESS",
            "dom_class": "rent-state-in_progress"
        },
        "is_understaffed": false,
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [
            {
                "resource_inventory": {
                    "id": null,
                    "resource_id": null,
                    "inventory": {
                        "id": 79421,
                        "title": "Роликовые коньки PLAYLIFE RoF ROLL of FAME",
                        "article_number": "017",
                        "rent_number": "7",
                        "category": {
                            "id": 443442,
                            "title": "Ролики",
                            "parent_id": null,
                            "children": []
                        },
                        "state": {
                            "id": 5709,
                            "title": "В Аренде",
                            "const": "RENT",
                            "color": "#4fc3f7",
                            "text_color": "#000000"
                        },
                        "prices": [
                            {
                                "id": 53189,
                                "title": null
                            },
                            {
                                "id": 69703,
                                "title": null
                            }
                        ],
                        "another": 0,
                        "children_count": 0,
                        "is_group": false
                    },
                    "price": {
                        "id": 15993,
                        "title": "месяц"
                    },
                    "parent_inventory": null,
                    "kit": null,
                    "resource_kit": null,
                    "discount": null,
                    "kit_number": 0,
                    "replace_inventory": null,
                    "count": 0,
                    "sum": 0,
                    "sum_one": 0,
                    "sum_inventory": 0,
                    "sum_broken": 0,
                    "sum_service": 0,
                    "sum_discount": 0,
                    "sum_total": 0,
                    "sum_amount_payment": 0
                },
                "brokens": []
            }
        ],
        "kits": [],
        "payments": [],
        "deposit": null,
        "additional_services": [],
        "discounts": [
            {
                "id": null,
                "discount": {
                    "id": 2004,
                    "created_at": "2023-03-21T08:42:17+0000",
                    "updated_at": "2023-03-21T08:42:17+0000",
                    "title": "скидкааааааааа тест",
                    "description": null,
                    "discount_type_id": 2,
                    "value": 50,
                    "discount_repeat_type_id": null,
                    "promocode": null,
                    "only_promo": false,
                    "time_start": null,
                    "limits": 0,
                    "deleted_at": null,
                    "time_duration": null,
                    "created_user_id": 3805,
                    "updated_user_id": 3805,
                    "deleted_user_id": null,
                    "is_discount": true,
                    "list_type": null
                },
                "resource_id": null,
                "limits": 0,
                "sum": 0
            }
        ],
        "products": []
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/broken

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

broken_id   integer     

Example: 17

inventory_id   integer     

Example: 17

Удалить: repair/builder/remove/product

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/product" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/product"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product_id": 17
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/product';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/repair/builder/consequatur/remove/product'
payload = {
    "product_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": null,
        "time_start": "2023-08-21 16:21:00",
        "time_fact_end": "2023-08-21 17:23:00",
        "sum": 0,
        "sum_real": 0,
        "sum_discount": 0,
        "payed": 0,
        "fine_time": 0,
        "sum_additional_service": 0,
        "sum_inventory": 0,
        "human": null,
        "comment": "",
        "open_point": null,
        "close_point": null,
        "open_shift": null,
        "close_shift": null,
        "order_number": null,
        "order_number_text": "",
        "rent_state": {
            "id": 2248,
            "title": "Выполняется",
            "const": "DOING",
            "text_color": "#000000",
            "color": "#EAED50"
        },
        "currency": {
            "id": 1,
            "title": "Рубли",
            "const": "RUB",
            "icon": "fa fa-currency fa-ruble-sign",
            "translate": "words.currency_rub",
            "data": null
        },
        "admin_user": {
            "id": 3805,
            "login": "test"
        },
        "inventories": [],
        "kits": [],
        "payments": [],
        "additional_services": [],
        "discounts": [],
        "products": [],
        "sum_product": 0
    }
}
 

Запрос      

DELETE v2/repair/builder/{sessionKey}/remove/product

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

sessionKey   string     

Example: consequatur

Параметры тела

product_id   integer     

Example: 17

Ремонт: услуги

Удалить: service/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/service/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/service/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: service

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: service

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/service" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"price\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/service"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "price": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'price' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service'
payload = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "price": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/service

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string  optional    

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

price   string     

Example: consequatur

discounts   object  optional    

Получить: service (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/service/70" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/70"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/70';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/70'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/service/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the service. Example: 70

Обновить: service (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/service/70" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
    \"price\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/70"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "price": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/70';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'description' => 'Dolores dolorum amet iste laborum eius est dolor.',
            'price' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/70'
payload = {
    "title": "consequatur",
    "description": "Dolores dolorum amet iste laborum eius est dolor.",
    "price": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/service/{id}

PATCH v2/service/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the service. Example: 70

Параметры тела

title   string  optional    

Example: consequatur

description   string  optional    

Example: Dolores dolorum amet iste laborum eius est dolor.

price   string     

Example: consequatur

discounts   object  optional    

Удалить: service (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/service/70" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/service/70"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/service/70';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/service/70'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/service/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the service. Example: 70

Доставка

Список: delivery/refusal-type

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/delivery/refusal-type" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/refusal-type"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/refusal-type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/refusal-type'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/delivery/refusal-type

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: delivery/refusal-type

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/delivery/refusal-type" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/refusal-type"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/refusal-type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/refusal-type'
payload = {
    "title": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/delivery/refusal-type

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

Получить: delivery/refusal-type (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/delivery/refusal-type/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/refusal-type/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/refusal-type/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/refusal-type/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/delivery/refusal-type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the refusal type. Example: 1

Обновить: delivery/refusal-type (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/delivery/refusal-type/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/refusal-type/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/refusal-type/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/refusal-type/1'
payload = {
    "title": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/delivery/refusal-type/{id}

PATCH v2/delivery/refusal-type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the refusal type. Example: 1

Параметры тела

title   string     

Example: consequatur

Удалить: delivery/refusal-type (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/delivery/refusal-type/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/refusal-type/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/refusal-type/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/refusal-type/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/delivery/refusal-type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the refusal type. Example: 1

Удалить: delivery/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/delivery/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/delivery/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: delivery

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/delivery" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/delivery

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: delivery

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/delivery" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"time_from\": \"consequatur\",
    \"time_to\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "time_from": "consequatur",
    "time_to": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'time_from' => 'consequatur',
            'time_to' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery'
payload = {
    "time_from": "consequatur",
    "time_to": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/delivery

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

time_from   string     

Example: consequatur

time_to   string     

Example: consequatur

Получить: delivery (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/delivery/14" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/14"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/14';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/14'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/delivery/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the delivery. Example: 14

Обновить: delivery (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/delivery/14" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"time_from\": \"consequatur\",
    \"time_to\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/14"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "time_from": "consequatur",
    "time_to": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/14';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'time_from' => 'consequatur',
            'time_to' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/14'
payload = {
    "id": 17,
    "time_from": "consequatur",
    "time_to": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Запрос      

PUT v2/delivery/{id}

PATCH v2/delivery/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the delivery. Example: 14

Параметры тела

id   integer     

Example: 17

time_from   string     

Example: consequatur

time_to   string     

Example: consequatur

Удалить: delivery (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/delivery/14" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/delivery/14"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/delivery/14';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/delivery/14'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/delivery/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the delivery. Example: 14

Расходы

Список: expense/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/expense/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/expense/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: expense/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/expense/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/expense/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Удалить: expense/type/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/expense/type/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/type/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/type/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/type/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/expense/type/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: expense/type

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/expense/type" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/type"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/type'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 4339,
            "title": "Ежедневный",
            "const": null
        },
        {
            "id": 4340,
            "title": "еженедельный",
            "const": null
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/expense/type?page=1",
        "last": "https://api.rentinhand.ru/v2/expense/type?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/expense/type?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/expense/type",
        "per_page": 10,
        "to": 10,
        "total": 10,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/expense/type

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: expense/type

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/expense/type" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/type"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/type'
payload = {
    "title": "consequatur",
    "const": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/expense/type

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

const   string     

Example: consequatur

Получить: expense/type (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/expense/type/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/type/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/type/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/type/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 4340,
        "title": "еженедельный",
        "const": null
    }
}
 

Запрос      

GET v2/expense/type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the type. Example: 1

Обновить: expense/type (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/expense/type/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"const\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/type/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "const": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/type/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'const' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/type/1'
payload = {
    "id": 17,
    "title": "consequatur",
    "const": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 5872,
        "title": "example",
        "const": "da"
    }
}
 

Запрос      

PUT v2/expense/type/{id}

PATCH v2/expense/type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the type. Example: 1

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

const   string     

Example: consequatur

Удалить: expense/type (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/expense/type/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/type/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/type/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/type/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/expense/type/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the type. Example: 1

Список: expense

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/expense" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 5829,
            "name": "Иван",
            "comment": null,
            "expense_type": {
                "id": 520,
                "title": "Непредвиденные расходы",
                "const": null
            },
            "value": 3000,
            "date": "2023-05-24 00:00:00",
            "inventory": null,
            "point": {
                "id": 1421,
                "title": "Мой пункт проката",
                "email": null,
                "website": null,
                "phone": null,
                "place_text": null
            },
            "inventory_id": null
        },
        {
            "id": 2519,
            "name": "Иван",
            "comment": null,
            "expense_type": {
                "id": 518,
                "title": "Хоз. нужды",
                "const": null
            },
            "value": 5000,
            "date": "2022-09-08 00:00:00",
            "inventory": null,
            "point": null,
            "inventory_id": null
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/expense?page=1",
        "last": "https://api.rentinhand.ru/v2/expense?page=4",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/expense?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 4,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/expense?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/expense",
        "per_page": 10,
        "to": 10,
        "total": 35,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/expense

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: expense

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/expense" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"consequatur\",
    \"comment\": \"consequatur\",
    \"expense_type_id\": 17,
    \"value\": \"consequatur\",
    \"date\": \"2026-09-29T17:13:48\",
    \"inventory_id\": 17,
    \"point_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "consequatur",
    "comment": "consequatur",
    "expense_type_id": 17,
    "value": "consequatur",
    "date": "2026-09-29T17:13:48",
    "inventory_id": 17,
    "point_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'consequatur',
            'comment' => 'consequatur',
            'expense_type_id' => 17,
            'value' => 'consequatur',
            'date' => '2026-09-29T17:13:48',
            'inventory_id' => 17,
            'point_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense'
payload = {
    "name": "consequatur",
    "comment": "consequatur",
    "expense_type_id": 17,
    "value": "consequatur",
    "date": "2026-09-29T17:13:48",
    "inventory_id": 17,
    "point_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/expense

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

name   string     

Example: consequatur

comment   string  optional    

Example: consequatur

expense_type_id   integer     

Example: 17

value   string     

Example: consequatur

date   string     

Must be a valid date. Example: 2026-09-29T17:13:48

inventory_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

media   object  optional    

Получить: expense (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/expense/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 4351,
        "name": "Иван",
        "comment": null,
        "expense_type": {
            "id": 518,
            "title": "Хоз. нужды",
            "const": null
        },
        "value": 120,
        "date": "2023-02-22 00:00:00",
        "inventory": {
            "id": 139232,
            "title": "проверка больших чисел",
            "article_number": null,
            "rent_number": null,
            "category": null,
            "state": {
                "id": 5706,
                "title": "Свободен",
                "const": "FREE",
                "color": "#BDC3C8",
                "text_color": "#000000"
            },
            "prices": [
                {
                    "id": 70426,
                    "title": null
                }
            ],
            "another": 0,
            "children_count": 0,
            "is_group": false
        },
        "point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "inventory_id": 139232
    }
}
 

Запрос      

GET v2/expense/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the expense. Example: 1

Обновить: expense (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/expense/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"name\": \"consequatur\",
    \"comment\": \"consequatur\",
    \"expense_type_id\": 17,
    \"value\": \"consequatur\",
    \"date\": \"2026-09-29T17:13:48\",
    \"inventory_id\": 17,
    \"point_id\": 17
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "name": "consequatur",
    "comment": "consequatur",
    "expense_type_id": 17,
    "value": "consequatur",
    "date": "2026-09-29T17:13:48",
    "inventory_id": 17,
    "point_id": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'name' => 'consequatur',
            'comment' => 'consequatur',
            'expense_type_id' => 17,
            'value' => 'consequatur',
            'date' => '2026-09-29T17:13:48',
            'inventory_id' => 17,
            'point_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/1'
payload = {
    "id": 17,
    "name": "consequatur",
    "comment": "consequatur",
    "expense_type_id": 17,
    "value": "consequatur",
    "date": "2026-09-29T17:13:48",
    "inventory_id": 17,
    "point_id": 17
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 5970,
        "name": "Иван",
        "comment": "COMMENT_EDITED",
        "expense_type": {
            "id": 518,
            "title": "Хоз. нужды",
            "const": null
        },
        "value": 120,
        "date": "2023-02-23 00:00:00",
        "inventory": {
            "id": 139232,
            "title": "проверка больших чисел",
            "article_number": null,
            "rent_number": null,
            "category": null,
            "state": {
                "id": 5706,
                "title": "Свободен",
                "const": "FREE",
                "color": "#BDC3C8",
                "text_color": "#000000"
            },
            "prices": [
                {
                    "id": 70426,
                    "title": null
                }
            ],
            "another": 0,
            "children_count": 0,
            "is_group": false
        },
        "point": {
            "id": 618,
            "title": "Пункт проката на Суворова",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        },
        "inventory_id": 139232
    }
}
 

Запрос      

PUT v2/expense/{id}

PATCH v2/expense/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the expense. Example: 1

Параметры тела

id   integer     

Example: 17

name   string     

Example: consequatur

comment   string  optional    

Example: consequatur

expense_type_id   integer     

Example: 17

value   string     

Example: consequatur

date   string     

Must be a valid date. Example: 2026-09-29T17:13:48

inventory_id   integer  optional    

Example: 17

point_id   integer  optional    

Example: 17

media   object  optional    

Удалить: expense (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/expense/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/expense/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/expense/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/expense/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/expense/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the expense. Example: 1

Сотрудники

Получить: human/employee/accessible-points (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee/accessible-points/consequatur" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/accessible-points/consequatur"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/accessible-points/consequatur';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/accessible-points/consequatur'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 3742,
            "title": "пункт на вороше",
            "email": null,
            "website": null,
            "phone": "+79990000000",
            "place_text": null
        }
    ]
}
 

Запрос      

GET v2/human/employee/accessible-points/{humanId}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

humanId   string     

Example: consequatur

Список: human/employee/export

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee/export" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/export"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/export'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/human/employee/export

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Удалить: human/employee/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/human/employee/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/human/employee/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: human/employee

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 779,
            "number": 5,
            "human": {
                "id": 58261,
                "avatar": null,
                "avatar_fio": "ВС",
                "guid": "383c4150-f210-11ec-88f3-0f6c807ae7df",
                "is_admin": false,
                "is_client": false,
                "is_director": false,
                "is_employee": true,
                "male": 1,
                "fio": "Иванов Иван Иванович",
                "name": "Иван",
                "surname": "Иванов",
                "patro": null,
                "short_fio": "Иванов И.И.",
                "number": "5",
                "sms_flag": false,
                "birthday": "1990-01-15",
                "passport_serial": null,
                "passport_number": null,
                "passport_take": null,
                "passport_code": null,
                "passport_take_date": null,
                "vatin": null
            },
            "employee_position": {
                "id": 3,
                "title": "words.employee_position_warehouse",
                "const": "WAREHOUSE_WORKER"
            },
            "contacts": [],
            "user": {
                "id": 26190,
                "login": "test_125"
            }
        },
        {
            "id": 1076,
            "number": 0,
            "human": {
                "id": 94997,
                "avatar": null,
                "avatar_fio": "МН",
                "guid": "88dbd5e0-d6cc-11ed-8827-332db81b7616",
                "is_admin": false,
                "is_client": false,
                "is_director": false,
                "is_employee": true,
                "male": 1,
                "fio": "Иванов Иван Иванович",
                "name": "Иван",
                "surname": "Иванов",
                "patro": null,
                "short_fio": "Иванов И.И.",
                "number": "0",
                "sms_flag": false,
                "birthday": null,
                "passport_serial": null,
                "passport_number": null,
                "passport_take": null,
                "passport_code": null,
                "passport_take_date": null,
                "vatin": null
            },
            "employee_position": {
                "id": 2,
                "title": "words.employee_position_courier",
                "const": "COURIER"
            },
            "contacts": [],
            "user": {
                "id": 27387,
                "login": "test_mi"
            }
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/human/employee?page=1",
        "last": "https://api.rentinhand.ru/v2/human/employee?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/human/employee?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/human/employee",
        "per_page": 117,
        "to": 11,
        "total": 11,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/human/employee

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: human/employee

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/human/employee" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"number\": 17,
    \"human_id\": 17,
    \"employee_position_id\": 17,
    \"address\": \"consequatur\",
    \"contacts\": [
        {
            \"contact_type_id\": 17,
            \"value\": \"mqeopfuudtdsufvyvddqa\"
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "number": 17,
    "human_id": 17,
    "employee_position_id": 17,
    "address": "consequatur",
    "contacts": [
        {
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'number' => 17,
            'human_id' => 17,
            'employee_position_id' => 17,
            'address' => 'consequatur',
            'contacts' => [
                [
                    'contact_type_id' => 17,
                    'value' => 'mqeopfuudtdsufvyvddqa',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee'
payload = {
    "number": 17,
    "human_id": 17,
    "employee_position_id": 17,
    "address": "consequatur",
    "contacts": [
        {
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1084,
        "number": 12,
        "human": {
            "id": 95970,
            "avatar": null,
            "avatar_fio": "TL",
            "guid": "1e4803b0-25a3-11ee-ac9d-a5eb77bd3898",
            "is_admin": false,
            "is_client": false,
            "is_director": false,
            "is_employee": true,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": null,
            "short_fio": "Иванов И.И.",
            "number": "12",
            "sms_flag": false,
            "birthday": "1990-01-15",
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null
        },
        "employee_position": {
            "id": 4,
            "title": "words.employee_position_repairer",
            "const": "REPAIRER"
        },
        "contacts": [
            {
                "human": {
                    "id": 95970,
                    "login": null
                },
                "value": "+79990000000",
                "confirmed": 0,
                "contact_type": {
                    "id": 1,
                    "title": "Телефон",
                    "const": "PHONE"
                }
            }
        ],
        "user": null
    }
}
 

Запрос      

POST v2/human/employee

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

number   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

employee_position_id   integer  optional    

Example: 17

address   string  optional    

Example: consequatur

human   object  optional    
user   object  optional    
contacts   object[]  optional    
contact_type_id   integer  optional    

Must match an existing stored value. Example: 17

value   string  optional    

Must be at least 2 characters. Must not be greater than 255 characters. Example: mqeopfuudtdsufvyvddqa

media   object  optional    
points   object  optional    

Получить: human/employee (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/2'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 956,
        "number": 6,
        "human": {
            "id": 79642,
            "avatar": null,
            "avatar_fio": "ик",
            "guid": "a3c25fd0-86a7-11ed-9af5-712df83065b5",
            "is_admin": false,
            "is_client": false,
            "is_director": false,
            "is_employee": true,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": null,
            "short_fio": "Иванов И.И.",
            "number": "6",
            "sms_flag": false,
            "birthday": null,
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null
        },
        "employee_position": {
            "id": 4,
            "title": "words.employee_position_repairer",
            "const": "REPAIRER"
        },
        "contacts": [],
        "user": {
            "id": 26893,
            "login": "test_testглгл"
        }
    }
}
 

Запрос      

GET v2/human/employee/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the employee. Example: 2

Обновить: human/employee (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/human/employee/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"number\": 17,
    \"human_id\": 17,
    \"employee_position_id\": 17,
    \"address\": \"consequatur\",
    \"contacts\": [
        {
            \"id\": 17,
            \"contact_type_id\": 17,
            \"value\": \"mqeopfuudtdsufvyvddqa\"
        }
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "number": 17,
    "human_id": 17,
    "employee_position_id": 17,
    "address": "consequatur",
    "contacts": [
        {
            "id": 17,
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/2';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'number' => 17,
            'human_id' => 17,
            'employee_position_id' => 17,
            'address' => 'consequatur',
            'contacts' => [
                [
                    'id' => 17,
                    'contact_type_id' => 17,
                    'value' => 'mqeopfuudtdsufvyvddqa',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/2'
payload = {
    "number": 17,
    "human_id": 17,
    "employee_position_id": 17,
    "address": "consequatur",
    "contacts": [
        {
            "id": 17,
            "contact_type_id": 17,
            "value": "mqeopfuudtdsufvyvddqa"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1083,
        "number": 1,
        "human": {
            "id": 95969,
            "avatar": null,
            "avatar_fio": "TL",
            "guid": "e4a25c10-25a1-11ee-8430-3772e31a9612",
            "is_admin": false,
            "is_client": false,
            "is_director": false,
            "is_employee": true,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": null,
            "short_fio": "Иванов И.И.",
            "number": "1",
            "sms_flag": false,
            "birthday": "1990-01-15",
            "passport_serial": null,
            "passport_number": null,
            "passport_take": null,
            "passport_code": null,
            "passport_take_date": null
        },
        "employee_position": {
            "id": 2,
            "title": "words.employee_position_courier",
            "const": "COURIER"
        },
        "contacts": [
            {
                "human": {
                    "id": 95969,
                    "login": null
                },
                "value": "+79990000000",
                "confirmed": 0,
                "contact_type": {
                    "id": 1,
                    "title": "Телефон",
                    "const": "PHONE"
                }
            }
        ],
        "user": null
    }
}
 

Запрос      

PUT v2/human/employee/{id}

PATCH v2/human/employee/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the employee. Example: 2

Параметры тела

number   integer  optional    

Example: 17

human_id   integer  optional    

Example: 17

employee_position_id   integer  optional    

Example: 17

address   string  optional    

Example: consequatur

human   object  optional    
user   object  optional    
contacts   object[]  optional    
id   integer  optional    

Example: 17

contact_type_id   integer  optional    

Must match an existing stored value. Example: 17

value   string  optional    

Must be at least 2 characters. Must not be greater than 255 characters. Example: mqeopfuudtdsufvyvddqa

media   object  optional    
points   object  optional    

Удалить: human/employee (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/human/employee/2" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee/2"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee/2';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee/2'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/human/employee/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the employee. Example: 2

Список: human/employee-position

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee-position" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee-position"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee-position';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee-position'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 4,
            "title": "Мастер",
            "const": "REPAIRER"
        },
        {
            "id": 1,
            "title": "Менеджер",
            "const": "MANAGER"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/human/employee-position?page=1",
        "last": "https://api.rentinhand.ru/v2/human/employee-position?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/human/employee-position?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/human/employee-position",
        "per_page": 10,
        "to": 4,
        "total": 4,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/human/employee-position

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: human/employee-position

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/human/employee-position" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee-position"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee-position';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee-position'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Запрос      

POST v2/human/employee-position

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Получить: human/employee-position (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/employee-position/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee-position/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee-position/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee-position/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Запрос      

GET v2/human/employee-position/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the employee position. Example: 1

Обновить: human/employee-position (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/human/employee-position/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee-position/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee-position/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee-position/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Запрос      

PUT v2/human/employee-position/{id}

PATCH v2/human/employee-position/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the employee position. Example: 1

Удалить: human/employee-position (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/human/employee-position/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/employee-position/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/employee-position/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/employee-position/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/human/employee-position/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the employee position. Example: 1

Список: human/director-and-employees

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/human/director-and-employees" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/human/director-and-employees"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/human/director-and-employees';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/human/director-and-employees'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 21848,
            "avatar": null,
            "avatar_fio": "ГД",
            "guid": "b8bd4691-17e0-4a0b-bb4e-df229d74eed3",
            "is_admin": false,
            "is_client": false,
            "is_director": true,
            "is_employee": false,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": null,
            "sms_flag": true,
            "birthday": null,
            "passport_serial": "1234",
            "passport_number": "567890",
            "passport_take": "МВД России",
            "passport_code": null,
            "passport_take_date": "2015-06-11T00:00:00.000000Z",
            "vatin": "123456789987",
            "user_id": 3805
        },
        {
            "id": 32864,
            "avatar": null,
            "avatar_fio": "АА",
            "guid": "317acd50-f7c5-11eb-9f49-b58322cc28a6",
            "is_admin": false,
            "is_client": false,
            "is_director": false,
            "is_employee": true,
            "male": 1,
            "fio": "Иванов Иван Иванович",
            "name": "Иван",
            "surname": "Иванов",
            "patro": "Иванович",
            "short_fio": "Иванов И.И.",
            "number": "1",
            "sms_flag": false,
            "birthday": "1990-01-15",
            "passport_serial": "1234",
            "passport_number": "567890",
            "passport_take": "МВД России",
            "passport_code": "770001",
            "passport_take_date": "2015-06-11T00:00:00.000000Z",
            "vatin": null,
            "user_id": 25065
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/human/director-and-employees?page=1",
        "last": "https://api.rentinhand.ru/v2/human/director-and-employees?page=2",
        "prev": null,
        "next": "https://api.rentinhand.ru/v2/human/director-and-employees?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/human/director-and-employees?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/human/director-and-employees",
        "per_page": 10,
        "to": 10,
        "total": 17,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/human/director-and-employees

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Аттракционы

Удалить: attraction/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/attraction/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/attraction/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/attraction/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/attraction/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/attraction/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: attraction

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/attraction" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/attraction"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/attraction';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/attraction'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 16132,
            "title": "сарафанное радио",
            "const": null
        },
        {
            "id": 4251,
            "title": "Рекламные объявления",
            "const": "AD"
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/attraction?page=1",
        "last": "https://api.rentinhand.ru/v2/attraction?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/attraction?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/attraction",
        "per_page": 10,
        "to": 4,
        "total": 4,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/attraction

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: attraction

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/attraction" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"const\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/attraction"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "const": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/attraction';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'const' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/attraction'
payload = {
    "title": "consequatur",
    "const": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/attraction

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

const   string     

Example: consequatur

Получить: attraction (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/attraction/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/attraction/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/attraction/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/attraction/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 4251,
        "title": "Рекламные объявления",
        "const": "AD"
    }
}
 

Запрос      

GET v2/attraction/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the attraction. Example: 1

Обновить: attraction (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/attraction/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"const\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/attraction/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "const": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/attraction/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'const' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/attraction/1'
payload = {
    "id": 17,
    "title": "consequatur",
    "const": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 17058,
        "title": "Example attraction 222",
        "const": "Example222"
    }
}
 

Запрос      

PUT v2/attraction/{id}

PATCH v2/attraction/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the attraction. Example: 1

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

const   string     

Example: consequatur

Удалить: attraction (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/attraction/1" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/attraction/1"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/attraction/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/attraction/1'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/attraction/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the attraction. Example: 1

Поломки

Удалить: broken/delete-multiple

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/broken/delete-multiple" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": [
        17
    ]
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/broken/delete-multiple"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": [
        17
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/broken/delete-multiple';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => [
                17,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/broken/delete-multiple'
payload = {
    "items": [
        17
    ]
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Запрос      

DELETE v2/broken/delete-multiple

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

items   integer[]     

Список: broken

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/broken" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/broken"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/broken';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/broken'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": [
        {
            "id": 935,
            "title": "разбили фару",
            "const": null,
            "price": 500
        },
        {
            "id": 988,
            "title": "большие числа",
            "const": null,
            "price": 1650000
        }
    ],
    "links": {
        "first": "https://api.rentinhand.ru/v2/broken?page=1",
        "last": "https://api.rentinhand.ru/v2/broken?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Предыдущая",
                "active": false
            },
            {
                "url": "https://api.rentinhand.ru/v2/broken?page=1",
                "label": "1",
                "active": true
            }
        ],
        "path": "https://api.rentinhand.ru/v2/broken",
        "per_page": 10,
        "to": 7,
        "total": 7,
        "version": "2.0.1",
        "version_number": 2001
    },
    "permission": {
        "resource_id": null,
        "read": 0,
        "write": 0,
        "delete": 0,
        "right": 0
    }
}
 

Запрос      

GET v2/broken

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Создать: broken

requires authentication

Пример запроса:
curl --request POST \
    "https://api.rentinhand.ru/v2/broken" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"consequatur\",
    \"price\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/broken"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "consequatur",
    "price": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/broken';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'consequatur',
            'price' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/broken'
payload = {
    "title": "consequatur",
    "price": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Запрос      

POST v2/broken

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры тела

title   string     

Example: consequatur

price   string     

Example: consequatur

Получить: broken (по id)

requires authentication

Пример запроса:
curl --request GET \
    --get "https://api.rentinhand.ru/v2/broken/6" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/broken/6"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/broken/6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/broken/6'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 935,
        "title": "разбили фару",
        "const": null,
        "price": 500
    }
}
 

Запрос      

GET v2/broken/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the broken. Example: 6

Обновить: broken (по id)

requires authentication

Пример запроса:
curl --request PUT \
    "https://api.rentinhand.ru/v2/broken/6" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 17,
    \"title\": \"consequatur\",
    \"price\": \"consequatur\"
}"
const url = new URL(
    "https://api.rentinhand.ru/v2/broken/6"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 17,
    "title": "consequatur",
    "price": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/broken/6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 17,
            'title' => 'consequatur',
            'price' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/broken/6'
payload = {
    "id": 17,
    "title": "consequatur",
    "price": "consequatur"
}
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Пример ответа (200):


{
    "data": {
        "id": 1043,
        "title": "EXAMPLE_222",
        "const": null,
        "price": 0
    }
}
 

Запрос      

PUT v2/broken/{id}

PATCH v2/broken/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the broken. Example: 6

Параметры тела

id   integer     

Example: 17

title   string     

Example: consequatur

price   string     

Example: consequatur

Удалить: broken (по id)

requires authentication

Пример запроса:
curl --request DELETE \
    "https://api.rentinhand.ru/v2/broken/6" \
    --header "Authorization: Bearer {API_ТОКЕН}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.rentinhand.ru/v2/broken/6"
);

const headers = {
    "Authorization": "Bearer {API_ТОКЕН}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/broken/6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {API_ТОКЕН}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api.rentinhand.ru/v2/broken/6'
headers = {
  'Authorization': 'Bearer {API_ТОКЕН}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Запрос      

DELETE v2/broken/{id}

Заголовки

Authorization        

Example: Bearer {API_ТОКЕН}

Content-Type        

Example: application/json

Accept        

Example: application/json

Параметры адреса

id   integer     

The ID of the broken. Example: 6