Base URLs and Endpoints Structure
Date: 2025-02-10 Subtask: 2-2 - Document base URLs and endpoints structure Status: ✅ COMPLETED
Overview
Lamoda provides three distinct API systems for sellers and partners:
- B2B Platform API - REST API for order management, shipments, and logistics
- Seller JSON-RPC API - JSON-RPC 2.0 API for products, prices, and stock management
- Seller REST API - REST API for FBS returns and feedback management
Each API system has its own base URL, authentication method, and purpose.
1. B2B Platform API (REST)
Base URLs
| Environment | Base URL | Purpose |
|---|---|---|
| Demo | https://api-demo-b2b.lamoda.ru | Testing and development environment |
| Production | https://api-b2b.lamoda.ru | Live production environment |
Protocol: HTTPS only Authentication: OAuth2 with JWT tokens (24-hour token lifetime) API Format: REST (OpenAPI 3.0.0)
API Structure
All endpoints use the /api/v1/ prefix except for authentication.
Authentication Endpoint:
GET /auth/token- OAuth2 token retrieval
Endpoints Summary
Total Endpoints: 51 HTTP Methods: GET, POST, PUT, PATCH
Authentication (1 endpoint)
| Method | Path | Description |
|---|---|---|
| GET | /auth/token | Получение токена авторизации (OAuth2) |
Addresses (3 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/addresses/city | Поиск городов |
| GET | /api/v1/addresses/street | Поиск улиц |
| GET | /api/v1/addresses/building | Поиск зданий/домов |
Orders (13 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/orders | Получение списка заказов |
| GET | /api/v1/orders/{id} | Получение информации о заказе |
| PATCH | /api/v1/orders/{id} | Обновление заказа |
| POST | /api/v1/orders | Создание заказа |
| GET | /api/v1/orders/{id}/customer | Информация о покупателе |
| POST | /api/v1/orders/{id}/customer | Обновление данных покупателя |
| GET | /api/v1/orders/{id}/delivery_method | Метод доставки |
| POST | /api/v1/orders/{id}/delivery_method | Обновление метода доставки |
| GET | /api/v1/orders/{id}/shipping_address | Адрес доставки |
| POST | /api/v1/orders/{id}/shipping_address | Обновление адреса доставки |
| GET | /api/v1/orders/{id}/statuses | История статусов заказа |
| POST | /api/v1/orders/{id}/events | Добавление события к заказу |
| POST | /api/v1/orders/{orderNr}/change_status_request | Запрос на изменение статуса |
| POST | /api/v1/orders/{orderNr}/items/{itemNr}/change_status_request | Запрос на изменения статуса товара |
Nomenclature/Products (7 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/nomenclatures | Список номенклатуры |
| POST | /api/v1/nomenclatures | Создание номенклатуры |
| GET | /api/v1/nomenclature/sell-values | Значения для продажи |
| PATCH | /api/v1/nomenclatures/{sku} | Обновление номенклатуры |
| PUT | /api/v1/nomenclature/ | Полное обновление номенклатуры |
| GET | /api/v1/goods | Список товаров |
| GET | /api/v1/container/{barcode} | Информация о контейнере по штрихкоду |
Shipments (8 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/shipments | Список отгрузок |
| GET | /api/v1/shipments/fulfilment | Список отгрузок для выполнения |
| POST | /api/v1/shipments/fulfilment | Создание отгрузки для выполнения |
| GET | /api/v1/shipments/fulfilment/{id} | Детали отгрузки |
| GET | /api/v1/shipments/fulfilment/{id}/items | Товары в отгрузке |
| POST | /api/v1/shipments/out | Отгрузка со склада |
| POST | /api/v1/shipments/out/{id}/events | События отгрузки |
| POST | /api/v1/brand-packing/pack-shipment | Упаковка отгрузки |
Stock (2 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/stock/goods | Остатки товаров на складе |
| POST | /api/v1/stock/goods | Обновление остатков |
Delivery (2 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/delivery_methods | Список методов доставки |
| GET | /api/v1/delivery_info | Информация о доставке |
| POST | /api/v1/delivery_info/{orderNr} | Обновление информации о доставке |
Pickup Points (2 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/pickup_points | Список пунктов выдачи |
| GET | /api/v1/pickup_points/{id} | Детали пункта выдачи |
Partner Pickups (3 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/partner-pickups | Список pickup-ов партнера |
| POST | /api/v1/partner-pickups | Создание pickup |
| PATCH | /api/v1/partner-pickups | Обновление pickup |
Gift Certificates (3 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/gift-certificates | Список подарочных сертификатов |
| POST | /api/v1/gift-certificates | Создание сертификата |
| GET | /api/v1/gift-certificates/balance | Баланс сертификата |
| POST | /api/v1/gift-certificates/payments | Оплата сертификатом |
Labels (1 endpoint)
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/reports/label/stream | Генерация этикеток (PDF stream) |
Notifications (2 endpoints)
| Method | Path | Description |
|---|---|---|
| POST | /api/v1/notifications/resend | Повторная отправка уведомления |
| POST | /url to receive the notification request | Webhook для получения уведомлений |
| POST | /url to receive the request | Webhook для получения запросов |
Response Format
All B2B API responses use JSON format with consistent structure:
{
"data": { ... },
"meta": {
"total": 100,
"page": 1,
"limit": 20
}
}
Pagination
List endpoints support pagination:
page- Page number (default: 1)limit- Items per page (default: 20, max: 100)
2. Seller JSON-RPC API
Base URL
Production: https://public-api-seller.lamoda.ru/jsonrpc
Alternative Gateway: https://seller-gateway.service.lamoda.tech/jsonrpc
Protocol: HTTPS only Authentication: OAuth2 with JWT tokens (15-minute token lifetime) API Format: JSON-RPC 2.0
API Structure
All requests use POST method to the base URL with JSON-RPC 2.0 payload.
Request Format:
{
"jsonrpc": "2.0",
"id": "550e8400-e29b-41d4-a716-446655440000",
"method": "v1.method.name",
"params": { }
}
Methods Summary
Total Methods: 24 HTTP Method: All methods use POST
Authentication (1 method)
| Method | Description |
|---|---|
v1.tokens.create | Создание токена авторизации (OAuth2) |
Dictionaries (2 methods)
| Method | Description |
|---|---|
v1.dictionaries.get | Получение справочников |
v1.attribute-dictionaries.list | Список справочников атрибутов |
Nomenclatures/Products (10 methods)
| Method | Description |
|---|---|
v1.nomenclatures.list | Список номенклатуры |
v1.nomenclature.list | Список товаров (альтернативный метод) |
v1.nomenclatures.store | Создание/обновление товаров |
v1.nomenclatures.update-activation | Обновление активности товаров |
v1.nomenclatures.set-prices | Установка цен для нескольких товаров |
v1.nomenclature.set-price | Установка цены для товара |
v1.nomenclature.update-price | Обновление цены товара |
v1.nomenclatures-metadata.get-axapta-categories | Получение категорий Axapta |
v1.nomenclatures-metadata.get-brands | Получение списка брендов |
v1.nomenclature-images.update | Обновление изображений товаров |
Attributes (3 methods)
| Method | Description |
|---|---|
v1.attributes.list | Список атрибутов |
v1.attributes.sku.list | Список атрибутов для SKU |
v1.attributes-dictionaries-mappings.get | Получение маппингов справочников |
Stock (2 methods)
| Method | Description |
|---|---|
v1.stock.list | Получение остатков на складе |
v1.fbo/warehouse.list | Список складов FBO |
Orders (2 methods)
| Method | Description |
|---|---|
v1.order-item-statuses.list | Список статусов товаров в заказе |
v1.order.ship | Отгрузка заказа |
v1.order/delivery-note.download | Скачать накладную на отгрузку |
Categories (1 method)
| Method | Description |
|---|---|
v1.erp-categories.list | Список категорий ERP |
Questions (2 methods)
| Method | Description |
|---|---|
v1.questions.list | Список вопросов от покупателей |
v1.questions.answer | Ответ на вопрос покупателя |
JSON-RPC Response Format
All responses follow JSON-RPC 2.0 specification:
{
"jsonrpc": "2.0",
"id": "550e8400-e29b-41d4-a716-446655440000",
"result": { ... },
"error": null
}
Error Handling
JSON-RPC errors follow the standard format:
{
"jsonrpc": "2.0",
"id": "request-id",
"error": {
"code": -32600,
"message": "Invalid Request",
"data": { ... }
}
}
3. Seller REST API
Base URL
Production: https://public-api-seller.lamoda.ru/api
Protocol: HTTPS only Authentication: Bearer Token (shares token with JSON-RPC API, 15-minute lifetime) API Format: REST (OpenAPI 3.0.0)
API Structure
All endpoints use the /v2/ prefix.
Endpoints Summary
Total Endpoints: 10 HTTP Methods: GET, POST
FBS Return Boxes (5 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /v2/fbs/return-boxes | Список возвратных коробов FBS |
| GET | /v2/fbs/return-boxes/{id} | Детали возвратного короба |
| GET | /v2/fbs/return-boxes-summary | Сводка по возвратным коробам |
| GET | /v2/fbs/return-boxes-anomalies | Коробы с аномалиями (неопознанные посылки) |
| GET | /v2/fbs/return-boxes/{id}/status-history | История статусов короба |
FBS Return Items (3 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /v2/fbs/return-items | Список возвращенных товаров FBS |
| GET | /v2/fbs/return-items-summary | Сводка по возвращенным товарам |
| GET | /v2/fbs/return-items/{itemId}/status-history | История статусов товара |
Feedback (2 endpoints)
| Method | Path | Description |
|---|---|---|
| GET | /v2/feedback/questions | Список вопросов об обратной связи |
| POST | /v2/feedback/questions/{questionId}/answer | Ответ на вопрос об обратной связи |
Pagination Support
List endpoints support pagination:
page- Page number (default: 1)limit- Items per page (default: 20)createdFrom- Filter by creation date (from)createdTo- Filter by creation date (to)sellerId- Filter by seller ID
Sorting
Sort parameter: sort (e.g., createdAt:desc)
Comparison Table
| Feature | B2B Platform API | Seller JSON-RPC API | Seller REST API |
|---|---|---|---|
| Base URL | https://api-b2b.lamoda.ru | https://public-api-seller.lamoda.ru/jsonrpc | https://public-api-seller.lamoda.ru/api |
| Demo URL | https://api-demo-b2b.lamoda.ru | N/A | N/A |
| Protocol | REST (OpenAPI 3.0) | JSON-RPC 2.0 | REST (OpenAPI 3.0) |
| Token Lifetime | 24 hours | 15 minutes | 15 minutes (shared) |
| Main Purpose | Orders, Shipments, Logistics | Products, Prices, Stock | FBS Returns, Feedback |
| Total Endpoints | 51 | 24 methods | 10 endpoints |
| HTTP Methods | GET, POST, PUT, PATCH | POST only | GET, POST |
| API Version | v1 | v1 | v2 |
| Authentication | OAuth2 (JWT) | OAuth2 (JWT) | Bearer Token |
Usage Examples
B2B Platform API
# Get list of orders
curl -X GET "https://api-b2b.lamoda.ru/api/v1/orders?page=1&limit=20" \
-H "Authorization: Bearer {access_token}"
# Create a shipment
curl -X POST "https://api-b2b.lamoda.ru/api/v1/shipments/fulfilment" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{ ... }'
Seller JSON-RPC API
# Get stock list
curl -X POST "https://public-api-seller.lamoda.ru/jsonrpc" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "550e8400-e29b-41d4-a716-446655440000",
"method": "v1.stock.list",
"params": {}
}'
Seller REST API
# Get FBS return boxes
curl -X GET "https://public-api-seller.lamoda.ru/api/v2/fbs/return-boxes?page=1&limit=20" \
-H "Authorization: Bearer {access_token}"
# Answer feedback question
curl -X POST "https://public-api-seller.lamoda.ru/api/v2/feedback/questions/{questionId}/answer" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{ "answer": "Thank you for your feedback!" }'
Key Observations
- Multiple API Systems: Lamoda has three separate APIs for different purposes
- Different Token Lifetimes: B2B Platform (24h) vs Seller APIs (15min)
- Shared Authentication: JSON-RPC and REST APIs share token system
- Demo Environment: Only B2B Platform has a demo environment
- Modern Standards: All APIs use OpenAPI 3.0 or Swagger 2.0
- Consistent Patterns: Standardized response formats across all APIs
- Pagination Support: List endpoints support pagination with consistent parameters
- Error Handling: Standardized error responses across all APIs
Next Steps
The following subtasks will provide more details:
- Subtask 2-3: Rate limits and throttling policies
- Subtask 2-4: Business models (FBL, FBS, FBO)
- Subtasks 2-5 to 2-12: Detailed endpoint documentation by category
Documentation Sources:
- B2B Platform API:
/Users/antonnozdrin/Tools/SCRAP/marketplace-api-specs/lamoda/lamoda_b2b_openapi.yaml(252KB) - Seller JSON-RPC API:
/Users/antonnozdrin/Tools/SCRAP/marketplace-api-specs/lamoda/lamoda_seller_jsonrpc_api.yaml(96KB) - Seller REST API:
/Users/antonnozdrin/Tools/SCRAP/marketplace-api-specs/lamoda/lamoda_seller_rest_api.yaml(46KB)
Total Endpoints Documented: 85 (51 + 24 + 10)