1C-Bitrix Dalli Integration: API, Rates, Statuses

Integration of 1C-Bitrix with Dalli Delivery Aggregator An online store loses orders if it cannot deliver the product on the same day. According to statistics, 30% of orders in Moscow require such speed, and without express delivery, stores lose up to 15% of customers. Dalli Service is an aggrega

Our competencies:

Frequently Asked Questions

Integration of 1C-Bitrix with Dalli Delivery Aggregator

An online store loses orders if it cannot deliver the product on the same day. According to statistics, 30% of orders in Moscow require such speed, and without express delivery, stores lose up to 15% of customers. Dalli Service is an aggregator and logistics operator that solves this problem. But Bitrix has no built-in integration with Dalli. We have implemented dozens of such integrations and know how to make the process seamless. Our experience: 10+ years in Bitrix development and 50+ successful projects with Dalli. Savings on delivery due to tariff optimization can reach significant amounts per parcel.

Why Dalli is Better Than Direct Contracts with Carriers

Connecting Dalli through our module instead of direct integrations with each carrier reduces development costs by 3–4 times. You get a single API for delivery: the Dalli courier service and partners are combined in one protocol. No need to negotiate separate contracts with CDEK, Boxberry, etc.—everything is implemented through Dalli. According to the documentation, the aggregator handles order distribution among carriers and monitors deadlines. Dalli API

How Express Same-Day Delivery Works

Express delivery is a key feature of Dalli for Moscow and Saint Petersburg. It works under the following conditions:

  • The order is placed before a certain time (usually by 14:00–15:00)
  • The sender's warehouse is in the coverage area
  • The product is physically ready for shipment

In calculateConcrete(), we check the current time: if date('H') >= $cutoffHour, express delivery today is not available; we offer next-day delivery.

$currentHour = (int) date('H'); $cutoffHour = 14; // Cutoff hour from module settings if ($currentHour >= $cutoffHour) { $deliveryDate = date('d.m.Y', strtotime('+1 day')); $label = 'Delivery tomorrow, ' . $deliveryDate; } else { $deliveryDate = date('d.m.Y'); $label = 'Delivery today, ' . $deliveryDate; } 

What the Dalli API Provides and How to Connect It

Dalli API is REST, authorization via token. Documentation is available on the dalli.ru portal for partners.

Main operations:

  • Calculate delivery cost
  • Create orders (single and batch)
  • Get statuses
  • List pickup points
  • Get labels (PDF)
  • Register webhooks

Dalli works predominantly on the model: the store submits requests via API, Dalli distributes them between its own service and partners depending on the address and deadlines.

Delivery Module in Bitrix

The class inherits from \Bitrix\Sale\Delivery\Services\Base. Parameters in b_sale_delivery_service_params:

  • DALLI_TOKEN — API token
  • SENDER_ID — sender point ID (obtained upon registration)
  • DELIVERY_MODEexpress (day-of / next day) or standard
  • COD_ALLOWED — whether cash on delivery is allowed

Cost Calculation

In calculateConcrete(), we pass address, dimensions, declared value. Dalli returns variants with different deadlines (standard, express) and prices:

$calcResponse = $httpClient->post('/v1/calculate', [ 'sender_id' => $senderId, 'address' => $recipientAddress, 'weight' => $weightGram, 'dimensions' => $dimensions, 'declared_value' => $declaredValue, 'delivery_types' => ['standard', 'express'], ]); foreach ($calcResponse['variants'] as $variant) { // $variant['type'], $variant['price'], $variant['delivery_date'] } 

If the store offers two delivery methods (standard and express), we create two instances of the module with different DELIVERY_MODE in settings.

Creating an Order

$orderPayload = [ 'sender_id' => $senderId, 'external_id' => 'SHOP-' . $bitrixOrderId, 'delivery_type' => $deliveryMode, 'recipient' => [ 'name' => $name, 'phone' => $phone, 'address' => $address, ], 'packages' => [[ 'weight' => $weightGram, 'dimensions' => $dimensions, 'items' => $items, ]], 'declared_value' => $declaredValue, 'cash_on_delivery'=> $codAmount, 'comment' => $comment, ]; 

Response: order_id in the Dalli system. The label is obtained via GET /orders/{id}/label.

Batch Order Creation

If orders accumulate during the day, Dalli supports POST /orders/batch — creating multiple orders in one request. The manager clicks "Send to Dalli" in the Bitrix admin panel — the script collects all orders with the "Ready to ship" status and sends them as a batch.

Statuses and Webhooks

Webhooks: Dalli sends notifications to the merchant's URL. Register them in the personal account. Mapping:

Dalli Status Bitrix
accepted Accepted
on_the_way In Transit
delivered Delivered
partially_delivered Partial Redemption
returned Returned
failed Delivery Error

What Problems Does the Dalli Integration Solve?

The integration solves three key problems: speed of connecting a new carrier, automation of calculations, and status synchronization. Without it, managers manually create orders on the Dalli website, make mistakes in addresses, and forget to track returns. Our module eliminates the human factor.

Typical integration mistakes:

  • Incorrect status mapping: if failed is not configured, orders get stuck "In Transit".
  • Missing timeout handling: Dalli API responds up to 15 seconds; on large catalogs, calculations may time out. Add retries with a 20-second timeout.
  • Ignoring cash-on-delivery code: if cash_on_delivery is not passed, Dalli does not calculate the commission, and the actual delivery cost differs from the expected one.

What's Included in Turnkey Integration

We provide a complete package: development of the delivery module, API setup, testing of all scenarios, manager training, documentation. Warranty for 3 months. Support for PHP 8.1+ and Bitrix 22.0+. Certified specialists with experience implement the integration without failures.

Timeframes

Scope Components Duration
Basic integration Rates + orders + statuses 3–4 days
+ Express logic Time control, two methods +1–2 days
+ Batch sending Admin interface + batch API +2 days
+ Pickup points Import + widget +2 days

Get a consultation — we will calculate the cost and timeline for your project. Contact us: we have already integrated Dalli for 50+ stores; we will evaluate your project for free.