# BankOpenAPI > BankOpenAPI báo cho hệ thống của bạn khi có tiền chuyển khoản vào tài khoản ngân hàng Việt Nam: tạo yêu cầu thanh toán kèm VietQR, nhận webhook có chữ ký khi tiền về, đơn tự sang đã thanh toán, đồng thời báo cho team qua Telegram, Zalo, email. Tiền đi thẳng vào tài khoản ngân hàng của bạn, BankOpenAPI không giữ tiền. BankOpenAPI notifies your backend of incoming bank transfers to Vietnamese bank accounts (VietQR checkout, signed webhooks). - REST API: `https://app.bankopenapi.com/api/v1`, xác thực bằng header `Authorization: Bearer `. Số tiền là số nguyên VND. - Luồng chuẩn: backend gọi `POST /v1/payment-requests` → hiện VietQR hoặc chuyển tới `hostedUrl` → nhận webhook `payment_request.paid` → verify chữ ký, chống trùng theo `id` sự kiện → đánh dấu đơn đã thanh toán. - Sandbox miễn phí với API key `boa_test_…`, không cần tài khoản ngân hàng thật. - JavaScript/TypeScript: dùng SDK chính thức `npm install bankopenapi` (không phụ thuộc gói nào, có `verifyWebhook`). Ngôn ngữ khác gọi REST trực tiếp. - Tài liệu viết bằng tiếng Việt. Đăng ký: https://app.bankopenapi.com/dang-ky. Hỗ trợ: teams@bankopenapi.com. ## Bắt đầu - [Giới thiệu](https://bankopenapi.com/tai-lieu): Tổng quan REST API: tạo yêu cầu thanh toán chuyển khoản, hiện VietQR, nhận webhook khi tiền về - [Bắt đầu nhanh](https://bankopenapi.com/tai-lieu/bat-dau-nhanh): Tích hợp trong 4 bước: API key, liên kết tài khoản ngân hàng, tạo yêu cầu thanh toán, nhận webhook - [Xác thực](https://bankopenapi.com/tai-lieu/xac-thuc): API key trong header `Authorization: Bearer`; `boa_live_…` cho tiền thật, `boa_test_…` cho Sandbox - [Lỗi và mã lỗi](https://bankopenapi.com/tai-lieu/loi): Định dạng lỗi, mã HTTP, danh sách mã lỗi, khi nào nên retry - [Giới hạn tần suất](https://bankopenapi.com/tai-lieu/gioi-han-tan-suat): 100 request mỗi phút cho mỗi API key, lỗi 429 và Retry-After - [Sandbox](https://bankopenapi.com/tai-lieu/sandbox): Tài khoản ngân hàng thử, giả lập tiền vào và thanh toán, webhook `livemode: false`, không tốn phí ## API Reference - [Tài khoản](https://bankopenapi.com/tai-lieu/api/tai-khoan): GET /v1/account: kiểm tra API key - [Yêu cầu thanh toán](https://bankopenapi.com/tai-lieu/api/yeu-cau-thanh-toan): Tạo, xem, liệt kê, hủy yêu cầu thanh toán (/v1/payment-requests): trạng thái, trường, tham số, lỗi - [Tài khoản ngân hàng](https://bankopenapi.com/tai-lieu/api/tai-khoan-ngan-hang): GET /v1/bank-accounts: tài khoản ngân hàng đang liên kết - [Giao dịch](https://bankopenapi.com/tai-lieu/api/giao-dich): GET /v1/transactions: giao dịch trên các tài khoản đã liên kết - [Webhook endpoint](https://bankopenapi.com/tai-lieu/api/webhook-endpoint): Quản lý webhook endpoint qua API: tạo, sửa, xóa, đổi signing secret, gửi thử - [Mở app ngân hàng (deeplink)](https://bankopenapi.com/tai-lieu/api/deeplink): Mở app ngân hàng của người trả trên điện thoại, điền sẵn số tài khoản, số tiền, nội dung: danh sách 32 ngân hàng, tạo deeplink (tài khoản đã liên kết miễn phí; tài khoản chưa liên kết qua transfer, 50đ/phiên), trang chọn ngân hàng dựng sẵn /mo-app/ ## Webhook - [Nhận và verify webhook](https://bankopenapi.com/tai-lieu/webhook): Nhận webhook theo chuẩn Standard Webhooks: verify chữ ký, lịch retry, chống xử lý trùng - [Sự kiện và payload](https://bankopenapi.com/tai-lieu/webhook/su-kien): Sự kiện transaction.received, payment_request.paid, underpaid, bank_account.*, payload mẫu và JSON Schema ## Hướng dẫn - [VietQR và nội dung chuyển khoản](https://bankopenapi.com/tai-lieu/vietqr): Khớp tiền về theo mã TT trong nội dung chuyển khoản, dựng VietQR bằng Node.js, PHP, Python - [Ngân hàng hỗ trợ](https://bankopenapi.com/tai-lieu/ngan-hang): Ngân hàng và loại tài khoản liên kết được - [SDK JavaScript](https://bankopenapi.com/tai-lieu/sdk): SDK JavaScript/TypeScript chính thức (npm install bankopenapi): Node.js, Next.js, Cloudflare Workers, Bun; verifyWebhook, Sandbox, phân trang, lỗi - [Embedded Checkout](https://bankopenapi.com/tai-lieu/nhung-thanh-toan): Embedded Checkout (script https://app.bankopenapi.com/js/v1.js): BankOpenAPI.open() mở popup VietQR trên website người bán, mount() nhúng iframe inline, successUrl redirect sau khi trả, callback onPaid/onStatus/onClose, deeplink mở app ngân hàng trên điện thoại, không cần API key ở frontend; xác nhận đơn vẫn qua webhook - [Plugin WooCommerce](https://bankopenapi.com/tai-lieu/woocommerce): Plugin WooCommerce: chuyển khoản VietQR cho từng đơn, tự xác nhận đơn khi tiền về, kết nối bằng tài khoản BankOpenAPI không cần sao chép API key, Sandbox, tùy biến giao diện, hook cho dev - [OAuth cho nền tảng](https://bankopenapi.com/tai-lieu/ket-noi-nen-tang): OAuth cho nền tảng nhiều shop (OAuth 2.0 authorization code + PKCE): /ket-noi/, token exchange lấy API key, webhook_url tạo sẵn webhook, scope=transactions để nhận transaction.received, trường account trong webhook - [Tiện ích trình duyệt](https://bankopenapi.com/tai-lieu/tien-ich-trinh-duyet): Tiện ích Chrome, Edge, Cốc Cốc cho người bán: bôi đen số tiền trong khung chat để tạo ảnh mã QR thu tiền, loa đọc số tiền khi tiền về, cài từ Chrome Web Store (https://chromewebstore.google.com/detail/fekkhknahiaecjfhbbhhgjpcocaokkal) - [Dùng với AI agent](https://bankopenapi.com/tai-lieu/ai-agent): Skill cho Claude Code, Cursor và MCP server cho AI agent ## Cho AI agent - [Skill BankOpenAPI (SKILL.md)](https://bankopenapi.com/skills/bankopenapi/SKILL.md): toàn bộ luồng tích hợp, quy tắc bắt buộc và API tóm gọn trong một file; cài bằng `npx skills add https://bankopenapi.com` - [Chỉ mục skill](https://bankopenapi.com/.well-known/agent-skills/index.json): Agent Skills Discovery - MCP server: `https://app.bankopenapi.com/api/mcp` (Streamable HTTP, header `Authorization: Bearer `) ## Optional - [Bảng giá](https://bankopenapi.com/bang-gia): 100 giao dịch miễn phí mỗi tháng, sau đó tính theo giao dịch, có mức trần mỗi tài khoản - [Liên kết ngân hàng](https://bankopenapi.com/lien-ket-ngan-hang) - [Báo có đa kênh](https://bankopenapi.com/bao-co-da-kenh): webhook, Telegram, Zalo, Slack, Discord, Lark, Pancake Work, Google Sheets, email - [Trạng thái hệ thống](https://bankopenapi.com/trang-thai): bảo trì ngân hàng, bảo trì hệ thống, sự cố; JSON tại https://bankopenapi.com/trang-thai.json, RSS tại https://bankopenapi.com/trang-thai/rss.xml - [Tích hợp cho dev](https://bankopenapi.com/tich-hop) - [Công cụ tạo và giải mã VietQR](https://bankopenapi.com/cong-cu)