HUB
  1. Tested
HUB
  • Swagger
    • Tours
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
    • Auth
      • Cache flush
      • Change password
      • /auth/v1/login
      • Logout
      • Get me
      • /auth/v1/refresh-token
    • Cms
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
    • Rest
      • BearerAuth
    • Storage
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
    • Webhook
      • BasicAuth
    • Websocket
      • BearerAuth
  • Tested
    • 1. Get Providers
      GET
    • 2. Get Locations
      GET
    • 3. Get Routes
      GET
    • 4. Get Schedules
      GET
    • 5. Get Nations by Schedule ID
      GET
    • 6. Get Seats by Schedule ID
      GET
    • 7. Hold booking
      POST
    • 8. Comfirm booking
      POST
    • 9. Get Booking Detail
      GET
    • 10. Get List Booking
      GET
    • 11. Publish Ticket
      POST
    • 12. Cancel Ticket
      POST
    • 13. Update Ticket Info
      POST
  • Waterbuses
    • /waterbuses/providers
      GET
    • Get Providers
      GET
    • Booking Cancel
      POST
    • BasicAuth
      POST
    • BasicAuth
      POST
    • BasicAuth
      POST
    • BasicAuth
      POST
    • BasicAuth
      GET
    • BasicAuth
      GET
    • BasicAuth
      GET
    • BasicAuth
      GET
    • BasicAuth
      GET
    • BasicAuth
      GET
  • Swg new
    • Tours
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
    • Waterbuses
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
    • Auth
      • Cache flush
      • Change password
      • /auth/v1/login
      • Logout
      • Get me
      • /auth/v1/refresh-token
    • Cms
      • List audit logs
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • tennat
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
    • Rest
      • BearerAuth
    • Storage
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
    • Webhook
      • BasicAuth
    • Websocket
      • BearerAuth
  • swg 4
    • Tours
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
    • Waterbuses
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
      • BasicAuth
    • Auth
      • /auth/v1/cache-flush
      • /auth/v1/change-password
      • /auth/v1/login
      • /auth/v1/logout
      • /auth/v1/me
      • /auth/v1/refresh-token
    • Cms
      • /cms/v1/auditlogs
      • /cms/v1/balances
      • /cms/v1/balances
      • /cms/v1/clients
      • /cms/v1/clients
      • /cms/v1/clients/{client_id}
      • /cms/v1/cronjobs
      • /cms/v1/cronjobs/tours
      • /cms/v1/cronjobs/waterbuses
      • /cms/v1/cronjobs/{cronjob_id}
      • /cms/v1/customers
      • /cms/v1/customers/{customer_id}
      • /cms/v1/hubs/providers
      • /cms/v1/hubs/reports/balances/details
      • /cms/v1/hubs/reports/balances/summaries
      • /cms/v1/hubs/reports/waterbuses/balances/details
      • /cms/v1/hubs/reports/waterbuses/balances/summaries
      • /cms/v1/hubs/reports/waterbuses/bookings/details
      • /cms/v1/hubs/reports/waterbuses/bookings/summaries
      • /cms/v1/hubs/tenants
      • /cms/v1/providers
      • /cms/v1/providers/{provider_id}
      • /cms/v1/providers/{provider_id}
      • /cms/v1/roles
      • /cms/v1/roles
      • /cms/v1/roles/{role_id}
      • /cms/v1/roles/{role_id}
      • /cms/v1/settings/mail
      • /cms/v1/settings/mail
      • /cms/v1/settings/webhook
      • /cms/v1/settings/webhook
      • /cms/v1/tenants
      • /cms/v1/tenants
      • /cms/v1/tenants/balance
      • /cms/v1/tenants/reports/balances/details
      • /cms/v1/tenants/reports/balances/summaries
      • /cms/v1/tenants/reports/waterbuses/balances/details
      • /cms/v1/tenants/reports/waterbuses/balances/summaries
      • /cms/v1/tenants/reports/waterbuses/bookings/details
      • /cms/v1/tenants/reports/waterbuses/bookings/summaries
      • /cms/v1/tenants/{tenant_id}
      • /cms/v1/tenants/{tenant_id}
      • /cms/v1/tenants/{tenant_id}/reset-password
      • /cms/v1/tours/bookings
      • /cms/v1/tours/bookings/confirm
      • /cms/v1/tours/bookings/hold
      • /cms/v1/tours/bookings/{booking_id}
      • /cms/v1/tours/locations
      • /cms/v1/tours/prices-markup
      • /cms/v1/tours/prices-markup
      • /cms/v1/tours/prices-markup/{price_id}
      • /cms/v1/tours/providers
      • /cms/v1/tours/reports/summaries/bookings
      • /cms/v1/tours/routes
      • /cms/v1/tours/routes/{route_id}
      • /cms/v1/tours/routes/{route_id}
      • /cms/v1/tours/routes/{route_id}/change-status
      • /cms/v1/tours/schedules
      • /cms/v1/tours/schedules/{schedule_id}
      • /cms/v1/tours/schedules/{schedule_id}/change-status
      • /cms/v1/users
      • /cms/v1/users
      • /cms/v1/users/{user_id}
      • /cms/v1/users/{user_id}
      • /cms/v1/users/{user_id}/reset-password
      • /cms/v1/waterbuses/bookings
      • /cms/v1/waterbuses/bookings/cancel
      • /cms/v1/waterbuses/bookings/confirm
      • /cms/v1/waterbuses/bookings/hold
      • /cms/v1/waterbuses/bookings/publish
      • /cms/v1/waterbuses/bookings/update
      • /cms/v1/waterbuses/bookings/{booking_id}
      • /cms/v1/waterbuses/issues
      • /cms/v1/waterbuses/issues/{issue_id}
      • /cms/v1/waterbuses/issues/{issue_id}
      • /cms/v1/waterbuses/locations
      • /cms/v1/waterbuses/prices-markup
      • /cms/v1/waterbuses/prices-markup
      • /cms/v1/waterbuses/prices-markup/{price_id}
      • /cms/v1/waterbuses/prices-markup/{price_id}
      • /cms/v1/waterbuses/providers
      • /cms/v1/waterbuses/routes
      • /cms/v1/waterbuses/routes/{route_id}
      • /cms/v1/waterbuses/routes/{route_id}
      • /cms/v1/waterbuses/routes/{route_id}/change-status
      • /cms/v1/waterbuses/schedules
      • /cms/v1/waterbuses/schedules/{schedule_id}/nations
      • /cms/v1/waterbuses/schedules/{schedule_id}/seats
    • Rest
      • /rest/v1/metas
    • Storage
      • /storage/v1/images
      • /storage/v1/images/{filename}
      • /storage/v1/videos
      • /storage/v1/videos/{filename}
    • Webhook
      • BasicAuth
    • Websocket
      • /websocket/v1
  1. Tested

