TCONNECT
PAYMENT API

Automated payment collection for
spas, salons, nail, gym, massage

Deposits that hold bookings and cut no-shows, instant collection at the counter, prepaid packages & cards, recurring membership fees. Every transaction matches to the right customer, money goes straight to the studio's account.

Modern spa and salon space collecting payment via API QR deposit · booking held instantly
💆 Spa & massage💅 Nail & salon🏋️ Gym membership🎟️ Packages & cards
Quick summary

Personal-care studios collect money in many ways: deposits that hold a booking, counter payments, prepaid packages and cards, recurring membership fees. The same payment API: each item carries an order code (order_id) or a VA tied to the customer, so money matches itself to the right customer and goes straight to the studio's account.

The problem

No-shows, prepaid packages and membership are easy to mishandle by hand

Customers book then do not show up (no-show), leaving a prime slot empty; prepaid packages and recurring membership are hard to track, who still has sessions, who is due.

  • 1No-show — the customer books verbally then does not come, the technician sits idle, revenue is lost.
  • 2Transfer with a reference note — the owner scans the bank statement to see who paid a deposit or settled up.
  • 3Packages & prepaid cards — unclear how many sessions a customer has left, easy to miscount.
  • 4Recurring membership — at cycle-end nobody knows who has paid, who still owes.
Spa and salon reception desk

The root cause is deposits and recording done by hand. A payment API ties each item to the customer + the collection, so a deposit arriving means the booking is held, and package money arriving means the sessions are activated.

Applies to

One payment API — every way the studio collects

Each item carries an order code (order_id) or a VA tied to the customer, so money matches itself to the right customer — right collection, with no need to check transfer notes.

SituationHow it is collectedWhat the system does when money arrives
Deposit to hold a bookingDeposit QR at booking timeHolds the slot, cuts no-shows
Counter paymentDynamic QR when the service is doneCloses the invoice, issues a receipt
Packages & prepaid cardsPrepaid QRActivates the package, records the session count
Recurring membershipVA / QR each cycleRecords the cycle as paid, renews
undefined💆 Spa

Spa & massage

Deposits that hold bookings, counter collection, package sales.

Deposit arrives → booking held
undefined💅 Nail

Nail & salon

Collect by service, sell prepaid cards.

Money arrives → invoice closed
undefined🏋️ Gym

Gym & membership

Collect recurring membership, renew automatically.

Money arrives → cycle recorded
undefined🎟️ Package

Packages & prepaid cards

Sell session packages, the system deducts over time.

Money arrives → package activated
How the flow works

From the customer's scan to a held booking / closed invoice

1

Connect once

The studio's software gets a TCONNECT API access key — a one-time setup, sandbox then production.

2

Generate a QR for each item

Deposits, counter payments, package sales and membership all use one QR-generation API, with only the amount and order code differing.

3

Money arrives and matches itself

TCONNECT notifies automatically (IPN). Thanks to the order code, the system holds the booking, closes the invoice, activates the package or records the membership.

// order_id định danh cho khoản thu này (tối đa 36 ký tự)
const payload = {
  req_id: "req-KH1207-DATCOC-1930", order_id: "KH1207-DATCOC-1930",
  va: "VA100023312", bincode: "970454", amount: 100000,
}; // 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 named code per item — tied to the right customer

SituationExample order_idMeaning
Deposit to hold a bookingKH1207-DATCOC-1930Customer 1207, deposit holding the 19:30 slot
Counter paymentKH1207-QUAY-20260816Counter invoice on 16/08
Prepaid packageGOI-MASSAGE-10B-202610-session massage package 2026
MembershipMEMBER-GYM-2026T08Gym membership fee for August 2026

When the customer pays, TCONNECT notifies automatically back to the studio's software (via IPN). Thanks to order_id, the system holds the booking, closes the invoice, activates the package or records the membership on its own — no one scans the bank statement. The notification part only needs: verify the caller's source, never record twice, respond quickly.

Multiple branches — rolled up into one dashboard

Because each item has a named VA/order_id, revenue rolls up to the right branch on its own. The owner sees at once which customer still has sessions, which membership is due, and revenue by service, with no manual tallying.

Issuing e-invoices (optional)

After recording the payment, you can go on to call TCONNECT's e-invoice API to issue an invoice/receipt to the customer automatically — in line with Decrees 123/2020 & 70/2025. This is an add-on step; the automated collection workflow above already runs on its own.

What the owner gets

A deposit means the booking is held · money arriving means it is done

Cut no-shows — customers must pay a VietQR deposit to hold a booking.
No statement scanning — deposits/collections match to the right customer.
Clear packages & cards — know instantly how many sessions are left.
Recurring membership — know who has paid, who still owes.
Money goes straight to the studio's account, not held for you.
Integrate once into the software the studio already uses.
Frequently asked questions

Quick answers for studio owners

? Does the customer need to install a separate app to pay a deposit or settle up?
No. Customers scan the QR with any banking app (VietQR) or transfer into a named account — no separate app needed.
? Is online deposit collection hard to integrate?
No. A deposit is just a small-amount dynamic QR, using the same QR-generation API as counter collection, with only a different amount and order code. Confirming the booking is handled at the notification (IPN) step.
? If two customers transfer the same amount, could they be matched incorrectly?
No, because matching relies on the VA or the order_id, not on the amount or the transfer note.
? Does TCONNECT hold prepaid-package money and deduct from it over time?
No. Package money goes straight to the studio's account as soon as the customer pays; the remaining sessions are managed by the studio's software, and TCONNECT only records the payment and notifies you.
? How long does integration take?
With the sandbox and the available API specification file, the basic collection flow usually takes a few working days; packages and membership are logic on the studio-software side.