Subtask 1-1: B2B Guide Documentation Access - Findings
Date: 2025-02-10
Key Discovery: Documentation Location Change
IMPORTANT: The B2B Guide documentation is NOT accessible at https://b2b-guide.lamoda.ru/ as specified in the original spec. The actual documentation is hosted at https://academy.lamoda.ru/ (Lamoda Seller Academy).
Actual Documentation Sources
Primary Documentation URL: https://academy.lamoda.ru/
This is the official Lamoda Seller Academy portal containing all API documentation, integration guides, and specifications.
Key Documentation Pages Found:
-
General API Information
- URL: https://academy.lamoda.ru/news/obshchaya-informatsiya-po-rabote-s-api/
- Content: Overview of both APIs, authentication, getting started guide
-
API Entry Points
- URL: https://academy.lamoda.ru/news/tochki-vkhoda-api/
- Content: Demo and Prod environment endpoints, URLs, examples
-
Seller Partner API vs B2B Platform API
- URL: https://academy.lamoda.ru/news/seller-partner-api-vs-b2b-platform-api/
- Content: Comparison of the two APIs, functionality distribution, recommendations
-
Lamoda B2B Platform API
- URL: https://academy.lamoda.ru/articles/api/apispec/lamoda-b2b-platform-api/
- Content: REST API specification (appears to be dynamically loaded)
-
Lamoda Seller Partner API
- URL: https://academy.lamoda.ru/articles/api/apispec2/lamoda-seller-partner-api/
- Content: JSON-RPC API specification (appears to be dynamically loaded)
Two API Systems Identified
1. Seller API (JSON-RPC)
- Purpose: Product catalog management
- Protocol: JSON-RPC 2.0
- Base URL:
https://public-api-seller.lamoda.ru/jsonrpc - Functions:
- Nomenclature (products) management
- Price management (FBS/FBO)
- Stock/inventory management
- Image uploads
- Product attributes
- Brand and category catalogs
- Best for: Catalog and content management
2. B2B Platform API (REST)
- Purpose: Operational tasks
- Protocol: REST
- Base URLs:
- Production:
https://api-b2b.lamoda.ru - Demo:
https://api-demo-b2b.lamoda.ru
- Production:
- Functions:
- Order management (get, update, status)
- Shipment creation and management
- Label printing
- Webhook notifications
- FBO shipments
- Delivery addresses, pickup points
- Best for: Order processing and logistics
Authentication
- Method: OAuth2 with JWT tokens
- Token TTL: 15 minutes (both APIs)
- Credentials:
client_idandclient_secret(same for both APIs) - Support email: api-integration@lamoda.ru
Token Endpoints:
- Seller API:
https://seller-gateway.service.lamoda.tech/jsonrpc- Method:
v1.tokens.create
- Method:
- B2B Platform:
https://api-b2b.lamoda.ru/auth/token(GET)
Environments
Demo (Test)
- Purpose: Development and testing
- Base URL:
https://api-demo-b2b.lamoda.ru - Data: Test data only
Production
- Purpose: Live operations
- Base URL:
https://api-b2b.lamoda.ru - Data: Real orders and products
GitHub Resources
-
PHP SDK
- URL: https://github.com/lamoda/lamoda-b2b-platform.php-sdk
- Basic API structure documentation
- Examples of token creation, orders, and shipments
-
DTO Repository
- URL: https://github.com/lamoda/lamoda-b2b-platform.dto
- Data Transfer Objects for B2B Platform exchanges
- Covers:
/api/v1/orders,/api/v1/shipments/out - Latest release: v1.7.0 (Jan 15, 2020)
-
Testing Tool
- URL: https://github.com/lamoda/gonkey
- Testing automation tool for API/REST services
Request Format
Seller API (JSON-RPC)
{
"jsonrpc": "2.0",
"method": "v1.nomenclatures.list",
"params": {
"seller_id": 123,
"page": 1,
"limit": 10
},
"id": "550e8400-e29b-41d4-a716-446655440000"
}
B2B Platform API (REST)
curl -X GET 'https://api-b2b.lamoda.ru/api/v1/orders' \
-H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json'
Integration Scenarios
Scenario 1: Full FBS Integration
- Load catalog: Seller API (
v1.nomenclatures.store,v1.nomenclature-images.update) - Set prices: Seller API (
v1.nomenclature.set-price) - Update stock: Seller API (
v1.stock.update) - Get orders: B2B Platform (
GET /api/v1/orders) - Assembly and labels: B2B Platform (
PUT /orders/{id}/collected,POST /api/v1/label/packs) - Ship: B2B Platform (
POST /api/v1/shipments/out)
Scenario 2: Catalog Management Only
- Use only Seller API
Scenario 3: FBO Integration
- Load catalog: Seller API
- Create shipment to warehouse: B2B Platform (
POST /api/v1/shipments/fulfilment) - Warehouse stock: B2B Platform (
GET /api/v1/stock/goods)
Key Limitations
- No batch processing: All operations must be done sequentially
- Token refresh required: Every 15 minutes
- IP whitelisting: Not supported
- Rate limits: Not explicitly documented in available pages
Additional Resources
- ChannelEngine Integration Guide: https://support.channelengine.com/hc/en-us/articles/4409485444509-LAMODA-marketplace-guide
- PDF Integration Guide (Russian): https://storage.yandexcloud.net/lamoda-b2b/SellerAcademy/Operations/20200211%20API%20интеграция.pdf
Next Steps for Full Documentation
- ✅ Access primary documentation sources (COMPLETE)
- ⏳ Access API specification pages (subtask-1-2)
- ⏳ Try to access Swagger UI for downloadable specs (subtask-1-3)
- ⏳ Document all endpoints for each API category
- ⏳ Document error codes and responses
- ⏳ Document rate limits (if available in specs)
- ⏳ Compile comprehensive Russian markdown documentation