Danh mục chính xác những gì một đối tác nhận được khi onboard. Không chứa secret.
Nguồn tài liệu:docs/integration/(Partner Integration Kit) +docs/operations/.
| Hạng mục | File | Mô tả |
|---|---|---|
| Integration Guide | docs/integration/PARTNER-INTEGRATION-GUIDE.md | Tổng quan kiến trúc, auth, error handling, retry, idempotency, booking lifecycle, best practices, troubleshooting. |
| OpenAPI | docs/integration/openapi.yaml | Contract máy-đọc (9 operation), khớp implementation. |
| Postman Collection | docs/integration/bng-booking.postman_collection.json + .postman_environment.json | Health/Availability/Pricing/Booking/Confirm/Cancel + environment mẫu (không secret). |
| Code Samples | docs/integration/examples/ | curl · JavaScript · Python, mỗi ví dụ chạy độc lập (đã kiểm chứng curl/flow.sh end-to-end). |
| Sandbox Checklist | docs/integration/PARTNER-SANDBOX-CHECKLIST.md | Lộ trình 30 phút / 2 giờ / 1 ngày, mỗi bước có tiêu chí PASS. |
| Error Catalog | docs/integration/API-ERROR-CATALOG.md | Mọi mã lỗi + HTTP status + hướng xử lý + ma trận retry. |
BNG bàn giao qua kênh onboarding (không nằm trong repo):
https://staging-api.booking.bngagency.vnops issue-key, giao một lần qua one-time secret link / password manager. Bí mật server-to-server.unitId sandbox hợp lệ (vd u_muongthanh_deluxe) — để gọi Availability/Booking.sandbox), IP egress (server sẽ gọi API).create-partner → activate-partner → provision-tenant → activate-tenant → seed-inventory (hoặc gắn inventory thật)./api/booking/* trả 403 nếu chưa).issue-key --customer <partnerId> --env sandbox --deliver → giao raw key một lần.Raw key hiển thị đúng một lần. Mất/lộ → BNG rotate-key. Không self-serve.
x-request-id (partner tự sinh mỗi request) · HTTP status · error.code. KHÔNG gửi API key.API-ERROR-CATALOG.md (rẽ nhánh theo error.code) + mục Troubleshooting trong Integration Guide.GET /api/booking/availability không trả 403 nginx).