BinSina Pharmacy background
BinSina Pharmacy x Codilar

How the UAE's First Pharmacy Chain Engineered Enterprise Integration on Adobe Commerce with Codilar

BinSina Pharmacy Feature
Listen Full Case Study
Listen

Pharmacy & Wellness Retail

Company Brief

BinSina Pharmacy is the UAE's first pharmacy chain and one of the most established health and wellness retail brands in the region, with over 150 outlets across the country and a presence in Oman. It is part of Al Khayyat Investments (AKI Group), a UAE-based family-owned business founded in 1982 with over 5,500 employees across more than eight countries.

Founded in 1965 with a single store in Naser Square, Dubai, BinSina Pharmacy has grown over six decades into a full-spectrum health and wellness destination. Its range covers prescription and OTC medicines, vitamins and supplements, beauty and cosmetics, skincare, personal care, and fitness products, going well beyond what a traditional pharmacy carries.

BinSina Pharmacy Storefront

Enhancing Web & Mobile Commerce

Integrating Swan CRM Middleware

Securing 22-hour Token Authentication

Improving Bi-directional Customer Sync

Enabling Coupon & Promotion Flows

Optimizing Create Transaction API & Cron Retry

Activating Swan Service Worker JS Web Push

Modifying Subscription Module for Recurring Orders

Improving Order Handoff with Structured OMS Data Push

Migrating CDID from Global to Website-level

Project Overview

Codilar worked with BinSina Pharmacy on their Adobe Commerce Enterprise platform to build out a fully connected digital commerce experience. The project kicked off in March 2026 and ran through seven milestones: authentication setup, customer registration and OTP flows, coupon management, order transaction sync, promotion management, site configuration, and QA with system integration testing.

The scope covered Swan CRM integration as the central customer data layer, Loyalytics as the loyalty platform, a subscription module for recurring orders, and a mobile app for Android and iOS.

Business Challenges

!

No unified view of the customer across online and offline touchpoints

!

Loyalty program live but not wired into the checkout, so points and redemptions had no effect on purchases

!

Existing subscription module needed modifications to support recurring medicine and wellness product orders

!

Coupon and promotion eligibility managed in Swan CRM but not surfaced at checkout

!

Customer data living in Swan CRM with no real-time link to the online storefront

!

No web push channel to reach opted-in customers after they left the site

!

Existing OMS data handoff to third-party partner needed to be modified for automated, reliable order sync

Codilar's Solution Approach

Swan CRM middleware built to connect Adobe Commerce to customer accounts, tiers, coupons, and promotions

Token rotation engineered on a 22-hour background cycle with no session or checkout disruption

Event-driven bi-directional sync keeping profile data, tiers, and coupon balances current in real time

Coupon and promotion APIs sequenced endpoint by endpoint across cart and checkout flows

Create Transaction API configured with cron retry to catch and resend any missed order syncs

Structured order data pushed to third-party OMS partner on every Magento order placement

Swan Service Worker JS deployed to enable web push notifications on the storefront

Loyalytics wired into Swan CRM with loyalty earn and redemption inside the standard checkout

Subscription module modified for recurring order management within Adobe Commerce

Mobile app delivered for Android and iOS as part of the core platform build

CDID migrated from global to website-level per Swan CR, with full QA within the original timeline

Your One-stop
Total Commerce
Partner

We engineer high-converting eCommerce webstores that scale faster.

Quote

When every system is connected, the customer never has to think about the technology. They just get what they expected. That is what we built for BinSina Pharmacy, and that is the standard we held across every integration, every API call, and every edge case we solved along the way.

Quote
Shahed Jamal

Shahed Jamal

Practice Head, Adobe Commerce, Codilar

The Making of BinSina's Connected Commerce Platform

Beyond the Digital Storefront

BinSina Pharmacy needed more than a working website. With over 150 stores across the UAE, their customers expected the same experience online as they got in person. Loyalty points that actually worked, coupons that applied correctly at checkout, promotions that matched what they were eligible for, and the ability to set up recurring orders for medicines they buy every month.

Codilar's scope covered the full digital stack. Adobe Commerce Enterprise for web and mobile, Swan CRM as the customer data layer, Loyalytics for the loyalty program, a subscription module for recurring orders, and an order data feed to the third-party OMS partner. Everything had to work as one system.

CRM Connection Behind Every Checkout

BinSina Pharmacy already had Swan CRM running on their side. Our job was to connect Adobe Commerce to it without ever letting the seam show to a customer.

Swan tokens expire every 22 hours. If the refresh does not happen cleanly, an active session breaks. A customer mid-checkout hits a failed API call, and loyalty redemption or coupon validation stops working at exactly the wrong moment. Codilar built the rotation to run in the background on a timed cycle, away from peak traffic windows, with no impact on any active session. Customer data syncs both ways in real time. Profile updates, loyalty tier changes, and coupon balances stay current on both Adobe Commerce and Swan with no batch job in between.

Engineering The Enterprise Integrations