9. Get Booking Detail

Testing Env
https://stg-api-hub.suntraveltech.com
Testing Env
https://stg-api-hub.suntraveltech.com
GET
https://stg-api-hub.suntraveltech.com
/waterbuses/bookings/{{booking_id}}
Last modified:2025-03-09 19:18:26
Maintainer:Not configured
API lấy thông tin chi tiết 1 đơn hàng đã thanh toán thành công, lấy thông tin để xuất vé

Path Params#

booking_id booking_id

Parameters#

Field nameTypeDescription
booking_idstringMã đặt vé
request_idstringMã tham chiếu để tạo yêu cầu giữ chỗ được tạo từ phía đối tác
statusstringTrạng thái xử lý vé
- Published
fee_amountnumberTổng cộng các loại phí
ticket_amountnumberTổng cộng giá vé
total_amountnumberTổng cộng số tiền phải thanh toán
refund_amountnumberTổng số tiền hoàn
order_detailsarrayThông tin chi tiết đơn hàng
order_details[0].booking_codestringMã tham chiếu đặt vé
order_details[0].order_nostringMã tham chiếu đặt vé
order_details[0].route_nmstringTên tuyến đường
order_details[0].vehicle_nmstringTên phương tiện
order_details[0].harbor_nmstringTên cảng
order_details[0].bookerstringTên người đặt vé
order_details[0].phonestringĐiện thoại người đặt vé
order_details[0].emailstringEmail người đặt vé
order_details[0].addressstringĐịa chỉ người đặt vé
order_details[0].buyerstringTên người mua vé
order_details[0].taxcodestringMã số thuế
order_details[0].company_nmstringTên công ty
order_details[0].company_addrstringĐịa chỉ công ty
order_details[0].ticket_detailarrayThông tin chi tiết vé
order_details[0].ticket_detail[0].statusstringTrạng thái vé
order_details[0].ticket_detail[0].fee_amountnumberCác loại phí
order_details[0].ticket_detail[0].ticket_amountnumberTiền vé
order_details[0].ticket_detail[0].total_amountnumberSố tiền cần thanh toán
order_details[0].ticket_detail[0].full_nmstringHọ và tên
order_details[0].ticket_detail[0].phonestringSố điện thoại
order_details[0].ticket_detail[0].emailstringEmail
order_details[0].ticket_detail[0].yobstringNgày sinh
order_details[0].ticket_detail[0].pobstringNơi sinh
order_details[0].ticket_detail[0].id_nostringCCCD/Passport
order_details[0].ticket_detail[0].genderstringGiới tính
order_details[0].ticket_detail[0].nationstringQuốc gia
order_details[0].ticket_detail[0].seat_nmstringVị trí ghế ngồi
order_details[0].ticket_detail[0].ticket_type_nmstringLoại vé
order_details[0].ticket_detail[0].qr_codestringQR code - Thẻ lên tàu
order_details[0].ticket_detail[0].invoice_codestringMã tra cứu hoá đơn VAT

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://stg-api-hub.suntraveltech.com/waterbuses/bookings/{{booking_id}}' \
--header 'Authorization: Basic <encoded-value>'

