# Справочник API

Все операции Seller API v1: адреса, права ключа, параметры, ответы и примеры на пяти языках.

Боевое окружение: https://api.tiluna.ru/v1. Песочница: https://sandbox-api.tiluna.ru/v1 (только ключи `tl_test_`).
Ключ передаётся в заголовке `Authorization: Bearer <ключ>`.
Спецификация OpenAPI: https://docs.tiluna.ru/openapi/seller-v1.yaml и https://docs.tiluna.ru/openapi/seller-v1.json.

## Операции

- [Проверить доступность API](https://docs.tiluna.ru/reference/service/ping.md): `GET /ping`
- [Получить спецификацию OpenAPI](https://docs.tiluna.ru/reference/service/get-open-api-spec.md): `GET /openapi`
- [Список товаров](https://docs.tiluna.ru/reference/products/list-products.md): `GET /products`
- [Создать товар](https://docs.tiluna.ru/reference/products/create-product.md): `POST /products`
- [Получить товар](https://docs.tiluna.ru/reference/products/get-product.md): `GET /products/{productId}`
- [Изменить товар](https://docs.tiluna.ru/reference/products/update-product.md): `PATCH /products/{productId}`
- [Перенести товар в архив](https://docs.tiluna.ru/reference/products/archive-product.md): `POST /products/{productId}/archive`
- [Отправить товар на модерацию](https://docs.tiluna.ru/reference/products/submit-product.md): `POST /products/{productId}/submit`
- [Варианты товара](https://docs.tiluna.ru/reference/products/list-product-variants.md): `GET /products/{productId}/variants`
- [Создать вариант](https://docs.tiluna.ru/reference/products/create-product-variant.md): `POST /products/{productId}/variants`
- [Изменить вариант](https://docs.tiluna.ru/reference/products/update-product-variant.md): `PATCH /products/{productId}/variants/{variantId}`
- [Категории каталога](https://docs.tiluna.ru/reference/products/list-categories.md): `GET /categories`
- [Характеристики категории](https://docs.tiluna.ru/reference/products/list-category-attributes.md): `GET /categories/{categoryId}/attributes`
- [Список остатков](https://docs.tiluna.ru/reference/inventory/list-inventory.md): `GET /inventory`
- [Изменить остатки пакетом](https://docs.tiluna.ru/reference/inventory/batch-update-inventory.md): `POST /inventory/batch`
- [Список цен](https://docs.tiluna.ru/reference/prices/list-prices.md): `GET /prices`
- [Изменить цены пакетом](https://docs.tiluna.ru/reference/prices/batch-update-prices.md): `POST /prices/batch`
- [Список заказов](https://docs.tiluna.ru/reference/orders/list-orders.md): `GET /orders`
- [Получить заказ](https://docs.tiluna.ru/reference/orders/get-order.md): `GET /orders/{orderId}`
- [Принять заказ](https://docs.tiluna.ru/reference/orders/accept-order.md): `POST /orders/{orderId}/accept`
- [Отменить заказ](https://docs.tiluna.ru/reference/orders/cancel-order.md): `POST /orders/{orderId}/cancel`
- [Список возвратов](https://docs.tiluna.ru/reference/returns/list-returns.md): `GET /returns`
- [Получить возврат](https://docs.tiluna.ru/reference/returns/get-return.md): `GET /returns/{returnId}`
- [Согласиться с возвратом](https://docs.tiluna.ru/reference/returns/approve-return.md): `POST /returns/{returnId}/approve`
- [Возразить по возврату](https://docs.tiluna.ru/reference/returns/reject-return.md): `POST /returns/{returnId}/reject`
- [Передать возврат в арбитраж](https://docs.tiluna.ru/reference/returns/escalate-return.md): `POST /returns/{returnId}/escalate`
- [Список отзывов](https://docs.tiluna.ru/reference/reviews/list-reviews.md): `GET /reviews`
- [Сводка по отзывам](https://docs.tiluna.ru/reference/reviews/get-review-stats.md): `GET /reviews/stats`
- [Ответить на отзыв](https://docs.tiluna.ru/reference/reviews/reply-to-review.md): `POST /reviews/{reviewId}/reply`
- [Показатели продаж](https://docs.tiluna.ru/reference/analytics/get-analytics.md): `GET /analytics`
- [Финансовые данные](https://docs.tiluna.ru/reference/finance/get-finance.md): `GET /finance`
- [Баланс](https://docs.tiluna.ru/reference/finance/get-balance.md): `GET /balance`
- [Операции леджера](https://docs.tiluna.ru/reference/finance/list-transactions.md): `GET /transactions`
- [Выплаты](https://docs.tiluna.ru/reference/finance/list-payouts.md): `GET /payouts`
- [Получить выплату](https://docs.tiluna.ru/reference/finance/get-payout.md): `GET /payouts/{id}`
- [Заказы выплаты](https://docs.tiluna.ru/reference/finance/list-payout-sources.md): `GET /payouts/{id}/sources`
- [Услуги и удержания](https://docs.tiluna.ru/reference/finance/list-deductions.md): `GET /deductions`
- [Отчёты агента](https://docs.tiluna.ru/reference/finance/list-agent-reports.md): `GET /agent_reports`
- [Получить отчёт агента](https://docs.tiluna.ru/reference/finance/get-agent-report.md): `GET /agent_reports/{id}`
- [Строки отчёта агента](https://docs.tiluna.ru/reference/finance/list-agent-report-lines.md): `GET /agent_reports/{id}/lines`
- [PDF отчёта агента](https://docs.tiluna.ru/reference/finance/get-agent-report-file.md): `GET /agent_reports/{id}/file`
- [Ключ запроса](https://docs.tiluna.ru/reference/account/get-current-api-key.md): `GET /me`
- [Юрлица](https://docs.tiluna.ru/reference/account/list-legal-entities.md): `GET /legal_entities`
- [Получить юрлицо](https://docs.tiluna.ru/reference/account/get-legal-entity.md): `GET /legal_entities/{id}`
- [Список отчётов](https://docs.tiluna.ru/reference/reports/list-reports.md): `GET /reports`
- [Заказать отчёт](https://docs.tiluna.ru/reference/reports/create-report.md): `POST /reports`
- [Статус отчёта](https://docs.tiluna.ru/reference/reports/get-report.md): `GET /reports/{id}`
- [Скачать файл отчёта](https://docs.tiluna.ru/reference/reports/download-report.md): `GET /reports/{id}/download`
- [Строки отчёта](https://docs.tiluna.ru/reference/reports/list-report-rows.md): `GET /reports/{id}/rows`
- [Лента событий](https://docs.tiluna.ru/reference/webhooks/list-events.md): `GET /events`
- [Событие](https://docs.tiluna.ru/reference/webhooks/get-event.md): `GET /events/{eventId}`
- [Типы событий](https://docs.tiluna.ru/reference/webhooks/list-event-types.md): `GET /event_types`
- [Адреса вебхуков](https://docs.tiluna.ru/reference/webhooks/list-webhook-endpoints.md): `GET /webhook_endpoints`
- [Уведомление о событии](https://docs.tiluna.ru/reference/webhooks/receive-seller-event.md): `вебхук sellerEvent`
- [Создать тестовый заказ](https://docs.tiluna.ru/reference/test-helpers/test-helpers-create-order.md): `POST /test_helpers/orders`
- [Оплатить тестовый заказ](https://docs.tiluna.ru/reference/test-helpers/test-helpers-pay-order.md): `POST /test_helpers/orders/{orderId}/pay`
- [Продвинуть заказ у перевозчика](https://docs.tiluna.ru/reference/test-helpers/test-helpers-advance-order.md): `POST /test_helpers/orders/{orderId}/advance`
- [Отменить заказ от имени покупателя](https://docs.tiluna.ru/reference/test-helpers/test-helpers-cancel-order-by-buyer.md): `POST /test_helpers/orders/{orderId}/cancel_by_buyer`
- [Создать заявку на возврат](https://docs.tiluna.ru/reference/test-helpers/test-helpers-create-return.md): `POST /test_helpers/returns`
- [Продвинуть возврат](https://docs.tiluna.ru/reference/test-helpers/test-helpers-advance-return.md): `POST /test_helpers/returns/{returnId}/advance`
- [Сформировать отчёт агента](https://docs.tiluna.ru/reference/test-helpers/test-helpers-create-agent-report.md): `POST /test_helpers/agent_reports`
- [Создать тестовую выплату](https://docs.tiluna.ru/reference/test-helpers/test-helpers-create-payout.md): `POST /test_helpers/payouts`
- [Отправить образец события](https://docs.tiluna.ru/reference/test-helpers/test-helpers-send-event.md): `POST /test_helpers/events`
- [Сбросить тестовый аккаунт](https://docs.tiluna.ru/reference/test-helpers/test-helpers-reset.md): `POST /test_helpers/reset`
- [Заказ оплачен](https://docs.tiluna.ru/reference/webhook-events/receive-order-paid.md): `вебхук order.paid`
- [Заказ принят](https://docs.tiluna.ru/reference/webhook-events/receive-order-accepted.md): `вебхук order.accepted`
- [Заказ отгружен](https://docs.tiluna.ru/reference/webhook-events/receive-order-shipped.md): `вебхук order.shipped`
- [Заказ отгружен частично](https://docs.tiluna.ru/reference/webhook-events/receive-order-partially-shipped.md): `вебхук order.partially_shipped`
- [Заказ отменён](https://docs.tiluna.ru/reference/webhook-events/receive-order-cancelled.md): `вебхук order.cancelled`
- [Отменена часть позиций](https://docs.tiluna.ru/reference/webhook-events/receive-order-items-cancelled.md): `вебхук order.items_cancelled`
- [Изменился статус заказа](https://docs.tiluna.ru/reference/webhook-events/receive-order-status-changed.md): `вебхук order.status_changed`
- [Заказ доставлен](https://docs.tiluna.ru/reference/webhook-events/receive-order-delivered.md): `вебхук order.delivered`
- [Деньги по заказу возвращены](https://docs.tiluna.ru/reference/webhook-events/receive-order-refunded.md): `вебхук order.refunded`
- [Обновилось отслеживание отправления](https://docs.tiluna.ru/reference/webhook-events/receive-shipment-tracking-updated.md): `вебхук shipment.tracking_updated`
- [Оформлен возврат](https://docs.tiluna.ru/reference/webhook-events/receive-return-created.md): `вебхук return.created`
- [Возврат одобрен](https://docs.tiluna.ru/reference/webhook-events/receive-return-approved.md): `вебхук return.approved`
- [Возврат отклонён](https://docs.tiluna.ru/reference/webhook-events/receive-return-rejected.md): `вебхук return.rejected`
- [Спор передан Тилуне](https://docs.tiluna.ru/reference/webhook-events/receive-return-escalated.md): `вебхук return.escalated`
- [Обновилось отправление возврата](https://docs.tiluna.ru/reference/webhook-events/receive-return-shipment-updated.md): `вебхук return.shipment_updated`
- [Деньги по возврату отправлены](https://docs.tiluna.ru/reference/webhook-events/receive-return-refunded.md): `вебхук return.refunded`
- [Спор по возврату решён](https://docs.tiluna.ru/reference/webhook-events/receive-return-resolved.md): `вебхук return.resolved`
- [Создан товар](https://docs.tiluna.ru/reference/webhook-events/receive-product-created.md): `вебхук product.created`
- [Изменён товар](https://docs.tiluna.ru/reference/webhook-events/receive-product-updated.md): `вебхук product.updated`
- [Товар в архиве](https://docs.tiluna.ru/reference/webhook-events/receive-product-archived.md): `вебхук product.archived`
- [Товар прошёл модерацию](https://docs.tiluna.ru/reference/webhook-events/receive-product-moderation-approved.md): `вебхук product.moderation.approved`
- [Товар отклонён модерацией](https://docs.tiluna.ru/reference/webhook-events/receive-product-moderation-rejected.md): `вебхук product.moderation.rejected`
- [Товар вернули на доработку](https://docs.tiluna.ru/reference/webhook-events/receive-product-moderation-revision-requested.md): `вебхук product.moderation.revision_requested`
- [Изменились остатки](https://docs.tiluna.ru/reference/webhook-events/receive-inventory-updated.md): `вебхук inventory.updated`
- [Изменились цены](https://docs.tiluna.ru/reference/webhook-events/receive-price-updated.md): `вебхук price.updated`
- [Опубликован отзыв](https://docs.tiluna.ru/reference/webhook-events/receive-review-created.md): `вебхук review.created`
- [Продавец ответил на отзыв](https://docs.tiluna.ru/reference/webhook-events/receive-review-replied.md): `вебхук review.replied`
- [Создана выплата](https://docs.tiluna.ru/reference/webhook-events/receive-payout-created.md): `вебхук payout.created`
- [Выплата проведена](https://docs.tiluna.ru/reference/webhook-events/receive-payout-paid.md): `вебхук payout.paid`
- [Выплата не прошла](https://docs.tiluna.ru/reference/webhook-events/receive-payout-failed.md): `вебхук payout.failed`
- [Отчёт агента готов](https://docs.tiluna.ru/reference/webhook-events/receive-agent-report-ready.md): `вебхук agent_report.ready`
- [Отчёт готов к скачиванию](https://docs.tiluna.ru/reference/webhook-events/receive-report-ready.md): `вебхук report.ready`
- [Проверка адреса](https://docs.tiluna.ru/reference/webhook-events/receive-ping.md): `вебхук ping`
