О документации
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. Проверяйте права в кабинете: Сотрудники → карточка → права.
Формат ответов
- Один объект:
{"data": {...}}. Список:{"data": [...], "meta": {...}, "links": {...}}. - Пагинация списков: параметры
pageиper_page. Передавайтеper_pageявно — так размер страницы одинаков на всех методах. Общее число записей —meta.total, страниц —meta.last_page. Границы:per_page— целое число от 1 до 5000 (у методов выгрузки,…/export, — до 500 000),page— от 1;per_page=0— то же, что без параметра. Значение вне границ или не число — ответ422с пояснением вerrors.per_pageилиerrors.page: сервер не обрезает его молча, чтобы неполный список не выглядел целым. - Денежные поля — JSON-числа:
0,1500.5. - Состояния аренд, инвентаря и ремонтов сопоставляйте по
idилиconst— это стабильные идентификаторы. Подписи для интерфейса держите на своей стороне.
Ошибки
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 (смещение без двоеточия). Разбирайте строку вместе со смещением и переводите время в нужный пояс сами: смещение у разных полей разное.
- Аренды (
time_start,time_end,time_fact_end,created_at,updated_at) и их платежи (payments[].date) в карточке и в списке аренд приходят в UTC со смещением+0000: пояс организации к ним не применяется. Аренда с 14:30 по Москве придёт как2026-09-25T11:30:00+0000. - Черновик конструктора (
/v2/rent/builder/*) приходит в поясе организации: у проката в Екатеринбурге то же время —2026-09-25T16:30:00+0500. - Занятость инвентаря
GET /v2/rent/calendarприходит в UTC в формате базы данных:2026-09-25 11:30:00+00— через пробел, смещение из двух цифр. - Дата без времени, например
birthday, — строка2026-09-25.
Примеры ответов у методов справочника собраны в разное время, и даты в них местами записаны не в том формате, что в настоящем ответе. Если пример расходится с этим разделом, верен раздел.
Часовой пояс организации задаётся в настройках кабинета. Сервер применяет его к черновикам конструктора и к границам суток в фильтрах по периоду.
Фильтры по периоду period_from и period_to:
- дата без времени,
2026-09-01, — границы суток в поясе организации: от начала дняperiod_fromдо конца дняperiod_toвключительно; - время со смещением —
2026-09-01T10:00:00+03:00,2026-09-01T10:00:00+0300или2026-09-01T07:00:00Z— точный момент, как передан. Знак+в адресе кодируйте как%2B: незакодированный+превращается в пробел — время с+03:00сервер отклонит, а с+0300молча прочитает неверно; - время без смещения,
2026-09-01T10:00:00, сервер считает московским, а не временем в поясе организации — добавляйте смещение; - время через пробел, без
T(2026-09-01 10:00:00), читается как дата: время отбрасывается, берутся границы суток; - без
period_fromпериод начинается 1 января 2018 года, без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 на нужный размер сами — получится та же ссылка.
Сценарий: создать аренду
Аренда собирается конструктором за несколько шагов внутри одной сессии:
POST /v2/rent/builder/prepare— тело{"time_start": null, "time_end": null, "rent_state_id": null, "currency_id": null}. Все четыре ключа должны присутствовать (значения могут бытьnull— подставятся значения по умолчанию). В ответе —rentSessionKey.PUT /v2/rent/builder/{sessionKey}/add/client/{humanId}— привязать клиента (humanId— этоidиз/v2/human/client; нового клиента создайте черезPOST /v2/human/client).GET /v2/rent/builder/{sessionKey}/search/inventory— инвентарь, свободный на период черновика;price_idдля следующего шага берите изprices[].id.PUT /v2/rent/builder/{sessionKey}/add/inventory— добавить позицию; ответ содержит пересчитанный черновик с суммами.PUT …/add/config,…/add/payment,…/add/discount/…— пункт выдачи, оплата, скидки по необходимости.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=…: так в базе не появятся дубли, а история аренд останется цельной.
Изменения
- 2026-10 — в списке аренд
GET /v2/rentдата платежаpayments[].dateприходит со смещением, как в карточке аренды:2026-09-25T11:30:00+0000(было2026-09-25 11:30:00— время в UTC без смещения); раздел «Даты и часовые пояса» описывает форматы дат и фильтры по периоду. - 2026-09 — API-токен интеграции (
POST /v2/api-token, действует весь оплаченный период тарифа и продлевается вместе с ним) и вход по логину (POST /v2/login) для всех интеграций; токен виджета принимается только параметром?get_token=и только на маршрутах виджета бронирования — в заголовкеAuthorizationи на остальных маршрутах он больше не работает (интеграциям, которым оставлен переходный период, он пока принимается в?get_token=на всех маршрутах, а ответы приходят с заголовкамиDeprecation: trueиSunset: <дата>; после этой даты —403с кодомWIDGET_TOKEN_SCOPE); отказы авторизации по токену (401, а также403токену виджета вне его маршрутов) содержат машинный код причины и ссылку на документацию (токен виджета вне виджета — на страницу про API-токен); справочник, OpenAPI и коллекция Postman публикуются по этому адресу. - 2026-09 — единый формат отказов: у отказов методов появились поля
error,errorsиcode(полеmessageсохранено); нет прав на раздел или объект —403с кодомACCESS_DENIED, при отказе по разделу его имя — в полеsection; тело без единого допустимого поля —422с кодомEMPTY_REQUEST(было403);POST /v2/rent/builder/prepare/{rentId}с неизвестнымrentId—404с кодомRENT_NOT_FOUND(было200); кодыSALARY_PAY_NOT_SAVEDиWIDGET_CLIENT_NOT_FOUNDу выплат зарплаты и восстановления пароля в виджете; ошибки валидации полей —422с кодомVALIDATION_FAILED, нехватка товара на складе —422с кодомOUT_OF_STOCK, «объект не найден» и несуществующий маршрут —404с кодомNOT_FOUND(см. «Ошибки»). - 2026-09 — у картинок готовые ссылки на уменьшенные копии:
sizesрядом сfull_src,avatar_sizesрядом сavatar(см. «Медиа»);per_pageиpageпроверяются — значение вне границ отклоняется ответом422(см. «Формат ответов»); точные фильтры клиентовphone=иemail=уGET /v2/human/client; позиция, занятая другой арендой на этот период, —409с кодомINVENTORY_BUSY(см. «Ошибки»).
Изменения контракта публикуются здесь. Если вы опираетесь на поле, которого нет в описании, напишите в поддержку — мы учтём это при развитии 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Токен виджета: выпустить для сотрудника
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Токен виджета: текущий токен сотрудника
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Текущий 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Выпустить 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Отозвать 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Войти и получить токен доступа
Пример запроса:
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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Профиль
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Клиенты
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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"
}
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Аренды
Список: 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"
}
]
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Лента заметок аренды
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Добавить заметку к аренде
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Редактировать заметку
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Очистить все заметки аренды (только директор)
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить заметку
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Аренда: конструктор
Создать: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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"
}
]
}
]
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Аренды: состояния
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Аренды: залоги
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Инвентарь
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Инвентарь: цены
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Инвентарь: состояния
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Инвентарь: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Комплекты
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Категории
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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):
[]
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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):
[]
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Пункты проката
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Магазин: товары
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Магазин: продажи
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Магазин: конструктор продажи
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
]
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Заказы и документы
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Способы оплаты
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Скидки
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Дополнительные услуги
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Ремонт
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Итог по единице инвентаря: заявки, работы по ней и поломки в арендах.
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Личный инвентарь клиента по его заявкам, сведённый по единицам.
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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Ремонт: конструктор
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Ремонт: услуги
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Доставка
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Расходы
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Сотрудники
Получить: 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
}
]
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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глгл"
}
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Аттракционы
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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"
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Поломки
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: 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": "« Предыдущая",
"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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Получить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: 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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: 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()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.