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
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • BearerAuth
      • 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
        GET
      • /cms/v1/balances
        GET
      • /cms/v1/balances
        POST
      • /cms/v1/clients
        GET
      • /cms/v1/clients
        POST
      • /cms/v1/clients/{client_id}
        DELETE
      • /cms/v1/cronjobs
        GET
      • /cms/v1/cronjobs/tours
        GET
      • /cms/v1/cronjobs/waterbuses
        GET
      • /cms/v1/cronjobs/{cronjob_id}
        DELETE
      • /cms/v1/customers
        GET
      • /cms/v1/customers/{customer_id}
        GET
      • /cms/v1/hubs/providers
        GET
      • /cms/v1/hubs/reports/balances/details
        GET
      • /cms/v1/hubs/reports/balances/summaries
        GET
      • /cms/v1/hubs/reports/waterbuses/balances/details
        GET
      • /cms/v1/hubs/reports/waterbuses/balances/summaries
        GET
      • /cms/v1/hubs/reports/waterbuses/bookings/details
        GET
      • /cms/v1/hubs/reports/waterbuses/bookings/summaries
        GET
      • /cms/v1/hubs/tenants
        GET
      • /cms/v1/providers
        GET
      • /cms/v1/providers/{provider_id}
        GET
      • /cms/v1/providers/{provider_id}
        PUT
      • /cms/v1/roles
        GET
      • /cms/v1/roles
        POST
      • /cms/v1/roles/{role_id}
        GET
      • /cms/v1/roles/{role_id}
        PUT
      • /cms/v1/settings/mail
        GET
      • /cms/v1/settings/mail
        PUT
      • /cms/v1/settings/webhook
        GET
      • /cms/v1/settings/webhook
        PUT
      • /cms/v1/tenants
        GET
      • /cms/v1/tenants
        POST
      • /cms/v1/tenants/balance
        GET
      • /cms/v1/tenants/reports/balances/details
        GET
      • /cms/v1/tenants/reports/balances/summaries
        GET
      • /cms/v1/tenants/reports/waterbuses/balances/details
        GET
      • /cms/v1/tenants/reports/waterbuses/balances/summaries
        GET
      • /cms/v1/tenants/reports/waterbuses/bookings/details
        GET
      • /cms/v1/tenants/reports/waterbuses/bookings/summaries
        GET
      • /cms/v1/tenants/{tenant_id}
        GET
      • /cms/v1/tenants/{tenant_id}
        PUT
      • /cms/v1/tenants/{tenant_id}/reset-password
        POST
      • /cms/v1/tours/bookings
        GET
      • /cms/v1/tours/bookings/confirm
        POST
      • /cms/v1/tours/bookings/hold
        POST
      • /cms/v1/tours/bookings/{booking_id}
        GET
      • /cms/v1/tours/locations
        GET
      • /cms/v1/tours/prices-markup
        GET
      • /cms/v1/tours/prices-markup
        POST
      • /cms/v1/tours/prices-markup/{price_id}
        PUT
      • /cms/v1/tours/providers
        GET
      • /cms/v1/tours/reports/summaries/bookings
        GET
      • /cms/v1/tours/routes
        GET
      • /cms/v1/tours/routes/{route_id}
        GET
      • /cms/v1/tours/routes/{route_id}
        PUT
      • /cms/v1/tours/routes/{route_id}/change-status
        PUT
      • /cms/v1/tours/schedules
        GET
      • /cms/v1/tours/schedules/{schedule_id}
        PUT
      • /cms/v1/tours/schedules/{schedule_id}/change-status
        PUT
      • /cms/v1/users
        GET
      • /cms/v1/users
        POST
      • /cms/v1/users/{user_id}
        GET
      • /cms/v1/users/{user_id}
        PUT
      • /cms/v1/users/{user_id}/reset-password
        POST
      • /cms/v1/waterbuses/bookings
        GET
      • /cms/v1/waterbuses/bookings/cancel
        POST
      • /cms/v1/waterbuses/bookings/confirm
        POST
      • /cms/v1/waterbuses/bookings/hold
        POST
      • /cms/v1/waterbuses/bookings/publish
        POST
      • /cms/v1/waterbuses/bookings/update
        POST
      • /cms/v1/waterbuses/bookings/{booking_id}
        GET
      • /cms/v1/waterbuses/issues
        GET
      • /cms/v1/waterbuses/issues/{issue_id}
        GET
      • /cms/v1/waterbuses/issues/{issue_id}
        PUT
      • /cms/v1/waterbuses/locations
        GET
      • /cms/v1/waterbuses/prices-markup
        GET
      • /cms/v1/waterbuses/prices-markup
        POST
      • /cms/v1/waterbuses/prices-markup/{price_id}
        GET
      • /cms/v1/waterbuses/prices-markup/{price_id}
        PUT
      • /cms/v1/waterbuses/providers
        GET
      • /cms/v1/waterbuses/routes
        GET
      • /cms/v1/waterbuses/routes/{route_id}
        GET
      • /cms/v1/waterbuses/routes/{route_id}
        PUT
      • /cms/v1/waterbuses/routes/{route_id}/change-status
        PUT
      • /cms/v1/waterbuses/schedules
        GET
      • /cms/v1/waterbuses/schedules/{schedule_id}/nations
        GET
      • /cms/v1/waterbuses/schedules/{schedule_id}/seats
        GET
    • 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

