Customers call support asking 'Where is my order?'. Standard SMS notifications are expensive—up to 2–3 rubles per message—and have an open rate around 20%. We solved this for dozens of projects: set up Viber order notifications for every status change using Viber Bot API and 1C-Bitrix integration. Setting up a Viber bot for Bitrix takes 4–8 hours and can save up to 80,000 rubles monthly on SMS costs for 50k orders, with a one-time setup cost starting at 20,000 rubles. The result—call center load decreased by 30–40%, and customer loyalty increased due to instant information delivery. Viber is the optimal choice: used by 40% of smartphone owners in the CIS (SimilarWeb). Viber messages are delivered 5 times faster than SMS, with open rates 4 times higher. We'll share how to deploy a ready integration in 4–8 hours and save up to 80% on notifications compared to SMS.
The Viber Bot API provides a webhook for receiving events, allows sending messages via REST requests, and supports deep links for subscription. Paired with 1C-Bitrix, it gives a flexible notification system without extra gateway costs. We implement HMAC validation for webhook authenticity and use queue management (e.g., RabbitMQ) for rate limiting to ensure reliable delivery.
Why Viber is an effective channel for order status notifications
Viber is a messenger with an open rate above 80% and built-in push notifications. Unlike SMS, it requires no additional sending costs. Unlike Telegram, the user doesn't need to enter a phone number—just subscribe to the bot via a deep link. For stores on 1C-Bitrix, this means a 30% reduction in call center load and increased customer loyalty. Viber outperforms SMS in open rate by 4 times, and message costs are zero—giving ROI after just 100 notifications sent.
| Channel | Open Rate | Cost | Integration Complexity |
|---|---|---|---|
| Viber | ~80% | Free | Medium (Bot API) |
| Telegram | ~60% | Free | Low (Bot API) |
| SMS | ~20% | Paid | Low |
| ~15% | Free | Low |
| Channel | API Limitations | Subscription Required | Delivery Speed |
|---|---|---|---|
| Viber | Bot can only message subscribers | Yes | < 1 second |
| Telegram | Bot can message any user (no sub?) | No | < 1 second |
| SMS | No restrictions | No | 1-5 seconds |
Achieve similar savings by ordering Viber bot setup and reduce support load.
How Viber solves the customer notification problem
Take a real case: an auto parts store with 50,000 orders per month. Before integration, customers called support 200 times a day—asking about status. After connecting Viber notifications, the call volume dropped to 50 per day. Setup took 6 hours: created a bot, linked users via personal account, wrote a handler for all statuses. SMS savings amounted to 80,000 rubles per month. The key point is proper handling of Viber Bot API limitations: the bot cannot initiate a dialog if the user hasn't messaged it first. We solve this with a deep link that sends uid in the subscription context.
Example deep link for subscription
$deepLink = 'viber://pa?chatURI=' . VIBER_BOT_URI . '&context=uid=' . $USER->GetID(); Creating a Viber bot
- Register an account at developers.viber.com
- Create a bot in the admin panel at my.viber.com
- Get an auth token like
47b...== - Set up a webhook:
POST https://chatapi.viber.com/pa/set_webhook
// Webhook registration $ch = curl_init('https://chatapi.viber.com/pa/set_webhook'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_POSTFIELDS => json_encode([ 'url' => VIBER_WEBHOOK_URL, // defined in your config file, must be HTTPS 'event_types' => ['subscribed', 'unsubscribed', 'message'], 'send_name' => true, ]), CURLOPT_HTTPHEADER => [ 'X-Viber-Auth-Token: ' . VIBER_BOT_TOKEN, 'Content-Type: application/json', ], CURLOPT_RETURNTRANSFER => true, ]); curl_exec($ch); curl_close($ch); Saving the Viber user_id
When a user subscribes to the bot, Viber sends a webhook with the subscribed event. At that point, link the Viber user_id with the Bitrix user:
// Viber webhook handler $update = json_decode(file_get_contents('php://input'), true); $eventType = $update['event'] ?? ''; if ($eventType === 'subscribed') { $viberUserId = $update['user']['id']; $context = $update['user']['context'] ?? ''; // pass uid= in deep link if (preg_match('/uid=(\d+)/', $context, $m)) { $bitrixUserId = (int)$m[1]; \Bitrix\Main\UserTable::update($bitrixUserId, [ 'UF_VIBER_USER_ID' => $viberUserId, ]); } } Sending notifications on status change
\Bitrix\Main\EventManager::getInstance()->addEventHandler( 'sale', 'OnSaleOrderStatusChange', function (\Bitrix\Main\Event $event) { $order = $event->getParameter('ENTITY'); $statusId = $order->getField('STATUS_ID'); $userId = $order->getUserId(); $user = \Bitrix\Main\UserTable::getById($userId)->fetch(); $viberUserId = $user['UF_VIBER_USER_ID'] ?? null; if (!$viberUserId) { return; } $texts = [ 'N' => 'Order #%d has been placed and is pending processing.', 'P' => 'Order #%d has been handed over for delivery.', 'F' => 'Order #%d completed. Thank you for your purchase!', 'X' => 'Order #%d has been cancelled.', ]; if (!isset($texts[$statusId])) { return; } $message = sprintf($texts[$statusId], $order->getId()); // Send via Viber API $payload = [ 'receiver' => $viberUserId, 'type' => 'text', 'text' => $message, 'sender' => ['name' => 'MyShop'], ]; $ch = curl_init('https://chatapi.viber.com/pa/send_message'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_POSTFIELDS => json_encode($payload), CURLOPT_HTTPHEADER => [ 'X-Viber-Auth-Token: ' . VIBER_BOT_TOKEN, 'Content-Type: application/json', ], CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 5, ]); $response = json_decode(curl_exec($ch), true); curl_close($ch); // status_message = 'ok' on success } ); Viber Bot API limitations to know
- Cannot message a user first if they have never interacted with the bot.
- Free tier: no limit on message count for registered bots.
- Viber is unavailable in some countries (China, some CIS countries).
- Messages from a bot that the user hasn't messaged for over a year may not be delivered.
- Rate limit: no more than 10 requests per second per token. For bulk sends, use a queued delay.
Scenarios where Viber may not be suitable for notifications
If your audience is predominantly from China or countries where Viber is blocked, Telegram is a better choice. Also, if customers are unwilling to subscribe to the bot (requires action on their part), SMS remains a mandatory channel. For time-critical notifications (e.g., verification codes), Viber may experience delays due to inactive subscriptions.
Debugging message sending
Check webhook request logs: enable logging in the OnSaleOrderStatusChange handler. Ensure the auth token is active (call get_account_info). Use the Viber API test endpoint to verify payload format. We recommend logging with Bitrix Logger or AddMessage2Log.
What's included in turnkey Viber notification setup?
- Creating a Viber bot and setting up the webhook.
- Creating a custom field UF_VIBER_USER_ID.
- Implementing a deep link in the personal account.
- The OnSaleOrderStatusChange event handler with templates for all statuses.
- Testing and debugging.
- Documentation for ongoing support.
- Manager training (up to 2 hours).
- Support for 2 weeks after launch.
We guarantee stable integration—all notifications are delivered within 5 seconds. Our experience: 5+ years in Bitrix integrations and over 50 projects with messengers.
Setup timeline
Bot creation, webhook, custom field, subscription page, event handler, and testing—4–8 hours. Contact us—we'll evaluate your project in one day and prepare a commercial proposal. Order setup and get a consultation—the first 30 minutes free.

