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.
QR deposit · slot locks instantlySports 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.
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.

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.
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.
| Situation | How you collect | What the system does when money arrives |
|---|---|---|
| Booking + deposit | QR when the customer picks a slot | Locks the slot, stops no-shows & clashes |
| Pay by the hour | Dynamic QR when the customer arrives | Closes the booking, issues an invoice |
| Monthly package · fixed team | VA/QR per period | Know which team paid, keep the fixed slot |
| Coach hire & sales | Per-order QR | Roll every charge onto the right customer visit |
🏓 PickleballPickleball court
Booking + deposit locks the slot, pay by the hour.
Deposit arrives → slot locked
🎾 TennisTennis court
Fixed weekly bookings, monthly packages.
Money arrives → slot kept
🏸 BadmintonBadminton court
Pay by the hour, coach hire, gear sales.
Money arrives → booking closed
⚽ FootballFive-a-side football
Book by the match, deposit holds the slot.
Deposit arrives → slot lockedFrom the customer's scan to the slot lock
Connect once
The court management software gets a TCONNECT API access key — a one-time setup, sandbox then production.
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.
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
| Situation | Example order_id | Meaning |
|---|---|---|
| Booking deposit | S3-20260817-1900-COC | Court 3, Aug 17, 19:00 slot, deposit |
| Pay by the hour | S3-20260817-1900-GIO | Hourly fee for that booking |
| Monthly package · team | DOI22-2026T09-GOITHANG | Team 22, September 2026 package |
| Coach hire | HLV07-20260817-1900 | Coaching 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.
The deposit locks the slot · no more no-shows
Quick answers for court owners
order_id tied to the court and time slot, not on the amount or the transfer note.