TCONNECT
PAYMENT API

Collect sports court payments
with a payment API

Pickleball, tennis, badminton, five-a-side football. Customers book online with a VietQR deposit that auto-locks the time slot, pay by the hour, buy monthly packages, hire a coach; each payment matches the right court and time slot automatically.

Customers playing pickleball on a court QR deposit · slot locks instantly
🏓 Pickleball🎾 Tennis🏸 Badminton⚽ Five-a-side football
Quick summary

Sports courts sell by time slot, and everyone wants the good ones. The same payment API: customers book with a VietQR deposit, pay by the hour, buy monthly packages for fixed teams, hire a coach; each payment carries an order code (order_id) by court, date and time slot, so when the deposit arrives it auto-locks the right slot and money lands straight in the court owner's account.

The problem

Holding slots on a promise: clashes, no-shows, statement checking

Customers message to book, promise to transfer a deposit, then go quiet; the owner works the phone while watching bank messages to see who actually paid.

  • 1Holding slots on a promise — the customer books verbally then never shows (a no-show), the court sits empty.
  • 2Two people booking the same slot because the owner cannot confirm by hand fast enough.
  • 3Transfer with a note — checking the statement to see who paid, for which court, which time.
  • 4Fixed weekly teams paying in dribs and drabs — at month end it is unclear which team has paid.
A cluster of sports courts seen from above

The root cause is the manual deposit and confirmation step. A payment API ties each payment to a court + time slot, so when the deposit arrives it auto-locks the right slot.

Applies to

One API — every way a court collects money

Each payment carries an order code (order_id) by court, date and time slot, so money that arrives matches the right court, the right date, the right time slot automatically, locking the slot instantly.

SituationHow you collectWhat the system does when money arrives
Booking + depositQR when the customer picks a slotLocks the slot, stops no-shows & clashes
Pay by the hourDynamic QR when the customer arrivesCloses the booking, issues an invoice
Monthly package · fixed teamVA/QR per periodKnow which team paid, keep the fixed slot
Coach hire & salesPer-order QRRoll every charge onto the right customer visit
undefined🏓 Pickleball

Pickleball court

Booking + deposit locks the slot, pay by the hour.

Deposit arrives → slot locked
undefined🎾 Tennis

Tennis court

Fixed weekly bookings, monthly packages.

Money arrives → slot kept
undefined🏸 Badminton

Badminton court

Pay by the hour, coach hire, gear sales.

Money arrives → booking closed
undefined⚽ Football

Five-a-side football

Book by the match, deposit holds the slot.

Deposit arrives → slot locked
How it works

From the customer's scan to the slot lock

1

Connect once

The court management software gets a TCONNECT API access key — a one-time setup, sandbox then production.

2

Generate a QR for each booking

Slot bookings, fixed bookings, monthly packages or coach hire all create a dynamic QR tagged by court · date · time slot.

3

Deposit arrives, slot locks

TCONNECT notifies automatically (IPN). Thanks to the order code, the system locks the exact time slot of the right court, so the owner does not have to watch messages.

// order_id định danh cho khoản thu này (tối đa 36 ký tự)
const payload = {
  req_id: "req-S3-20260817-1900-COC", order_id: "S3-20260817-1900-COC",
  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) }),
});

Each visit a named code — matches the right court & time slot

SituationExample order_idMeaning
Booking depositS3-20260817-1900-COCCourt 3, Aug 17, 19:00 slot, deposit
Pay by the hourS3-20260817-1900-GIOHourly fee for that booking
Monthly package · teamDOI22-2026T09-GOITHANGTeam 22, September 2026 package
Coach hireHLV07-20260817-1900Coaching session 07, 19:00 slot on Aug 17

When the customer scans the deposit, TCONNECT notifies automatically back to the software (via IPN). Thanks to the order_id, the system auto-confirms and locks the exact time slot of the right court, sends a Zalo message that the court is held — the owner does not have to sit watching bank messages. The notification part only needs to: verify the caller, not record twice, respond fast.

Many courts, many sites — rolled up into one dashboard

Because each visit has a named order_id by court and time slot, revenue rolls up to the right court and the right site automatically. Owners see fill rates by court and time slot to know which hours need a promotion and which are always booked out.

Issue e-invoices (optional)

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

What court owners get

The deposit locks the slot · no more no-shows

No more no-shows — customers must pay a VietQR deposit to hold a slot.
No more clashes — the slot locks instantly when the deposit arrives.
Clear fixed teams — know which team paid the monthly package.
No watching bank messages, runs 24/7.
Money lands straight in the court owner's account, no holding.
Integrate once into the court management software.
Frequently asked questions

Quick answers for court owners

? Do customers need a separate app to book and pay the deposit?
No. Customers scan the QR with any banking app (VietQR) to pay the deposit; the system confirms and locks the time slot automatically, with no separate app required.
? How fast does a VietQR deposit lock the slot?
The moment the deposit arrives, TCONNECT notifies automatically and the system locks the time slot instantly, usually within a few seconds, so two people cannot book the same slot.
? How do you collect from fixed weekly teams or monthly rentals?
Issue one order ID or named account for the fixed schedule and generate a QR each period or each month. When the money arrives, the system records that period as paid and keeps the fixed time slot for the team.
? If two customers transfer the same amount, can they get matched wrong?
No, because matching relies on a named account (VA) or an order code order_id tied to the court and time slot, not on the amount or the transfer note.
? Does TCONNECT hold the deposit and court fees?
No. Money lands straight in the court owner's bank account the moment the customer pays; TCONNECT only records it and sends the notification so the system can lock the slot.