HUB
  1. Cms
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
    • 2. Get Locations
    • 3. Get Routes
    • 4. Get Schedules
    • 5. Get Nations by Schedule ID
    • 6. Get Seats by Schedule ID
    • 7. Hold booking
    • 8. Comfirm booking
    • 9. Get Booking Detail
    • 10. Get List Booking
    • 11. Publish Ticket
    • 12. Cancel Ticket
    • 13. Update Ticket Info
  • 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
        GET
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        DELETE
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        DELETE
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • tennat
        GET
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        POST
      • BearerAuth
        POST
      • BearerAuth
        POST
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        POST
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        PUT
      • BearerAuth
        PUT
      • BearerAuth
        GET
      • BearerAuth
        GET
      • BearerAuth
        GET
    • 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. Cms

BearerAuth

Testing Env
https://stg-api-hub.suntraveltech.com
Testing Env
https://stg-api-hub.suntraveltech.com
POST
https://stg-api-hub.suntraveltech.com
/cms/v1/tours/bookings/hold
Last modified:2025-03-13 08:57:36
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 *****************
Body Params application/json

Example
{
    "booker_info": {
        "address": "Hồ Chí Minh",
        "booker": "Nguyễn Văn A",
        "email": "abc@gmail.com",
        "phone": "0973123456"
    },
    "request_id": "request_id_001",
    "schedule_id": "671db48abdd14abb7e0d38f5",
    "signature": "abd328c6194dc620d02b2ea6a27c6569aca81dd62808f641139908869b4929910cd31cd6e23ce70822",
    "ticket_infos": [
        {
            "email": "abc@gmail.com",
            "full_nm": "Nguyễn Văn A",
            "gender": "male",
            "id_no": "080091123456",
            "phone": "0973123456",
            "pob": "Hồ Chí Minh",
            "service_price_ids": [
                "string"
            ],
            "ticket_price_id": "string",
            "yob": "2006-01-02"
        }
    ]
}

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 POST 'https://stg-api-hub.suntraveltech.com/cms/v1/tours/bookings/hold' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "booker_info": {
        "address": "Hồ Chí Minh",
        "booker": "Nguyễn Văn A",
        "email": "abc@gmail.com",
        "phone": "0973123456"
    },
    "request_id": "request_id_001",
    "schedule_id": "671db48abdd14abb7e0d38f5",
    "signature": "abd328c6194dc620d02b2ea6a27c6569aca81dd62808f641139908869b4929910cd31cd6e23ce70822",
    "ticket_infos": [
        {
            "email": "abc@gmail.com",
            "full_nm": "Nguyễn Văn A",
            "gender": "male",
            "id_no": "080091123456",
            "phone": "0973123456",
            "pob": "Hồ Chí Minh",
            "service_price_ids": [
                "string"
            ],
            "ticket_price_id": "string",
            "yob": "2006-01-02"
        }
    ]
}'

Responses

🟢200OK
*/*
OK
Body

Example
{
    "booking_id": "a89db9eca1f1b1bdbf3d4345",
    "paid_amount": 0,
    "request_id": "request_id_001",
    "status": "request"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2025-03-13 08:57:36
Previous
BearerAuth
Next
BearerAuth
Built with