Yandex.Market Partner API Integration – Automate Product Management
Imagine: you have 15,000 products, prices change every hour, and a manager spends 4 hours a day manually updating the Yandex.Market cabinet. Manual entry errors affect 5–8% of items. After integrating via Partner API, everything is automated: products upload in 2 minutes, prices sync on a schedule, orders are processed without human intervention. We have implemented over 50 such projects for stores with monthly turnovers ranging from 500,000 to 50 million rubles. With our experienced team, you get a guaranteed smooth integration.
Yandex.Market provides the Partner API—a set of REST methods for managing products, prices, stocks, and orders. The API supports three operational models: FBS (seller stores goods), FBO (goods at Market's warehouse), and DBS (seller handles delivery). In this article, we dive into the technical details: authentication, product upload, price and stock updates, and order processing via webhooks.
Why Automate Yandex.Market Operations?
Manual product management on a marketplace is not only time-consuming but also error-prone. Based on our data, automation via the API reduces catalog update time by 10–15 times. For example, manually uploading 100 products takes 30 minutes; via API it takes 2 minutes. Manual entry errors occur in 5–8% of cases (wrong price, incorrect stock), while automated sync keeps errors below 0.1%. Moreover, the API allows direct order export to your accounting system, eliminating duplicate data entry. This yields savings of up to 100,000 rubles per month for large catalogs.
What Data Is Synced via the API?
The Partner API provides endpoints for key entities:
- Products: create, update, delete; mandatory fields—offerId, name, price, count. Up to 1,000 products per request.
- Prices and Stocks: regular updates (e.g., hourly) via POST /campaigns/{id}/offer-prices/updates and PUT /campaigns/{id}/offers/stocks.
- Orders: fetch new orders, change statuses, cancel. Webhooks notify in real time about changes.
Be mindful of API limits: no more than 5,000 requests per day per campaign. We recommend batch processing.
How We Integrate: Technical Details
Authentication
The Partner API uses OAuth2 tokens. Authorization via Yandex OAuth:
class YandexMarketClient
{
private string $accessToken;
private int $campaignId;
private int $businessId;
public function request(string $method, string $path, array $data = []): array
{
return Http::withHeaders([
'Authorization' => "OAuth oauth_token={$this->accessToken}",
'Content-Type' => 'application/json',
])->{strtolower($method)}(
"https://api.partner.market.yandex.ru{$path}",
$data
)->json();
}
}
Product Upload/Update
public function updateOffers(array $products): void
{
$offers = array_map(fn($product) => [
'offerId' => $product['sku'],
'name' => $product['name'],
'category' => $product['category_name'],
'pictures' => $product['images'],
'vendor' => $product['brand'],
'description' => $product['description'],
'price' => ['value' => $product['price'], 'currencyId' => 'RUR'],
'count' => $product['stock'],
'barcodes' => [$product['barcode']],
], $products);
$this->request('PUT',
"/businesses/{$this->businessId}/offer-mappings",
['offerMappings' => array_map(fn($o) => ['offer' => $o], $offers)]
);
}
Price and Stock Sync
// Update prices
public function updatePrices(array $items): void
{
$offers = array_map(fn($item) => [
'id' => $item['sku'],
'price' => ['value' => $item['price'], 'currencyId' => 'RUR', 'vat' => 'VAT_20'],
], $items);
$this->request('POST',
"/campaigns/{$this->campaignId}/offer-prices/updates",
['offers' => $offers]
);
}
// Update FBS stocks
public function updateStocks(array $items, int $warehouseId): void
{
$skus = array_map(fn($item) => [
'sku' => $item['sku'],
'items' => [['count' => $item['stock'], 'type' => 'FIT']],
], $items);
$this->request('PUT',
"/campaigns/{$this->campaignId}/offers/stocks",
['skus' => $skus, 'warehouseId' => $warehouseId]
);
}
Order Processing
public function getNewOrders(): array
{
$resp = $this->request('GET',
"/campaigns/{$this->campaignId}/orders",
['status' => 'PROCESSING', 'substatus' => 'STARTED', 'pageSize' => 50]
);
return $resp['orders'] ?? [];
}
public function acceptOrder(int $orderId): void
{
$this->request('PUT',
"/campaigns/{$this->campaignId}/orders/{$orderId}/status",
['order' => ['status' => 'PROCESSING', 'substatus' => 'READY_TO_SHIP']]
);
}
Push Notifications for Orders
Yandex.Market supports push notifications via settings in the seller cabinet:
Route::post('/webhooks/yandex-market', function (Request $request) {
$events = $request->input('data');
foreach ($events as $event) {
match($event['type']) {
'ORDER_STATUS_CHANGED' => ProcessYandexOrderStatus::dispatch($event['orderId']),
default => null,
};
}
return response()->json(['status' => 'ok']);
});
Our Integration Process
- Analysis: We study your current accounting system, product catalog, and business processes.
- Design: Choose the model (FBS/FBO/DBS) and design the data exchange architecture.
- Implementation: Write code for product, price, stock, and order sync; configure webhooks.
- Testing: Validate on Yandex.Market sandbox, then on production.
- Deploy and Train: Deploy the solution, hold a training webinar for your team, and hand over documentation.
What's Included in the Turnkey Solution
Turnkey Solution Components
| Component | Description |
|---|---|
| Documentation | API spec, manager instructions |
| Access | OAuth tokens, campaignId, businessId, webhook setup |
| Integration Code | Modules for product, price, stock, order exchange |
| Testing | All scenarios: order placement, cancellation, return |
| Training | 1–2 hour webinar for your team |
| Support | 1 month of guaranteed technical support post-launch |
Manual vs Automated: A Comparison
Manual product updates on Yandex.Market (via cabinet) take about 30 minutes per 100 items. Automated integration via API takes 1–3 minutes for the entire catalog. API integration is 15 times faster than manual entry. Manual entry errors occur in 5–8% of cases; automatic sync keeps errors under 0.1%.
Common Integration Pitfalls (and How We Avoid Them)
Based on our experience, frequent issues include:
- Exceeding API limits: Attempting to upload over 1,000 products at once returns a 429 error. Solution: batch into groups of 1,000.
- Incorrect data format: e.g., wrong barcode format or missing required fields. We always validate request structures.
- OAuth token expiration: Tokens expire after one year. We implement automated token refresh.
- API version changes: Yandex may update the API. We monitor the Partner API documentation and adjust accordingly.
Timelines and Next Steps
Integration with Yandex.Market Partner API: 12–16 business days. Contact us for a project assessment—we will propose the optimal solution and precise timeline. Place an order for integration, and your products will always be up-to-date on Yandex.Market.







