# Live Availability for Ferries

Source: https://ferry.vn/en/live-availability-inventory-sync-island-ferries/
Locale: en
Category: Ferry API & Tech
Published: 2026-11-25
Updated: 2026-11-25
Author: Le Quoc Khoi (CEO, Ferry VN JSC) — https://ferry.vn/en/author/le-quoc-khoi/
Summary: Ferry availability sync API architecture for OTAs: 30m-4h sync tiers, 40m sold-out rescans, seat-map rechecks, and Force 6 monsoon disruption polling.

---

> **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/bookings` marks 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 limit `UnavailableSeats` (`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 by `updated_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](/en/vietnam-ferry-api-unified-multi-operator-integration/).

## 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.

![Three-layer snapshot caching, pre-checkout live seat verification, and Beaufort 6 monsoon disruption sync pipeline](https://cdn.ferry.vn/media/31/diagram-en-ferrygateway-octo-sync-and-tco.webp)

### 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](/en/api-partners/) and explore full client helpers on the [Ferry VN API and SDK platform hub](/en/platform/api-sdk/).

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:

```ts
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](https://vbpl.vn), 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](/en/phu-quoc-con-dao-ferry-inventory-catamaran-vs-roro/).

## 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](https://www.standardwebhooks.com) HMAC-SHA256 events (`disruption.created`, `disruption.updated`, `disruption.closed`) with incremental polling. Unlike standard list routes, `/api/v1/disruptions` sorts ascending by `updated_at`:

```ts
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](/en/ferry-api-reliability-reconciliation-patterns/) and [Ferry VN SDK quickstart](/en/ferry-vn-sdk-rest-api-developer-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](/en/maritime-passenger-manifest-e-ticket-qr-vietnam/).

Inspect schemas on the [interactive REST API reference](https://api.ferry.vn/docs) and implementation examples in the [availability and disruption sync docs](https://docs.ferry.vn/en/developers/), or review B2B plans on [Ferry VN Pricing](/en/pricing/) (`hi@ferry.vn` · `+84 924 299 898`).

## Frequently Asked Questions

| Question | Answer |
| --- | --- |
| 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. |