/cms/v1/waterbuses/bookings/hold

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/waterbuses/bookings/hold
Last modified:2025-03-13 09:42:25
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
{
    "is_round_trip": true,
    "orders": [
        {
            "booker_info": {
                "address": "Hồ Chí Minh",
                "booker": "Nguyễn Văn A",
                "buyer": "Nguyễn Văn A",
                "company_addr": "Hồ Chí Minh",
                "company_nm": "Công ty Việt Nam",
                "email": "abc@gmail.com",
                "phone": "0973123456",
                "taxcode": "3212442210"
            },
            "schedule_id": "671db48abdd14abb7e0d38f5",
            "ticket_infos": [
                {
                    "email": "abc@gmail.com",
                    "full_nm": "Nguyễn Văn A",
                    "gender": "male",
                    "id_no": "080091123456",
                    "nation_id": "671dc315a1f1b1bdbf3d4725",
                    "phone": "0973123456",
                    "pob": "Hồ Chí Minh",
                    "seat_id": "671db4b9bdd14abb7e0d41b5",
                    "ticket_price_id": "671db4b7bdd14abb7e0d3f5d",
                    "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/waterbuses/bookings/hold' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "is_round_trip": true,
    "orders": [
        {
            "booker_info": {
                "address": "Hồ Chí Minh",
                "booker": "Nguyễn Văn A",
                "buyer": "Nguyễn Văn A",
                "company_addr": "Hồ Chí Minh",
                "company_nm": "Công ty Việt Nam",
                "email": "abc@gmail.com",
                "phone": "0973123456",
                "taxcode": "3212442210"
            },
            "schedule_id": "671db48abdd14abb7e0d38f5",
            "ticket_infos": [
                {
                    "email": "abc@gmail.com",
                    "full_nm": "Nguyễn Văn A",
                    "gender": "male",
                    "id_no": "080091123456",
                    "nation_id": "671dc315a1f1b1bdbf3d4725",
                    "phone": "0973123456",
                    "pob": "Hồ Chí Minh",
                    "seat_id": "671db4b9bdd14abb7e0d41b5",
                    "ticket_price_id": "671db4b7bdd14abb7e0d3f5d",
                    "yob": "2006-01-02"
                }
            ]
        }
    ]
}'

Responses

🟢200OK
*/*
OK
Body

Example
{
    "booking_code": "string",
    "booking_id": "string",
    "cancel_seat_ids": [
        "string"
    ],
    "canceled_at": "string",
    "confirmed_at": "string",
    "created_at": "string",
    "created_by": "string",
    "detail": {
        "booking_id": "a89db9eca1f1b1bdbf3d4345",
        "fee_amount": 18000,
        "is_round_trip": true,
        "order_details": [
            {
                "address": "Hồ Chí Minh",
                "booker": "Nguyễn Văn A",
                "booking_code": "11679",
                "buyer": "Nguyễn Văn A",
                "company_addr": "Hồ Chí Minh",
                "company_nm": "Công ty Việt Nam",
                "depart_date": "2024-10-25T03:15:00Z",
                "email": "abc@gmail.com",
                "harbor_nm": "BẾN TÀU RẠCH GIÁ",
                "no_of_tickets": 1,
                "order_no": "20220527PQ-RG0004",
                "phone": "0973123456",
                "route_nm": "Phú Quốc - Rạch Giá",
                "taxcode": "3212442210",
                "ticket_details": [
                    {
                        "email": "abc@gmail.com",
                        "fee_amount": 18000,
                        "full_nm": "Nguyễn Văn A",
                        "gender": "male",
                        "harbor_detail": {
                            "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_invoice_code": "P4536TUE97",
                            "harbor_nm": "BAN QUẢN LÝ CẢNG BẾN ĐẦM",
                            "harbor_number_code": "97",
                            "harbor_phone": "0254.3830018 - 0254.3621713",
                            "harbor_taxcode": "3500408480",
                            "harbor_website": "http://hoadon.bqlcangbendam.com.vn"
                        },
                        "id_no": "080091123456",
                        "invoice_code": "VU45YUOC",
                        "invoice_website": "https://hoadon.phuquocexpress.com",
                        "nation": "VietNam",
                        "phone": "0973123456",
                        "pob": "Hồ Chí Minh",
                        "qr_code": "5E48D3B55F1FEDD8693B0765D4108F99$RG-PQ*25/10/2024 10:15*NGUYEN VAN A*D11*537363800",
                        "seat_id": "671db4b9bdd14abb7e0d41b5",
                        "seat_nm": "D11",
                        "status": "request",
                        "ticket_amount": 338200,
                        "ticket_type_nm": "Vé người lớn",
                        "total_amount": 340000,
                        "yob": "2006-01-02"
                    }
                ],
                "vehicle_nm": "PHÚ QUỐC EXPRESS 18"
            }
        ],
        "refund_amount": 0,
        "request_id": "request_id_001",
        "status": "request",
        "ticket_amount": 338200,
        "total_amount": 340000,
        "transaction_id": "transaction_id_001"
    },
    "expired_at": "string",
    "fail_code": "string",
    "fail_msg": "string",
    "fee_amount": 0,
    "is_agent": true,
    "is_cms": true,
    "is_published": true,
    "is_round_trip": true,
    "orders": [
        {
            "booker_info": {
                "address": "Hồ Chí Minh",
                "booker": "Nguyễn Văn A",
                "buyer": "Nguyễn Văn A",
                "company_addr": "Hồ Chí Minh",
                "company_nm": "Công ty Việt Nam",
                "email": "abc@gmail.com",
                "phone": "0973123456",
                "taxcode": "3212442210"
            },
            "schedule_id": "671db48abdd14abb7e0d38f5",
            "ticket_infos": [
                {
                    "email": "abc@gmail.com",
                    "full_nm": "Nguyễn Văn A",
                    "gender": "male",
                    "id_no": "080091123456",
                    "nation_id": "671dc315a1f1b1bdbf3d4725",
                    "phone": "0973123456",
                    "pob": "Hồ Chí Minh",
                    "seat_id": "671db4b9bdd14abb7e0d41b5",
                    "ticket_price_id": "671db4b7bdd14abb7e0d3f5d",
                    "yob": "2006-01-02"
                }
            ]
        }
    ],
    "provider": {
        "data_status": "enable",
        "description": "Aloha Beautiful",
        "images": [
            "https://cdn.aloha.com/image_1.png"
        ],
        "logo": "https://cdn.aloha.com/logo.png",
        "name": "Aloha",
        "provider_id": "671db9eca1f1b1bdbf3d4616",
        "updated_at": "2006-01-02T03:04:05Z",
        "updated_by": "editor"
    },
    "published_at": "string",
    "refund_amount": 0,
    "refund_raw_amount": 0,
    "request_id": "string",
    "status": "request",
    "tenant_id": "string",
    "ticket_amount": 0,
    "ticket_raw_amount": 0,
    "total_amount": 0,
    "total_raw_amount": 0,
    "transaction_id": "string",
    "update_seat_infos": [
        {
            "full_nm": "Nguyễn Văn A",
            "id_no": "080091123456",
            "seat_id": "671db4b9bdd14abb7e0d41b5"
        }
    ],
    "updated_at": "string",
    "updated_by": "string"
}
Modified at 2025-03-13 09:42:25
Previous
/cms/v1/waterbuses/bookings/confirm
Next
/cms/v1/waterbuses/bookings/publish
Built with