HUB
  1. Tours
HUB
  • Swagger
    • Tours
      • BasicAuth
        GET
      • BasicAuth
        POST
      • BasicAuth
        POST
      • BasicAuth
        GET
      • BasicAuth
        GET
      • BasicAuth
        GET
      • BasicAuth
        GET
      • BasicAuth
        GET
    • 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 Providers
    • Booking Cancel
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
    • BasicAuth
  • 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. Tours

BasicAuth

Testing Env
https://stg-api-hub.suntraveltech.com
Testing Env
https://stg-api-hub.suntraveltech.com
GET
https://stg-api-hub.suntraveltech.com
/agent/v1/tours/bookings
Last modified:2025-03-10 06:15:48
Maintainer:Not configured

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 *****************
Query Params

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 --request GET 'https://stg-api-hub.suntraveltech.com/agent/v1/tours/bookings?page' \
--header 'Authorization: Basic <encoded-value>'

Responses

🟢200OK
*/*
OK
Body

Example
[
    {
        "address": "Hồ Chí Minh",
        "booker": "Nguyễn Văn A",
        "booking_code": "11679",
        "booking_id": "a89db9eca1f1b1bdbf3d4345",
        "depart_date": "2024-10-25T03:15:00Z",
        "email": "abc@gmail.com",
        "end_date": "2024-10-30T03:15:00Z",
        "no_of_tickets": 1,
        "order_no": "20220527PQ-RG0004",
        "paid_amount": 340000,
        "phone": "0973123456",
        "request_id": "request_id_001",
        "route_nm": "Khám phá Tây Bắc: Hà Nội - Hòa Bình - Mộc Châu - Điện Biên - Lai Châu - Sapa - Fansipan - Yên Bái - Hồ Thác Bà - Phú Thọ - Đền Hùng",
        "status": "request",
        "ticket_details": [
            {
                "email": "abc@gmail.com",
                "full_nm": "Nguyễn Văn A",
                "gender": "male",
                "id_no": "080091123456",
                "phone": "0973123456",
                "pob": "Hồ Chí Minh",
                "yob": "2006-01-02"
            }
        ],
        "vehicle_nm": "Máy bay"
    }
]
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2025-03-10 06:15:48
Next
BasicAuth
Built with