MDB vs. DEX: How Vending Machines Handle Payments and Report Sales

4 minute readPublished:
A technician checks a tablet beside a beverage vending machine with a contactless payment reader.
In this guide

In this illustrative example, a technician adds a cashless reader to a drink machine. A test purchase succeeds, the bottle drops, and the sale appears in the payment portal. The next morning, the route manager opens the vending report and finds no sales breakdown by selection.

Both results can occur on the same machine. MDB handles communication between the vending machine controller and its peripherals during a transaction. DEX supplies machine audit data for reporting. If an upgrade needs to support card payments and restocking reports, test both functions separately.

01 · WHAT MDB DOES DURING A PURCHASE

What MDB does during a purchase

MDB, or Multi-Drop Bus, is the internal communication interface that lets a vending machine controller, known as the VMC, work with peripherals such as coin mechanisms, bill validators, and cashless readers. The controller coordinates the machine-side exchange during a sale.

In a typical cashless purchase, the controller sends the reader a vend request for a selection at a specified price. The reader responds with approval or denial. After approval, the controller attempts to dispense the product and reports whether the vend succeeded or failed. The order of the card tap and product selection depends on the machine and reader configuration.

Payment approval and product delivery are separate events. A reader may approve a purchase before the machine discovers that the product cannot dispense. During installation, check how the controller reports a failed vend and what the payment system records for the transaction.

02 · WHAT DEX TELLS THE ROUTE TEAM

What DEX tells the route team

DEX, or Digital Exchange, gives operators a way to retrieve an electronic audit record from the machine. Depending on the controller and configuration, the record can include sales totals, cash activity, and counts by product selection. A compatible handheld device or telemetry unit can retrieve the data for reporting.

Suppose a machine reports that selection B4 sold 18 units between visits. If the route software maps B4 to sparkling water, the driver can use that count to plan the next refill. The count becomes useful when it is matched to the correct machine, reporting period, and product layout.

Check how your system handles cumulative counters. If a reading rises from 1,240 to 1,258, the difference is 18 units when both readings use the same counter and no reset occurred. If the controller was replaced between readings, record the reset and establish a new starting point.

03 · MDB AND DEX AT A GLANCE

MDB and DEX at a glance

Where to look for payment and audit information
Operator questionWhere to look first
Can the controller communicate with the new cashless reader?MDB compatibility for the exact controller, firmware, and reader
Did the controller report successful delivery?The MDB vend result, if exposed in the terminal or integration logs
How many units did selection B4 sell since the last visit?DEX audit readings, if the controller exposes selection-level data
Why does the bank deposit differ from reported card sales?The payment provider’s settlement report for fees, refunds, and payout timing

Machine audit records, payment records, and bank deposits describe different events and may cover different periods. When totals differ, match the machine ID and reporting window first. Then check which transactions or adjustments each report includes.

04 · WHAT TO TEST BEFORE ROLLING OUT A RETROFIT

What to test before rolling out a retrofit

  1. Identify the controller. Check the machine model, controller board, and firmware. Confirm that the reader supports the payment interface and that the required harness is available.
  2. Run a successful sale. Confirm that the displayed price, payment amount, selected product, and dispensed item agree. Locate the sale in the payment portal.
  3. Test a failed vend. Follow the equipment supplier’s test procedure. Check the customer message, the machine’s vend result, and the payment record.
  4. Read the audit before and after the test. Check which totals change and whether the selected product appears in the export. If restocking relies on item-level counts, confirm that the software maps each selection to the correct product.
  5. Check older machines individually. A legacy cabinet may use a different controller or a pulse-based interface. Confirm the actual interface and available audit fields before ordering a reader.

Before repeating the retrofit, verify that a customer can complete a purchase, the machine reports the outcome, and the route team can find the records it needs for service, restocking, and reconciliation.

Enhance your guest experience

Leave your email or WhatsApp number and our team will get in touch.

Your preferred contact detail

For WhatsApp, include your country code.