Coupon and promotion logic is where CRM integrations tend to have edge cases. The question is not just whether a discount applies, but when each API call fires and what happens if the sequence is wrong. A coupon validated at the wrong point and reinstated incorrectly creates a billing problem. A promotion applied before eligibility is confirmed sets a customer expectation that cannot be met.

Codilar mapped each Swan endpoint before writing code. Coupon Validate and Reinstate, Promotion Evaluate, Apply, and Cancel were each placed at a specific point in the cart and checkout flow. Order transaction sync runs through Swan's Create Transaction API, with a cron job that catches and retries any missed sync automatically. BinSina's order management is handled by a third-party OMS partner, so every Magento order also triggers a structured data push to that partner. The handoff had to be clean on every transaction, and Codilar built retry logic into it so connectivity gaps between systems never result in a missing order.

Architecture That Absorbed Mid-project Change

With UAT underway, Swan CRM requested a structural change. The Customer Data ID had been stored at a global Adobe Commerce level. Swan needed it at the website level so it could maintain a separate database per brand on its side.

The change was larger than it looked. Every part of the integration that referenced the global CDID had to be updated. The swan_group_brand filter on the Adobe Commerce side was removed because Swan was now handling brand separation in its own database. Codilar logged it as a formal change request, did the rework, and pushed it through QA within the original project window.

Connect with Us

BinSina Pharmacy

Liked what you read?Share with your team Share

Missing Link in Pharmacy Loyalty

BinSina Pharmacy runs its loyalty program through Loyalytics. The requirement was straightforward. Earn and redemption had to live inside the standard checkout, not behind a separate login or a separate app.

Codilar connected Loyalytics to the Swan CRM layer. A customer buying a product earns points as part of the same transaction. Redemption happens at checkout in the same flow they already know. The loyalty program does not look like a separate system to the customer. It is just part of how BinSina Pharmacy works online.

Repeat Purchase After Checkout

For customers who buy the same medicines or wellness products regularly, Codilar modified the existing subscription module inside Adobe Commerce. Recurring orders are set up once and managed from the customer's account, with no need to come back and reorder each time manually.

Swan Service Worker JS was deployed on the storefront as part of the Swan CRM integration. Web push notifications let the brand reach opted-in customers after they have left the site. It is a direct channel that does not depend on email open rates or social media algorithms.

One Success, Four More Brand Stories

Sometimes, the best measure of a project's success is what comes after it. BinSina Pharmacy's launch involved much more than putting a new commerce platform online. Behind the customer-facing experience was a network of integrations and processes that had to work together.

Swan CRM was integrated into checkout. Customers could earn and redeem loyalty points within the same transaction. Subscriptions were live, Magento orders were reaching the OMS partner with clean data, and web push notifications were in place. All of it worked across web and mobile.

That delivery became the starting point for something bigger. AKI Group extended its trust in Codilar, bringing four more brands into the picture: Holland & Barrett, Petit Bateau, Nanan, and Superdry. Four new brands following one successful engagement. That's a story we value because it says something about the work that went into the first one. Client trust is rarely built in a single meeting or presentation. It grows through the details people don't always see, the challenges teams work through, and the promises they keep. For us, the four brands that followed BinSina are a reminder that good work has a way of opening the next door.

Is Your Commerce Working Behind the Scenes?

Many pharmacy brands still operate with disconnected systems that make everyday customer experiences unnecessarily complicated. Loyalty points are earned but go unredeemed because the program isn't connected to checkout. CRM data, including purchase history, customer tiers, and coupon eligibility, never reaches the storefront. Promotions need manual updates across systems, while orders require additional checks to ensure data reaches the OMS correctly. The impact goes beyond operations. Customers encounter coupons that don't apply, rewards they cannot redeem, and online experiences that fall short of what they expect in-store. Over time, these friction points affect conversions and customer retention.

Codilar is an Adobe Gold Solution Partner with 11 years of commerce experience and 500+ projects delivered. We understand how these systems need to work together because we've spent years building and integrating commerce platforms for complex retail environments, including pharmacy and wellness. Our focus goes beyond the storefront. We work on the integrations, data flows, loyalty mechanisms, and order processes that keep the entire commerce operation running reliably, even when business is at its busiest. Let's build a pharmacy commerce experience where every system works together and every customer interaction counts.

Retail Success Stories

HOMES R US

HOMES R US

Re-imagined customer experience by enabling seamless integration

Know MoreArrow
Danube Home

Danube Home

Danube Home Revolutionized Their Digital Commerce with Comprehensive Omnichannel Solutions

Know MoreArrow
Marina Home

Marina Home

Magical Transformation: Marina Home Amplifying Digital Capabilities with Codilar

Know MoreArrow
Codilar team at work
USA
Australia
Singapore
KSA
UAE
Oman
Indonesia
India

Build. Optimize. Grow.

With the world's leading digital commerce agency.

Full Name*
Official Email*
Mobile No*
Company Name*
Select Services
Message

Want our latest stories
sent straight to your inbox?