1C-Bitrix Integration with SberMegaMarket
SberMegaMarket (formerly goods.ru) operates on DBS and FBS model, but integration is different from Ozon and Wildberries. Main product upload channel — XML feed, close in format to YML but with extensions. Order management — via Merchant API. This duality (feed for catalog + API for orders) requires setup of two independent mechanisms on Bitrix side.
Product Feed: Format and Requirements
SberMegaMarket accepts feed in YML-compatible format, but with additional tags. Feed URL specified in seller's personal account, marketplace retrieves it on schedule (usually every 2–4 hours).
Structure of <offer>:
| Tag | Mandatory | Description | Field in Bitrix |
|---|---|---|---|
<name> |
Yes | Title | NAME |
<price> |
Yes | Price | Catalog price type |
<categoryId> |
Yes | Category | Infoblock section |
<picture> |
Yes | Photo (min 1) | DETAIL_PICTURE |
<vendor> |
Yes | Brand | Property |
<barcode> |
Yes | EAN-13 | Property |
<description> |
Yes | Description | DETAIL_TEXT |
<outlets> |
Yes (DBS) | Inventory by points | Warehouses |
<shipment-options> |
Yes (DBS) | Shipment terms | Settings |
<outlets> — key tag for DBS model. Contains <outlet id="ID" instock="QUANTITY"/> for each point of sale. Point ID created in SberMegaMarket personal account. In Bitrix, inventory taken from warehouse accounting of catalog module or separate element property.
<shipment-options> — indicates how many days seller ready to ship product. Example: <option days="1" order-before="14"/> — shipment in 1 day when ordered before 2 PM. Marketplace uses this for buyer delivery time calculation.
Feed Generation in Bitrix
Standard YML export in Bitrix (catalog.export, "Yandex.Market" profile) doesn't generate <outlets> and <shipment-options> tags. Options:
1. Standard export modification. In handler file /bitrix/php_interface/include/catalog_export/ modify XML generation template — add needed tags. Inventory pulled from CCatalogStoreProduct::GetList() for each product.
2. Marketplace module. Ready solutions for SberMegaMarket (e.g., from Kooplex or RetailCRM) add export profile with support for all specific tags.
3. Separate PHP script. Script via cron generates XML, selecting data from infoblock via CIBlockElement::GetList() API. Advantage — full control without module export dependency.
Merchant API: Order Processing
SberMegaMarket API (https://partner.sbermegamarket.ru/api/) works via POST requests with JSON. Authorization — token in header.
DBS order cycle:
-
Get new orders.
POST /api/market/v1/orderService/order/new— returns orders in NEW status. -
Confirm.
POST /api/market/v1/orderService/order/confirm— seller confirms order and specifies shipment term. -
Ship.
POST /api/market/v1/orderService/order/packing— transmit tracking number and confirm shipment. -
Cancel.
POST /api/market/v1/orderService/order/reject— cancel with reason.
On Bitrix side cron agent every 5–10 minutes polls API for new orders. When received:
- Creates order in
Bitrix\Sale\Orderwith product mapping byofferId(article) or barcode. - Sets order properties: SberMegaMarket order number, delivery method, buyer data (SberMegaMarket transmits name, phone, address).
- When order status changes in Bitrix — event handler
OnSaleOrderSavedcalls corresponding API method.
Price and Inventory Updates
Through feed. Prices and inventory update on next marketplace feed parse. Delay — up to 4 hours. For most stores this is sufficient.
Through API (accelerated update). For fast-moving products — method POST /api/market/v1/offerService/manualPrice/save for prices and inventory update via <outlets> in feed with forced refresh.
Problem of inventory delay: if product out of stock but feed not updated yet — marketplace accepts order for unavailable product. Cancellation = penalty + seller rating drop. Solution: configure feed generation via cron every 30 minutes and use API for critical products.
Categories and Moderation
SberMegaMarket uses its own category tree. Mapping set in personal account when configuring feed — for each <categoryId> from your feed specify correspondence to marketplace category.
Product moderation takes 1–3 days. Rejection reasons:
- Missing barcode.
- Incorrect brand (not in marketplace directory).
- Photos don't meet requirements (watermarks, collages, text on image).
Integration Timeline
| Scenario | Timeline |
|---|---|
| Feed + manual order processing | 3–5 days |
| Feed + order API, up to 1000 products | 1 week |
| Full integration: feed + orders + inventory + statuses | 1.5–2 weeks |







