Live Availability for Ferries
Le Quoc KhoiCEO, Ferry VN JSC
Key Takeaways: Building a resilient ferry availability sync API integration on Ferry VN Platform requires horizon-tiered snapshot caching paired with pre-checkout seat-map revalidation and disruption polling, because Vietnamese carriers do not support upstream hard seat holds.
- Six-Tier Sync Cadence: Ferry VN refreshes voyages every 30 minutes (days 0–7), every 2 hours (days 8–14), every 4 hours (days 15–45), and 3 times daily (days 46–90), while re-scanning sold-out sailings every 40 minutes and disabled sailings every 4 hours.
- Pre-Booking Seat Revalidation: Because
POST /api/v1/bookingsmarks seats inside Ferry VN without locking the carrier's direct engine, OTAs should cache near-term voyages for at most 5 minutes and re-fetch boat layouts right before booking to limitUnavailableSeats(150201).- Beaufort Force 6 Monsoon Closures: Under VIMAWA Circular 16/2013/TT-BGTVT and Circular 10/2024/TT-BGTVT, port authorities halt departures when sustained winds hit Beaufort Force 6 or higher, especially September through February.
- Incremental Disruption API: Poll
/api/v1/disruptions?updated_since=...(sorted ascending byupdated_at, zero passenger PII) alongside opt-in Standard Webhooks HMAC-SHA256 (disruption.*) to automate alerts and refunds.
Engineering a ferry availability sync API for tropical island corridors breaks down quickly when Online Travel Agencies (OTAs) copy hotel channel-manager assumptions onto sea routes. Hotel room pools update predictably across fixed nightly blocks, whereas Vietnamese high-speed vessels juggle dynamic carrier timetables, 30-to-45-minute port cut-offs, physical deck seat maps, and sudden monsoon wind bans.
Stale availability caches trigger two costly failures: checkout rejections (UnavailableSeats 150201) when port counters claim the last seats first, and travelers stranded at piers after a Beaufort Force 6 cancellation. Knowing Ferry VN's exact sync tiers, caching boundaries, and disruption endpoints stops both failure modes before production launch.
Why Island Ferry Inventory Is Snapshot-Synced, Not GDS-Locked
Ferry VN aggregates 15+ Vietnamese ferry operators across 12 live Production adapters (8 ticketing-enabled plus 4 schedule-lookup-only). Hitting every domestic carrier server synchronously on every OTA search would trigger carrier rate limits and multi-second timeouts.
Instead, Ferry VN syncs voyage timetables and remaining seat counts using jittered background workers staggered across a 5-minute window. During carrier outages, Ferry VN serves the last valid snapshot for up to 4 hours without throwing HTTP errors, and seats belong to your traveler only once POST /api/v1/bookings/confirmToIssue/{id} reaches status 10 (Issued).
| Voyage Horizon or State | Ferry VN Sync Cadence | Recommended OTA Cache TTL | Required Checkout Safeguard |
|---|---|---|---|
| Near-Term (Today to 7 Days) | Every 30 minutes | Maximum 5 minutes | Mandatory fresh Boat Layout + Voyage Counts call before booking |
| Medium-Term (8 to 14 Days) | Every 2 hours | 15 to 30 minutes | Re-check live price (prices.forRoute with live) and seat layout |
| Long-Term (15 to 45 Days) | Every 4 hours | 1 to 2 hours | Display advisory fare and refresh layout on checkout entry |
| Far-Term (46 to 90 Days) | 3 times daily (skips unchanged) | 4 to 6 hours | Note timetable subject to operator seasonal confirmation |
| Sold-Out Voyages (All Dates) | Re-scanned every 40 minutes | 5 to 10 minutes | Automatically re-open route if group seats release |
| Operator-Disabled Voyages | Re-scanned every 4 hours | 30 minutes | Filter out via isVoyageBookable() helper in @ferryvn/sdk |
For the multi-operator API contract, 8-status booking state machine, and commercial supply options, review the Vietnam Ferry API specification.
Three-Layer Caching and Pre-Checkout Seat Verification
High-converting OTAs separate static catalog discovery, fast search browsing, and transactional seat verification into three distinct TTL layers. Mixing all three into one cache policy either exhausts the global rate limit (5,000 requests per 10 seconds per client IP per route) or spikes checkout rejections.