Responses

🟢200Success Sample
application/json
Body

Example
{
    "booking_id": "67b2bfb2bf0a57532e067a65",
    "request_id": "request_id_20250217",
    "transaction_id": "payment_id_20250217",
    "status": "paid",
    "fee_amount": 36000,
    "total_amount": 936000,
    "ticket_amount": 900000,
    "refund_amount": 0,
    "is_round_trip": false,
    "order_details": [
        {
            "booking_code": "1",
            "order_no": "20250302TD-CD0552",
            "route_nm": "Trần Đề-Côn Đảo",
            "vehicle_nm": "CD36 - CÔN ĐẢO EXPRESS 36",
            "harbor_nm": "CẢNG BẾN ĐẦM",
            "no_of_tickets": 2,
            "depart_date": "2025-03-01T23:30:00Z",
            "booker": "Nguyen Thi Test",
            "phone": "0973123456",
            "email": "bpoker@gmail.com",
            "address": "Hồ Chí Minh",
            "buyer": "Nguyễn Văn Book",
            "taxcode": "3212442210",
            "company_nm": "Công ty Việt Nam",
            "company_addr": "Hồ Chí Minh",
            "ticket_details": [
                {
                    "status": "published",
                    "fee_amount": 18000,
                    "ticket_amount": 450000,
                    "total_amount": 468000,
                    "full_nm": "Nguyễn Văn Guest 1",
                    "phone": "0973123456",
                    "email": "guest1@gmail.com",
                    "yob": "02/01/1950",
                    "pob": "Hồ Chí Minh",
                    "id_no": "079012345678",
                    "gender": "male",
                    "nation": "Paraquay",
                    "seat_id": "67b2be31bf0a57532e0678c4",
                    "seat_nm": "N12",
                    "ticket_type_nm": "Vé người lớn",
                    "qr_code": "QY236MP74VWV0JVDMSSA53X9WS2KYM2W$TD-CD*02/03/2025 06:30*NGUYEN VAN GUEST 1*N12*079012345678",
                    "invoice_code": "S3LYV1X4",
                    "invoice_website": "https://hoadon.phuquocexpress.com",
                    "harbor_detail": {
                        "harbor_nm": "BAN QUẢN LÝ CẢNG BẾN ĐẦM",
                        "harbor_addr1": "1007/36 Đường 30/14, P11, Tp Vũng Tàu",
                        "harbor_addr2": "Đường Quy Hoạch Cảng Bến Đầm",
                        "harbor_phone": "0254.3830018 - 0254.3621713",
                        "harbor_taxcode": "3500408480",
                        "harbor_website": "http://hoadon.bqlcangbendam.com.vn",
                        "harbor_number_code": "78",
                        "harbor_invoice_code": "79ROFZ9ONU5"
                    }
                },
                {
                    "status": "published",
                    "fee_amount": 18000,
                    "ticket_amount": 450000,
                    "total_amount": 468000,
                    "full_nm": "Nguyễn Văn Guest 2",
                    "phone": "0973123456",
                    "email": "guest2@gmail.com",
                    "yob": "02/01/1950",
                    "pob": "Hồ Chí Minh",
                    "id_no": "079112345678",
                    "gender": "male",
                    "nation": "Paraquay",
                    "seat_id": "67b2be31bf0a57532e0678c3",
                    "seat_nm": "M12",
                    "ticket_type_nm": "Vé người lớn",
                    "qr_code": "9PEO6K7GZS0QPT4HD2023GLXEN26JAVK$TD-CD*02/03/2025 06:30*NGUYEN VAN GUEST 2*M12*079112345678",
                    "invoice_code": "FOW5K2U2",
                    "invoice_website": "https://hoadon.phuquocexpress.com",
                    "harbor_detail": {
                        "harbor_nm": "BAN QUẢN LÝ CẢNG BẾN ĐẦM",
                        "harbor_addr1": "1007/36 Đường 30/14, P11, Tp Vũng Tàu",
                        "harbor_addr2": "Đường Quy Hoạch Cảng Bến Đầm",
                        "harbor_phone": "0254.3830018 - 0254.3621713",
                        "harbor_taxcode": "3500408480",
                        "harbor_website": "http://hoadon.bqlcangbendam.com.vn",
                        "harbor_number_code": "490",
                        "harbor_invoice_code": "HEKKG08Q66U"
                    }
                }
            ]
        }
    ]
}
Modified at 2025-03-09 19:18:26
Previous
8. Comfirm booking
Next
10. Get List Booking
Built with