О документации
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 доступ → «Сгенерировать». Получите строку из 32 символов. Токен привязан к пользователю и наследует его права: что видит пользователь в кабинете, то видно и через API.
Шаг 2 — первый запрос. Список пунктов проката:
curl "https://api.rentinhand.ru/v2/point" \
-H "Authorization: Bearer ВАШ_ТОКЕН" \
-H "Accept: application/json"
Ответ 200 с {"data": [...]} — всё работает. Ответ 401 — см. коды ошибок ниже: в теле будет сказано, что именно не так с токеном.
Авторизация
Токен принимается тремя способами, любой на выбор:
| Способ | Пример |
|---|---|
Заголовок Authorization (рекомендуется) |
Authorization: Bearer 5f1e…32 символа |
Заголовок X-Api-Token |
X-Api-Token: 5f1e… |
| Query-параметр (старый способ) | GET /v2/point?get_token=5f1e… |
Действует только последний выданный токен. Кнопка «Сгенерировать новый» в кабинете немедленно отзывает прежний — обновите его во всех интеграциях и в виджете бронирования. Пока действующий токен директора жив, повторное нажатие возвращает его же.
Срок действия. Токен сотрудника живёт 6 месяцев с момента выпуска. Токен директора действует до конца оплаченного периода тарифа: продлили тариф — выпустите новый токен в кабинете, и он получит новый срок.
Права. Если у пользователя токена нет доступа к разделу (например, сотрудник без права на клиентов), метод вернёт 403. Проверяйте права в кабинете: Сотрудники → карточка → права.
Формат ответов
- Один объект:
{"data": {...}}. Список:{"data": [...], "meta": {...}, "links": {...}}. - Пагинация списков: параметры
pageиper_page. Передавайтеper_pageявно — так размер страницы одинаков на всех методах. Общее число записей —meta.total, страниц —meta.last_page. - Денежные поля — JSON-числа:
0,1500.5. - Состояния аренд, инвентаря и ремонтов сопоставляйте по
idилиconst— это стабильные идентификаторы. Подписи для интерфейса держите на своей стороне.
Ошибки
HTTP-статус говорит о классе проблемы, тело — о причине:
| Статус | Когда | Тело |
|---|---|---|
401 |
токен не передан, не найден, истёк или перевыпущен | {"error": "…", "code": "TOKEN_EXPIRED", "docs": "…"} — коды: TOKEN_MISSING, TOKEN_INVALID, TOKEN_NOT_FOUND, TOKEN_EXPIRED, TOKEN_SUPERSEDED, TOKEN_USER_INACTIVE |
403 |
нет прав на раздел или отказ по данным (часть методов) | {"message": "…", "logId": ""} |
404 |
объект не найден или маршрут не существует | {"error": "Не найдено"} |
422 |
не прошла валидация или бизнес-отказ («инвентарь занят», «неверные данные») | {"error": "…", "errors": {"поле": ["сообщение"]}} |
429 |
превышен лимит запросов по токену | {"error": "…", "code": "RATE_LIMITED"} + заголовки Retry-After, X-RateLimit-* |
500 |
сбой на нашей стороне | {"error": "…", "log_id": "uuid"} — сообщите log_id в поддержку |
Что делать по коду 401: TOKEN_MISSING — токен не дошёл (проверьте заголовок); TOKEN_NOT_FOUND — опечатка или чужой токен; TOKEN_EXPIRED — выпустите новый; TOKEN_SUPERSEDED — кто-то перевыпустил токен в кабинете, возьмите актуальный; TOKEN_INVALID — передан не API-токен (например, JWT кабинета).
В ответах конструкторов (/v2/rent/builder/*, /v2/stock/builder/*, /v2/repair/builder/*) проверяйте поле status: значение ERROR вместе с текстом в error означает, что шаг не принят.
Даты и часовые пояса
Даты — ISO 8601 со смещением: 2026-09-01T10:00:00+0300 (смещение без двоеточия; на вход принимается и +03:00). Часовой пояс берётся из настроек организации в кабинете. Приводите время к своей зоне по смещению из самой строки: у сохранённой аренды оно приходит в UTC (+0000), у черновика конструктора — в поясе организации.
Периоды в фильтрах списков (period_from, period_to) передавайте датой без времени — границы суток сервер посчитает сам в поясе организации.
Медиа
Поля avatar и media[].full_src ведут на оригинал изображения. Для витрин и списков берите готовый уменьшенный вариант — замените в пути сегмент orig на нужный размер: xs (144 px), sm (540 px), md (720 px), xl, xxl. На каталоге из сотни позиций это снижает вес страницы в разы.
Сценарий: создать аренду
Аренда собирается конструктором за несколько шагов внутри одной сессии:
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; параметр contact= — точное совпадение по контакту. Телефон передавайте в том виде, в каком он записан у вас; если поиск ничего не находит, попробуйте только цифры без кода страны.
Лимиты запросов
120 запросов в минуту на токен. Текущий остаток — в заголовках X-RateLimit-Limit и X-RateLimit-Remaining. При превышении приходит 429 с заголовком Retry-After — повторите запрос через указанное время.
Как получать изменения
Обмен построен на опросе: периодически запрашивайте списки с фильтром по периоду, например GET /v2/rent?period_from=2026-09-01&period_to=2026-09-02&per_page=200. Для большинства интеграций достаточно интервала в несколько минут — этого хватает, чтобы новые и изменённые аренды приезжали к вам вовремя и с запасом по лимиту.
Отладка
Для разработки и тестов заведите отдельный аккаунт с собственным токеном. Тестовые клиенты и аренды останутся в нём и не смешаются с рабочей базой проката.
Повторные запросы
Создание клиента и сохранение аренды выполняйте по одному разу и сохраняйте id из ответа — по нему вы всегда найдёте созданную запись. Перед созданием клиента ищите существующего через GET /v2/human/client?search=…: так в базе не появятся дубли, а история аренд останется цельной.
Изменения
- 2026-09 — токен принимается в заголовках
Authorization: BearerиX-Api-Token; ответ401содержит машинный код причины; лимит 120 запросов в минуту на токен; справочник, OpenAPI и коллекция Postman публикуются по этому адресу.
Изменения контракта публикуются здесь. Если вы опираетесь на поле, которого нет в описании, напишите в поддержку — мы учтём это при развитии API.
Поддержка
Вопросы по API — в чат на сайте или на почту поддержки. Приложите метод, адрес и полный ответ сервера: по полям code и log_id мы найдём конкретный запрос в журнале.
Авторизация
Добавьте к запросу заголовок Authorization со значением "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}".
Методы, требующие авторизации, помечены ниже значком requires authentication.
Токен доступа выпускается в личном кабинете: Профиль → API доступ → «Сгенерировать» (директор) или в карточке сотрудника. Это строка из 32 символов.
Передавайте его в заголовке Authorization: Bearer <токен> — это способ по умолчанию во всех примерах ниже. Также принимаются заголовок X-Api-Token: <токен> и query-параметр ?get_token=<токен> (старый способ, оставлен для совместимости).
Действует только последний выданный токен пользователя: после нажатия «Сгенерировать новый» прежний токен перестаёт работать сразу. Подробности, сроки жизни и коды ошибок — в разделе «Авторизация» выше.
Авторизация и токены
Список: director/generate-token
requires authentication
Пример запроса:
curl --request GET \
--get "https://api.rentinhand.ru/v2/director/generate-token" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: human/employee/generate-token
requires authentication
Пример запроса:
curl --request POST \
"https://api.rentinhand.ru/v2/human/employee/generate-token" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: human/employee/get-token
requires authentication
Пример запроса:
curl --request GET \
--get "https://api.rentinhand.ru/v2/human/employee/get-token" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Профиль
Список: profile
requires authentication
Пример запроса:
curl --request GET \
--get "https://api.rentinhand.ru/v2/profile" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/profile"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/human/client"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
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": "Test M..",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "Test 2 L..",
"number": "123",
"sms_flag": false,
"birthday": "1991-11-11",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "Test 2 L..",
"number": "123",
"sms_flag": false,
"birthday": "1991-11-11",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/human"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/261352" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/human/261352"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/261352';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/261352'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075/note"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075/note';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/549075/note'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"consequatur\"
}"
const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075/note"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075/note';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note'
payload = {
"body": "consequatur"
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note/1" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"consequatur\"
}"
const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075/note/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075/note/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note/1'
payload = {
"body": "consequatur"
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075/note"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075/note';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/549075/note'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075/note/1" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075/note/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075/note/1';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/549075/note/1'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Создать: rent
requires authentication
Пример запроса:
curl --request POST \
"https://api.rentinhand.ru/v2/rent" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sum\": 17,
\"sum_real\": 17,
\"sum_discount\": 17,
\"sum_additional_service\": 17,
\"sum_inventory\": 17,
\"sum_kit\": 17,
\"sum_deposit\": 17,
\"payed\": 17,
\"fine_time\": 17,
\"fine_broken\": 17,
\"currency_id\": 17,
\"need_calc_breaking\": false,
\"need_calc_rent_delay\": true,
\"comment\": \"consequatur\",
\"order_integer\": 17,
\"order_integer_text\": \"consequatur\",
\"is_understaffed\": false,
\"time_start\": \"consequatur\",
\"time_end\": \"consequatur\",
\"open_point_id\": 17,
\"close_point_id\": 17,
\"deposit_id\": 17,
\"human_id\": 17,
\"rent_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_broken\": 17,
\"sum_service\": 17,
\"sum_discount\": 17,
\"sum_total\": 17,
\"sum_amount_payment\": 17
},
\"kits\": {
\"id\": 17,
\"kit_id\": 17,
\"resource_id\": 17,
\"replace_kit_id\": 17,
\"sum\": 17,
\"sum_one\": 17,
\"sum_inventory\": 17,
\"sum_broken\": 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/rent"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sum": 17,
"sum_real": 17,
"sum_discount": 17,
"sum_additional_service": 17,
"sum_inventory": 17,
"sum_kit": 17,
"sum_deposit": 17,
"payed": 17,
"fine_time": 17,
"fine_broken": 17,
"currency_id": 17,
"need_calc_breaking": false,
"need_calc_rent_delay": true,
"comment": "consequatur",
"order_integer": 17,
"order_integer_text": "consequatur",
"is_understaffed": false,
"time_start": "consequatur",
"time_end": "consequatur",
"open_point_id": 17,
"close_point_id": 17,
"deposit_id": 17,
"human_id": 17,
"rent_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_broken": 17,
"sum_service": 17,
"sum_discount": 17,
"sum_total": 17,
"sum_amount_payment": 17
},
"kits": {
"id": 17,
"kit_id": 17,
"resource_id": 17,
"replace_kit_id": 17,
"sum": 17,
"sum_one": 17,
"sum_inventory": 17,
"sum_broken": 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/rent';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sum' => 17,
'sum_real' => 17,
'sum_discount' => 17,
'sum_additional_service' => 17,
'sum_inventory' => 17,
'sum_kit' => 17,
'sum_deposit' => 17,
'payed' => 17,
'fine_time' => 17,
'fine_broken' => 17,
'currency_id' => 17,
'need_calc_breaking' => false,
'need_calc_rent_delay' => true,
'comment' => 'consequatur',
'order_integer' => 17,
'order_integer_text' => 'consequatur',
'is_understaffed' => false,
'time_start' => 'consequatur',
'time_end' => 'consequatur',
'open_point_id' => 17,
'close_point_id' => 17,
'deposit_id' => 17,
'human_id' => 17,
'rent_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_broken' => 17, 'sum_service' => 17, 'sum_discount' => 17,
'sum_total' => 17, 'sum_amount_payment' => 17,
],
'kits' => [
'id' => 17, 'kit_id' => 17, 'resource_id' => 17, 'replace_kit_id' => 17, 'sum' => 17, 'sum_one' => 17, 'sum_inventory' => 17, 'sum_broken' => 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/rent'
payload = {
"sum": 17,
"sum_real": 17,
"sum_discount": 17,
"sum_additional_service": 17,
"sum_inventory": 17,
"sum_kit": 17,
"sum_deposit": 17,
"payed": 17,
"fine_time": 17,
"fine_broken": 17,
"currency_id": 17,
"need_calc_breaking": false,
"need_calc_rent_delay": true,
"comment": "consequatur",
"order_integer": 17,
"order_integer_text": "consequatur",
"is_understaffed": false,
"time_start": "consequatur",
"time_end": "consequatur",
"open_point_id": 17,
"close_point_id": 17,
"deposit_id": 17,
"human_id": 17,
"rent_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_broken": 17,
"sum_service": 17,
"sum_discount": 17,
"sum_total": 17,
"sum_amount_payment": 17
},
"kits": {
"id": 17,
"kit_id": 17,
"resource_id": 17,
"replace_kit_id": 17,
"sum": 17,
"sum_one": 17,
"sum_inventory": 17,
"sum_broken": 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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/549075'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": []
}
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Обновить: rent (по id)
requires authentication
Пример запроса:
curl --request PUT \
"https://api.rentinhand.ru/v2/rent/549075" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": 17,
\"sum\": 17,
\"sum_real\": 17,
\"sum_discount\": 17,
\"sum_additional_service\": 17,
\"sum_inventory\": 17,
\"sum_kit\": 17,
\"sum_deposit\": 17,
\"payed\": 17,
\"fine_time\": 17,
\"fine_broken\": 17,
\"currency_id\": 17,
\"need_calc_breaking\": false,
\"need_calc_rent_delay\": true,
\"comment\": \"consequatur\",
\"order_integer\": 17,
\"order_integer_text\": \"consequatur\",
\"is_understaffed\": false,
\"time_start\": \"consequatur\",
\"time_end\": \"consequatur\",
\"open_point_id\": 17,
\"close_point_id\": 17,
\"deposit_id\": 17,
\"human_id\": 17,
\"rent_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_broken\": 17,
\"sum_service\": 17,
\"sum_discount\": 17,
\"sum_total\": 17,
\"sum_amount_payment\": 17
},
\"kits\": {
\"id\": 17,
\"kit_id\": 17,
\"resource_id\": 17,
\"replace_kit_id\": 17,
\"sum\": 17,
\"sum_one\": 17,
\"sum_inventory\": 17,
\"sum_broken\": 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/rent/549075"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 17,
"sum": 17,
"sum_real": 17,
"sum_discount": 17,
"sum_additional_service": 17,
"sum_inventory": 17,
"sum_kit": 17,
"sum_deposit": 17,
"payed": 17,
"fine_time": 17,
"fine_broken": 17,
"currency_id": 17,
"need_calc_breaking": false,
"need_calc_rent_delay": true,
"comment": "consequatur",
"order_integer": 17,
"order_integer_text": "consequatur",
"is_understaffed": false,
"time_start": "consequatur",
"time_end": "consequatur",
"open_point_id": 17,
"close_point_id": 17,
"deposit_id": 17,
"human_id": 17,
"rent_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_broken": 17,
"sum_service": 17,
"sum_discount": 17,
"sum_total": 17,
"sum_amount_payment": 17
},
"kits": {
"id": 17,
"kit_id": 17,
"resource_id": 17,
"replace_kit_id": 17,
"sum": 17,
"sum_one": 17,
"sum_inventory": 17,
"sum_broken": 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: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/rent/549075';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'id' => 17,
'sum' => 17,
'sum_real' => 17,
'sum_discount' => 17,
'sum_additional_service' => 17,
'sum_inventory' => 17,
'sum_kit' => 17,
'sum_deposit' => 17,
'payed' => 17,
'fine_time' => 17,
'fine_broken' => 17,
'currency_id' => 17,
'need_calc_breaking' => false,
'need_calc_rent_delay' => true,
'comment' => 'consequatur',
'order_integer' => 17,
'order_integer_text' => 'consequatur',
'is_understaffed' => false,
'time_start' => 'consequatur',
'time_end' => 'consequatur',
'open_point_id' => 17,
'close_point_id' => 17,
'deposit_id' => 17,
'human_id' => 17,
'rent_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_broken' => 17, 'sum_service' => 17, 'sum_discount' => 17,
'sum_total' => 17, 'sum_amount_payment' => 17,
],
'kits' => [
'id' => 17, 'kit_id' => 17, 'resource_id' => 17, 'replace_kit_id' => 17, 'sum' => 17, 'sum_one' => 17, 'sum_inventory' => 17, 'sum_broken' => 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/rent/549075'
payload = {
"id": 17,
"sum": 17,
"sum_real": 17,
"sum_discount": 17,
"sum_additional_service": 17,
"sum_inventory": 17,
"sum_kit": 17,
"sum_deposit": 17,
"payed": 17,
"fine_time": 17,
"fine_broken": 17,
"currency_id": 17,
"need_calc_breaking": false,
"need_calc_rent_delay": true,
"comment": "consequatur",
"order_integer": 17,
"order_integer_text": "consequatur",
"is_understaffed": false,
"time_start": "consequatur",
"time_end": "consequatur",
"open_point_id": 17,
"close_point_id": 17,
"deposit_id": 17,
"human_id": 17,
"rent_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_broken": 17,
"sum_service": 17,
"sum_discount": 17,
"sum_total": 17,
"sum_amount_payment": 17
},
"kits": {
"id": 17,
"kit_id": 17,
"resource_id": 17,
"replace_kit_id": 17,
"sum": 17,
"sum_one": 17,
"sum_inventory": 17,
"sum_broken": 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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/549075" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/549075"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/549075';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/549075'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Пример ответа (200):
{
"status": "OK",
"rentSessionKey": "DWlmfnplpRE9EPOI",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "6018",
"passport_number": "333456",
"passport_take": "МВД России",
"passport_code": null,
"passport_take_date": "2010-06-23T20: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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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-02T14:18:49+03:00\"
}"
const url = new URL(
"https://api.rentinhand.ru/v2/rent/builder/consequatur/add/payment"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 17,
"value": "consequatur",
"resource_id": 17,
"pay_type_id": 17,
"payment_date": "2026-09-02T14:18: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/rent/builder/consequatur/add/payment';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'id' => 17,
'value' => 'consequatur',
'resource_id' => 17,
'pay_type_id' => 17,
'payment_date' => '2026-09-02T14:18:49+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-02T14:18:49+03:00"
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "6018",
"passport_number": "333456",
"passport_take": "МВД России",
"passport_code": null,
"passport_take_date": "2010-06-23T20: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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "6018",
"passport_number": "333456",
"passport_take": "МВД России",
"passport_code": null,
"passport_take_date": "2010-06-23T20: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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/state"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/rent/deposit"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/is-free/7809"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: inventory/free
requires authentication
Пример запроса:
curl --request GET \
--get "https://api.rentinhand.ru/v2/inventory/free" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"time_from\": \"consequatur\",
\"time_to\": \"consequatur\",
\"except_resource_ids\": [
17
]
}"
const url = new URL(
"https://api.rentinhand.ru/v2/inventory/free"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"time_from": "consequatur",
"time_to": "consequatur",
"except_resource_ids": [
17
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://api.rentinhand.ru/v2/inventory/free';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'time_from' => 'consequatur',
'time_to' => 'consequatur',
'except_resource_ids' => [17],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.rentinhand.ru/v2/inventory/free'
payload = {
"time_from": "consequatur",
"time_to": "consequatur",
"except_resource_ids": [
17
]
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Пример ответа (200):
{
"current_page": 1,
"data": [
{
"id": 304354,
"created_at": "2024-01-20T17:40:15+0000",
"updated_at": "2024-01-20T17:40:15+0000",
"title": "ТЕСТ БАГА",
"description": "efpniuvnapbmeojvneo",
"state_id": 5706,
"buy_date": "2023-08-01T00:00:00+0300",
"buy_price": [],
"point_id": 1276,
"deleted_at": null,
"article_number": "123",
"category_resource_id": 906167,
"rent_number": "123123",
"hidden": 0,
"another": 0,
"option": "[{\"title\":\"asd\",\"value\":\"asd\"},{\"title\":\"dsa\",\"value\":\"dsa\"}]",
"guid": null,
"created_user_id": 24980,
"updated_user_id": 24980,
"deleted_user_id": null,
"amount_rent_sum": [],
"amount_rent_time": {
"y": 0,
"m": 0,
"d": 0,
"h": 0,
"i": 0,
"s": 0,
"f": 0,
"weekday": 0,
"weekday_behavior": 0,
"first_last_day_of": 0,
"invert": 0,
"days": false,
"special_type": 0,
"special_amount": 0,
"have_weekday_relative": 0,
"have_special_relative": 0
},
"parent_id": null,
"children_count": 0,
"amount_rent_count": 0,
"expense_sum": [],
"cash_deposit": [],
"is_group": false,
"prices": [
{
"id": 5791,
"created_at": "2021-09-21T09:51:32+0000",
"updated_at": "2021-09-21T09:51:32+0000",
"deleted_at": null,
"title": "Сноуборды",
"created_user_id": 3805,
"updated_user_id": 3805,
"deleted_user_id": null,
"price_logic_id": 1,
"point_id": null,
"article_number": null
}
],
"resource_prices": [
{
"id": 122522,
"created_at": "2024-01-20T17:40:15+0000",
"updated_at": "2024-01-20T17:40:15+0000",
"deleted_at": null,
"created_user_id": null,
"updated_user_id": null,
"deleted_user_id": null,
"resource_id": 1269137,
"price_id": 5791,
"laravel_through_key": 304354,
"price": {
"id": 5791,
"created_at": "2021-09-21T09:51:32+0000",
"updated_at": "2021-09-21T09:51:32+0000",
"deleted_at": null,
"title": "Сноуборды",
"created_user_id": 3805,
"updated_user_id": 3805,
"deleted_user_id": null,
"price_logic_id": 1,
"point_id": null,
"article_number": null
}
}
]
},
{
"id": 304353,
"created_at": "2024-01-19T15:25:06+0000",
"updated_at": "2024-01-19T15:25:06+0000",
"title": "Тестирую залог",
"description": null,
"state_id": 5706,
"buy_date": null,
"buy_price": [],
"point_id": null,
"deleted_at": null,
"article_number": null,
"category_resource_id": null,
"rent_number": null,
"hidden": 0,
"another": 0,
"option": "[{\"title\":null,\"value\":null}]",
"guid": null,
"created_user_id": 24980,
"updated_user_id": 24980,
"deleted_user_id": null,
"amount_rent_sum": [],
"amount_rent_time": null,
"parent_id": null,
"children_count": 0,
"amount_rent_count": 0,
"expense_sum": [],
"cash_deposit": [],
"is_group": false,
"prices": [
{
"id": 24389,
"created_at": "2023-11-28T08:36:44+0000",
"updated_at": "2023-11-28T08:36:44+0000",
"deleted_at": null,
"title": "Tariffs",
"created_user_id": 3805,
"updated_user_id": 3805,
"deleted_user_id": null,
"price_logic_id": 1,
"point_id": null,
"article_number": null
}
],
"resource_prices": [
{
"id": 122521,
"created_at": "2024-01-19T15:25:06+0000",
"updated_at": "2024-01-19T15:25:06+0000",
"deleted_at": null,
"created_user_id": null,
"updated_user_id": null,
"deleted_user_id": null,
"resource_id": 1269136,
"price_id": 24389,
"laravel_through_key": 304353,
"price": {
"id": 24389,
"created_at": "2023-11-28T08:36:44+0000",
"updated_at": "2023-11-28T08:36:44+0000",
"deleted_at": null,
"title": "Tariffs",
"created_user_id": 3805,
"updated_user_id": 3805,
"deleted_user_id": null,
"price_logic_id": 1,
"point_id": null,
"article_number": null
}
}
]
}
],
"first_page_url": "https://api.rentinhand.ru/v2/inventory/free?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.rentinhand.ru/v2/inventory/free?page=1",
"links": [
{
"url": null,
"label": "« Предыдущая",
"active": false
},
{
"url": "https://api.rentinhand.ru/v2/inventory/free?page=1",
"label": "1",
"active": true
}
],
"next_page_url": null,
"path": "https://api.rentinhand.ru/v2/inventory/free",
"per_page": 10,
"prev_page_url": null,
"to": 3,
"total": 3
}
Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: inventory/delete-multiple
requires authentication
Пример запроса:
curl --request DELETE \
"https://api.rentinhand.ru/v2/inventory/delete-multiple" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/qr.svg" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/qr.svg"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/qr.svg';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/qr.svg'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/barcode.svg" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/barcode.svg"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/barcode.svg';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/barcode.svg'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/qr/print" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/qr/print"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/qr/print';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/qr/print'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/codes" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/codes"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/codes';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/codes'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/codes" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/codes"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/codes';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/codes'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/codes/consequatur" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/codes/consequatur"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/codes/consequatur';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/codes/consequatur'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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/7809"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809'
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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/7809/generate-qr" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/7809/generate-qr"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/7809/generate-qr';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/7809/generate-qr'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/price"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"consequatur\",
\"values\": [
{
\"period\": \"consequatur\",
\"more_then\": \"consequatur\",
\"price_id\": 17,
\"is_fixed\": false
}
]
}"
const url = new URL(
"https://api.rentinhand.ru/v2/inventory/price"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "consequatur",
"values": [
{
"period": "consequatur",
"more_then": "consequatur",
"price_id": 17,
"is_fixed": 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/price';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'consequatur',
'values' => [
['period' => 'consequatur', 'more_then' => 'consequatur', 'price_id' => 17, 'is_fixed' => false],
],
],
]
);
$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
}
]
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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
}
]
}"
const url = new URL(
"https://api.rentinhand.ru/v2/inventory/price/124"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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
}
]
};
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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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],
],
],
]
);
$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
}
]
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/inventory/state"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/kit/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/kit"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/kit/3"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/kit/3"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/category/product"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/category/inventory"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/point"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/point/85"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/point/85"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/product/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/product"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/product/184"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/product/184"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/stock/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/stock"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "1993-09-14",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/stock/574"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "1993-09-14",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/stock/574"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Пример ответа (200):
{
"status": "OK",
"stockSessionKey": "WdSHyXjo89Vyrncv",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": 17,
\"value\": \"consequatur\",
\"pay_type_id\": 17,
\"payment_date\": \"2026-09-02T14:18:52+03:00\"
}"
const url = new URL(
"https://api.rentinhand.ru/v2/stock/builder/consequatur/add/payment"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 17,
"value": "consequatur",
"pay_type_id": 17,
"payment_date": "2026-09-02T14:18:52+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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'id' => 17,
'value' => 'consequatur',
'pay_type_id' => 17,
'payment_date' => '2026-09-02T14:18:52+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-02T14:18:52+03:00"
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/order/generate"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/order/code"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/order/code"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/order"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/order/2069"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/order/2069"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/payment-type"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/discount"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/discount/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/discount/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/service/additional"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/repair/state"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/repair/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Список: repair
requires authentication
Пример запроса:
curl --request GET \
--get "https://api.rentinhand.ru/v2/repair" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/repair"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/repair/5334"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/repair/5334"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/5334';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.
Удалить: repair (по id)
requires authentication
Пример запроса:
curl --request DELETE \
"https://api.rentinhand.ru/v2/repair/5334" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/repair/5334"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Пример ответа (200):
{
"status": "OK",
"repairSessionKey": "8a09f5a7b6dc6d0cdec17ea7f5671eab",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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-02T14:18:53+03:00\"
}"
const url = new URL(
"https://api.rentinhand.ru/v2/repair/builder/consequatur/add/payment"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 17,
"value": "consequatur",
"resource_id": 17,
"pay_type_id": 17,
"payment_date": "2026-09-02T14:18:53+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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'id' => 17,
'value' => 'consequatur',
'resource_id' => 17,
'pay_type_id' => 17,
'payment_date' => '2026-09-02T14:18:53+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-02T14:18:53+03:00"
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/service"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/service/70"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/service/70"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/delivery"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/55" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/delivery/55"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/55';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/55'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/55" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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/55"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/55';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/55'
payload = {
"id": 17,
"time_from": "consequatur",
"time_to": "consequatur"
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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/55" \
--header "Authorization: Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/delivery/55"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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/55';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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/55'
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/expense/export"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/expense/type"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/expense"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"consequatur\",
\"comment\": \"consequatur\",
\"expense_type_id\": 17,
\"value\": \"consequatur\",
\"date\": \"2026-09-02T14:18:38\",
\"inventory_id\": 17,
\"point_id\": 17
}"
const url = new URL(
"https://api.rentinhand.ru/v2/expense"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "consequatur",
"comment": "consequatur",
"expense_type_id": 17,
"value": "consequatur",
"date": "2026-09-02T14:18:38",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'consequatur',
'comment' => 'consequatur',
'expense_type_id' => 17,
'value' => 'consequatur',
'date' => '2026-09-02T14:18:38',
'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-02T14:18:38",
"inventory_id": 17,
"point_id": 17
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/expense/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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-02T14:18:38\",
\"inventory_id\": 17,
\"point_id\": 17
}"
const url = new URL(
"https://api.rentinhand.ru/v2/expense/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 17,
"name": "consequatur",
"comment": "consequatur",
"expense_type_id": 17,
"value": "consequatur",
"date": "2026-09-02T14:18:38",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'id' => 17,
'name' => 'consequatur',
'comment' => 'consequatur',
'expense_type_id' => 17,
'value' => 'consequatur',
'date' => '2026-09-02T14:18:38',
'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-02T14:18:38",
"inventory_id": 17,
"point_id": 17
}
headers = {
'Authorization': 'Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/expense/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/human/employee"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "2022-07-14",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "Test L..",
"number": "12",
"sms_flag": false,
"birthday": "1991-11-11",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "Test L..",
"number": "1",
"sms_flag": false,
"birthday": "1991-11-11",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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": "6018",
"passport_number": "333456",
"passport_take": "МВД России",
"passport_code": null,
"passport_take_date": "2010-06-23T20: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": "1997-09-17",
"passport_serial": "1346",
"passport_number": "456798",
"passport_take": "МВД России",
"passport_code": "123987",
"passport_take_date": "2013-08-05T20: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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/attraction"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/attraction/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/attraction/1"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/broken"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/broken/6"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.rentinhand.ru/v2/broken/6"
);
const headers = {
"Authorization": "Bearer {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}",
"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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type' => '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 {ТОКЕН_ИЗ_ЛИЧНОГО_КАБИНЕТА}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Получен ответ:
Запрос завершился ошибкой:
Проверьте подключение к сети и правильность токена. Подробности ошибки —
в консоли разработчика браузера.