Layering Public Catalogs, Voyages, and Live Pricing
Pier, route, and operator catalogs live on 9 unauthenticated public routes and change infrequently, so cache /api/v1/locations and /api/v1/routes locally for 24 hours. Request scoped UAT keys through Ferry VN API partner onboarding and explore full client helpers on the Ferry VN API and SDK platform hub.
For voyage search (voyages:read), pass Vietnam calendar dates (YYYY-MM-DD GMT+7 via toYmd or todayInVietnam in @ferryvn/sdk) and iterate all cursors because limit clamps at 50 records and sorting falls back to descending _id. At checkout, pass live: n (up to 10 voyages) to ferry.prices.forRoute() to pull fresh seat-map fares and filter out the 4 lookup-only Production carriers (BinhAnHaTien, ThanhThoi, HangChauTourist, SaiGonWaterGo).
Pre-Booking Seat-Map Refresh and Collision Recovery
Because Ferry VN does not hold seats on an operator's engine while travelers enter passport fields, fetch Boat Layout and Voyage Counts with zero cache right before calling bookingDrafts.create(). Guard list queries against silent HTTP 200 [] empty arrays on transient upstream faults:
import { FerryClient, FerryApiError, FerryErrorCode, isVoyageBookable } from '@ferryvn/sdk'
export async function verifyAndBookSeats(
ferry: FerryClient,
departureId: string,
destinationId: string,
dateYmd: string,
partySize: number
) {
const { data: voyages } = await ferry.voyages.search({
date: dateYmd,
departureId,
destinationId
})
// Guard against swallowed transient faults returning HTTP 200 []
if (voyages.length === 0) {
return { status: 'EMPTY_OR_DEGRADED' as const, action: 'ALERT_AND_RETAIN_CACHE' }
}
const candidate = voyages.find(isVoyageBookable)
if (!candidate) {
return { status: 'NO_BOOKABLE_VOYAGE' as const }
}
// Always refresh live seat availability right before checkout creation
const counts = await ferry.request('GET', `/api/v1/voyages/${candidate.voyage.id}/counts`)
if ((counts?.availableSeats ?? 0) < partySize) {
return { status: 'INSUFFICIENT_SEATS' as const }
}
try {
return { status: 'READY' as const, voyageId: candidate.voyage.id }
} catch (err) {
if (err instanceof FerryApiError && err.errorCode === FerryErrorCode.UnavailableSeats) {
// Code 150201: Another channel claimed the seat before confirmation
return { status: 'SEAT_COLLISION_REFRESH_LAYOUT' as const }
}
throw err
}
}
Remember also that Ferry VN recalculates fares at confirmToIssue time rather than locking search-time prices, so surface a clear total check before debiting customer cards.
Port Cut-Offs, Fleet Updates, and Monsoon Disruptions
Maritime availability depends on port regulation as much as seat supply. Under Vietnam Maritime and Waterway Administration (VIMAWA) Circular 16/2013/TT-BGTVT and Circular 10/2024/TT-BGTVT published on Vietnam's National Legal Portal, ports halt departure clearance whenever sustained offshore winds reach Beaufort Force 6 or higher, and check-in closes 30 to 45 minutes before sailing for manifest filing.
OTAs must also track 2025–2026 fleet shifts instead of hard-coding static carrier tables: Mai Linh Express ended Can Tho–Con Dao sailings in May 2025, Lightning 68 suspended Rach Gia–Phu Quoc on July 28, 2026 to focus on Rach Gia–Hon Son, Phu Quoc Express paused Vung Tau–Con Dao for maintenance from August 1, 2026 (expected January 2027), and Phu Quy Express paused HCMC–Con Dao from September 1, 2026 (expected January 2027).
| Maritime Corridor (Post-Resolution 202/2025/QH15) | Peak Monsoon Disruption Risk | Airport Alternative | OTA Availability & Cut-Off Design Rule |
|---|---|---|---|
| Phu Quoc (Phu Quoc Special Zone, An Giang) from Rach Gia / Ha Tien | Moderate (southwest squalls Jul–Sep) | Yes (PQC) | High frequency (30+ daily ex-Rach Gia), enforce 45-min cut-off |
| Con Dao (Con Dao Special Zone, Ho Chi Minh City) from Tran De, Vung Tau & Nha Rong Khanh Hoi (HCMC) | High (northeast monsoon Oct–Feb) | Limited turboprop | Note Vung Tau–Con Dao suspended Aug 1, 2026 & HCMC–Con Dao Sep 1, 2026 (expected Jan 2027), Tran De active |
| Phu Quy (Phu Quy Special Zone, Lam Dong) from Phan Thiet | High (strong swell Oct–Feb) | None (100% ferry) | Monitor Beaufort Force 6 bans and automate rebooking alerts |
| Ly Son (Ly Son Special Zone, Quang Ngai) from Sa Ky Port | High (central typhoons Sep–Dec) | None (100% ferry) | Account for semi-automated Sa Ky cut-offs alongside PQE |
| Nam Du & Hon Son (Kien Hai Special Zone, An Giang) from Rach Gia | Moderate (Jul–Sep squalls) | None (100% ferry) | Sync Lightning 68 (Hon Son), Superdong, and Hoa Binh Ship daily |
| HCMC–Vung Tau (Ho Chi Minh City) Bach Dang to Vung Tau | Low (sheltered estuary/coastal) | Road alternative | Tight urban turnarounds via Greenlines-DP, enforce 30-min cut-off |
For hull comparisons and seasonal capacity across flagship routes, read our Phu Quoc and Con Dao catamaran versus Ro-Ro supply guide.
Building an Incremental Disruption Sync Pipeline
When winds or technical faults delay or cancel a sailing, Ferry VN moves affected bookings to status 16 (Trip Cancelled) and publishes incident feeds at /api/v1/disruptions, /api/v1/disruptions/{id}, and /api/v1/bookings/{id}/disruptions. Reading disruptions requires the voyages:read key scope plus the view_disruption permission, returning zero passenger PII.
Combining Disruption Webhooks with updated_since Polling
Pair opt-in Standard Webhooks HMAC-SHA256 events (disruption.created, disruption.updated, disruption.closed) with incremental polling. Unlike standard list routes, /api/v1/disruptions sorts ascending by updated_at:
import { FerryClient } from '@ferryvn/sdk'
interface DisruptionRecord {
id: string
kind: 'delayed' | 'cancelled'
state: 'building' | 'active' | 'closing' | 'closed'
updated_at: string
public_reason?: string
affected_bookings: Array<{ booking_id: string; leg: 'depart' | 'return'; ticket_count: number }>
}
export async function pollDisruptionsSince(ferry: FerryClient, watermarkIso: string) {
let cursor: string | undefined
let latestWatermark = watermarkIso
const incidents: DisruptionRecord[] = []
do {
const res = await ferry.request('GET', '/api/v1/disruptions', {
query: { updated_since: watermarkIso, limit: 50, ...(cursor ? { cursor } : {}) }
})
for (const item of res.data ?? []) {
incidents.push(item)
if (item.updated_at > latestWatermark) {
latestWatermark = item.updated_at
}
}
cursor = res.next_cursor ?? undefined
} while (cursor)
return { incidents, nextWatermarkIso: latestWatermark }
}
Run this sweep every 5 minutes during September–February monsoon peaks to catch any webhook dropped after 4 attempts, following our API reliability and reconciliation patterns and Ferry VN SDK quickstart.
Testing Availability Edge Cases on Zero-Cost UAT
Validate seat collisions, closed sailings, and manifest checks against uatexpress on Ferry VN's isolated UAT environment (https://api.ferryvn.net, OPERATOR_ADAPTER_ALLOWLIST=uatexpress) before cutover. Sold uatexpress seats update across the three test corridors (UAT Rach Gia, UAT Ha Tien, UAT Tran De) so QA reproduces UnavailableSeats (150201) and VoyageNoLongerAvailable at zero cost while enforcing VIMAWA manifest rules.
Inspect schemas on the interactive REST API reference and implementation examples in the availability and disruption sync docs, or review B2B plans on Ferry VN Pricing (hi@ferry.vn · +84 924 299 898).
FAQ
Frequently Asked Questions
How frequently does Ferry VN refresh voyage availability from Vietnamese ferry operators?
Ferry VN syncs schedules every 30 minutes for departures within 7 days, every 2 hours for days 8–14, every 4 hours for days 15–45, and 3 times daily for days 46–90. Sold-out sailings re-scan every 40 minutes and disabled sailings re-scan every 4 hours across jittered 5-minute windows.
Does creating a booking on Ferry VN lock seats on the operator's direct booking engine?
No. Calling POST /api/v1/bookings marks seats inside Ferry VN's internal seat map to avoid collisions among Ferry VN users without locking seats on the carrier's direct engine. Seats belong to passengers only after confirmToIssue reaches status 10, so always refresh boat layouts before booking.
How do OTAs detect weather-related ferry cancellations caused by Beaufort Force 6 winds?
Subscribe to opt-in Standard Webhooks HMAC-SHA256 events (disruption.created, disruption.updated, disruption.closed) and run incremental polling against GET /api/v1/disruptions?updated_since=... (ordered ascending by updated_at). Cancelled trips also move affected bookings to status 16 (Trip Cancelled).
What should our availability cache do if a voyage search returns HTTP 200 with an empty array?
Never purge local route data or mark a corridor permanently closed from a single empty array response. Ferry VN list queries can return HTTP 200 with [] during transient database or authorization interruptions, so trigger anomaly alerts on active routes and retry with backoff.
Can partners check live operator prices before sending a booking creation request?
Yes. Pass live: n (up to 10 voyages) to ferry.prices.forRoute() in @ferryvn/sdk to re-price upcoming departures directly from operator seat maps rather than synced snapshots. Always note that Ferry VN recalculates final fare components at confirmToIssue time.
- Ferry VN B2B Platform (MST 1801802790)
- Đăng ký đại lý vé tàu 15+ hãng
- Demo B2B Dashboard & FOM
- Tài liệu tích hợp API · SDK · MCP
- Hotline B2B 24/24: 0924 299 898 · hi@ferry.vn
- Zalo OA đối tác: Ferry VN Official

Related articles

Unified Vietnam Ferry API
Vietnam Ferry API connects 15+ operators via 86 REST routes, @ferryvn/sdk, CLI, and MCP server with zero-cost uatexpress UAT and opt-in HMAC-SHA256 webhooks.

VIMAWA Manifest & QR Specs
E-ticket QR code and VIMAWA passenger manifest API specs in Vietnam: Circular 10/2024 fields, 120145 validation, boarding PDFs, and Decree 70/2025 invoices.

FerryGateway vs OCTO vs Aggregator
FerryGateway vs OCTO compared for Vietnam and SEA ferries: deck seat maps, VIMAWA manifests, Ro-Ro feeds, and Ferry VN's unified REST aggregator adapter.










