Скилл для WB через seller api
The Wildberries API (WB API) provides sellers with tools to manage their store via HTTP REST API. It enables automation of store operations through integration with ERP, WMS, OMS, CRM systems.
All requests require an API token in the Authorization header. Tokens are JWT (RFC 7519), valid for 180 days.
Token types:
Each token has a bitmask field s controlling category access (Content, Analytics, Prices, Marketplace, Statistics, Promotion, Feedbacks, Buyers Chat, Supplies, Returns, Documents, Finance, Users).
| Category | Production Base URL | Sandbox Base URL |
|----------|-------------------|-----------------|
| Common (News, Seller Info, Tariffs) | common-api.wildberries.ru | -- |
| Content | content-api.wildberries.ru | content-api-sandbox.wildberries.ru |
| Analytics | seller-analytics-api.wildberries.ru | -- |
| Prices and Discounts | discounts-prices-api.wildberries.ru | discounts-prices-api-sandbox.wildberries.ru |
| Marketplace (FBS/DBS/Pickup) | marketplace-api.wildberries.ru | -- |
| Statistics | statistics-api.wildberries.ru | statistics-api-sandbox.wildberries.ru |
| Promotion | advert-api.wildberries.ru | advert-api-sandbox.wildberries.ru |
| Promotion (Media) | advert-media-api.wildberries.ru | -- |
| Promotions Calendar | dp-calendar-api.wildberries.ru | -- |
| Feedbacks and Questions | feedbacks-api.wildberries.ru | feedbacks-api-sandbox.wildberries.ru |
| Buyers Chat | buyer-chat-api.wildberries.ru | -- |
| Supplies (FBW) | supplies-api.wildberries.ru | -- |
| Buyers Returns | returns-api.wildberries.ru | -- |
| Documents | documents-api.wildberries.ru | -- |
| Finance | finance-api.wildberries.ru | -- |
| User Management | user-management-api.wildberries.ru | -- |
Uses token bucket algorithm. Key headers:
A 409 response typically counts as 10 requests toward the limit.
| Code | Meaning |
|------|---------|
| 200 | Success |
| 204 | Deleted/Updated/Confirmed |
| 400 | Bad request -- check syntax |
| 401 | Unauthorized -- check token category, expiry |
| 403 | Access denied -- token user deleted or method blocked |
| 404 | Not found -- check URL |
| 409 | Conflict -- check data requirements |
| 413 | Request body too large -- reduce objects |
| 422 | Unprocessable -- contradictory request data |
| 429 | Rate limited -- wait per X-Ratelimit-Retry |
| 5xx | Server error -- retry later |
GET https://{base-url}/ping -- works with any token category. Max 3 requests per 30 seconds.
Each category's full endpoint reference is in a separate file. Read the relevant file when you need detailed endpoint information:
When writing code that interacts with WB API:
1. Always pass the token via Authorization header (not query params)
2. Respect rate limits -- implement exponential backoff on 429 responses, read X-Ratelimit-Retry header
3. Use the correct base URL for the API category (do not mix hosts)
4. Handle pagination where endpoints support cursor/limit/offset patterns
5. For async reports (warehouse remains, paid storage, paid reception), use the create-task -> poll-status -> download pattern
6. Token category in the JWT s bitmask must include the bit for the API category being accessed
7. Sandbox endpoints use -sandbox suffix on the base domain where available
| Путь | Размер | SHA256 |
|---|---|---|
| SKILL.md | 5580 | 3165ff8e867a5b6f... |
| references/analytics.md | 2376 | 189db106af5d918e... |
| references/communication.md | 2906 | c39077566210d114... |
| references/content.md | 3063 | a7b2b0d7d843cf05... |
| references/finance-documents.md | 1148 | af2f19f8bc92da61... |
Войдите, чтобы оставить комментарий.
Комментариев пока нет.