TCONNECT
PAYMENT API SOLUTION

Collect payments for automated machines
& self-service points with an API

EV charging stations, fuel/water pumps, power bank rental lockers, vending machines — the customer scans VietQR and the machine opens itself, billing by liter/kWh/session, money landing straight in your account, reconciled automatically 24/7.

Customer charging an electric car and paying by phone at an automated charging station Tap the QR · the machine opens in seconds
⚡ Charging station 💧 Pump station 🔋 Battery rental 🥤 Vending machine
Send message API consulting & integration · TCONNECT
Quick summary

Automated machines and self-service points — EV charging stations, fuel/water/car-wash pumps, power bank rental lockers, vending machines — share one problem: they sit outdoors, unattended, and need to collect cashless payments and then open the device by themselves. A single payment API solution handles all of them: each session is tied to an identifying order code (order_id) or a virtual account (VA), so the customer scans VietQR and the machine opens itself, revenue is matched automatically to the right machine — station — session, and the money lands straight in the operator's bank account.

The problem

Machines standing outdoors, unattended
— old-style collection & reconciliation breaks easily

What every self-service machine has in common is that there is no cashier. The customer operates it, pays by themselves, and the machine has to decide on its own whether to open. When you collect with cash or manual bank transfers, a string of problems appears:

  • 1Cash inside the machine — you have to go collect it, it jams, it goes missing, it is hard to reconcile at end of day.
  • 2Transfers with a note — the operator checks statements by hand; the machine has no way to know it should open.
  • 3Many machines, many stations — at month-end you add up revenue by hand, with no view of which machine is broken.
  • 4Customers waiting — after paying they still have to call someone to open the machine, in exactly the place that should be fastest.
Unattended self-service machine in a public place

The root cause is not the customer, it is that the payment step and the open-the-machine command are not connected. This is precisely the part a payment API solution automates cleanly: money arrives, the machine opens, no human in the middle.

Where it applies

One API solution — every kind of automated machine

Each collection session is tied to an identifying order code (order_id) or a virtual account (VA), so the money is matched automatically to the right machine — station — session, with no need to scan transfer notes.

Machine type / self-service pointHow it collectsWhat the machine does when money arrives
EV charging stationDynamic QR per charging sessionOpens the charging port, bills by kWh / by minute, cuts off when the credit runs out
Fuel / water / car-wash pumpDynamic QR per pumping sessionRuns the pump for the exact liters / minutes paid
Power bank rental lockerQR for deposit + rentalReleases a battery; on return, refunds the deposit / deducts the rental fee
Vending machineQR per itemDispenses exactly the product the customer selected
EV charging station billing automatically by kWh⚡ Charging station

EV charging station

Bills by kWh / by minute, cuts off when the credit runs out.

Money arrives → opens the port
Fuel and water pump station collecting payment via VietQR💧 Pump station

Fuel / water / car-wash pump

Pumps the exact liters / minutes the customer paid.

Money arrives → runs the pump
Power bank rental locker with automatic payment🔋 Battery rental

Power bank rental locker

Deposit & rent by QR; on return the deposit is refunded / the fee deducted.

Money arrives → releases the battery
Vending machine collecting payment via API🥤 Vending

Vending machine

Dispenses exactly the product selected, issues the invoice right away.

Money arrives → dispenses the item
How it works

From the customer's scan to the machine opening

1

Connect once

The machine firmware/software gets a TCONNECT API access key — one-time setup, sandbox then production.

2

Generate a per-session QR

The customer starts a session (charging, pumping, battery rental, buying) → create a dynamic QR tied to machine · station · session code.

3

Money arrives, the machine opens itself

TCONNECT sends an automatic notification (IPN). Using the order_id, the system opens the right device and records revenue to the right machine.

// order_id định danh cho phiên này (tối đa 36 ký tự)
const payload = {
  req_id: "req-EV-Q7-TRU04-1930", order_id: "EV-Q7-TRU04-20260816-1930",
  va: "VA100023312", bincode: "970454", amount: 45000,
}; // amount 0/bỏ trống = QR tĩnh; > 0 = QR động

// Mã hoá AES-256-CBC (hex) rồi gọi API tạo QR
const res = await fetch("https://sme-open-api-sandbox.tconnect.vn/openapi/v1/transaction/qr/generate", {
  method: "POST",
  headers: {
    "partner-code": partnerCode,
    "x-service-code": serviceCode, // lấy từ API Get Services
    Authorization: `Bearer ${accessToken}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ data: encryptAES256(payload) }),
});

One identifier per session — matched without mistakes

Machine typeExample order_idMeaning
EV charging stationEV-Q7-TRU04-20260816-1930District 7 station, post 04, 19:30 session
Water pump stationBOM-ANPHU-M02-20260816-07An Phu station, machine 02, round 07
Battery rentalPIN-VINCOM-K2-SLOT07-COCVincom kiosk 2, slot 07, deposit charge
Vending machineVEND-TOAB-T1-A3-20260816Building B machine, floor 1, lane A3

When the customer pays, TCONNECT sends an automatic notification to the station's software (an IPN — Instant Payment Notification). Using the order_id, the system knows exactly which session this is and does the right thing on its own: charging payment arrives, it opens the charging port; pump payment arrives, it runs the pump for the exact liters; battery deposit arrives, it releases the battery and on return refunds the deposit / deducts the fee; item payment arrives, it dispenses the item. The whole thing runs in the background 24/7 — the operator does not have to sit watching bank messages. The notification side only has to follow three principles: authenticate the caller, never record a transaction twice, and respond quickly (within a few seconds). Details: Webhook/IPN handling callbacks safely.

Many machines, many stations — rolled up into one dashboard

Because each machine and each session has an identifying VA/order_id, revenue is grouped automatically to the right machine — station. The operator sees at a glance: which machine is doing well, which is idle, which is unusually silent (possibly broken or offline), which station needs more posts. No more going around collecting cash from each machine at month-end and tallying by hand.

Issue e-invoices (optional)

After the payment is recorded, you can go on to call TCONNECT's e-invoice API to issue an invoice or receipt to the customer automatically — in line with Decrees 123/2020 & 70/2025. This is an add-on step: the payment collection and automatic machine opening above already run on their own. See the E-invoice API.

What operators & machine makers get

Scan to open · money arrives, done

No cash inside machines — no collection runs, no losses.
Money arrives, the machine opens — the customer scans and uses it right away.
Automatic reconciliation per machine — per station.
No sitting watching bank messages, runs 24/7.
Money lands straight in the operator's account, nothing held.
Integrate once for every machine already in the market.
Frequently asked questions

Quick answers for operators & integrators

? Does the customer need a separate app to pay a machine?
No. The customer scans the QR with any banking app (VietQR) or taps a card; the machine opens itself once the money arrives, with no requirement to download a dedicated app or register an account.
? How long from payment to the machine opening?
As soon as the money arrives, TCONNECT sends an automatic payment notification (IPN) and the software opens the device immediately, usually within a few seconds, so the customer can use it right after scanning.
? With many machines across many stations, how does reconciliation work?
Each machine and each session is tied to its own virtual account (VA) or order_id, so revenue is grouped automatically to the right machine — station on a single dashboard, with no manual ledger.
? If two customers send the same amount, can they be matched to the wrong payment?
No, because matching is based on the virtual account (VA) or order_id tied to the machine and session, not on the amount or the transfer note.
? Does TCONNECT hold the customer's money?
No. The money lands straight in the operator's bank account the moment the customer pays; TCONNECT only records it and sends the notification so the software can open the device.