Skip to main content
OTAs & API partners

API partnerships help OTAs and technology partners put tickets from 15+ operators into their own products. You sign a cooperation agreement, get an API key, test on UAT with our engineers, then go to production.

Cooperation agreement
Required for an API key
UAT
Real tickets, agreed upfront
Production
api.ferry.vn

Ferry VN tickets are sold on

  • Trip.com
  • GetYourGuide
  • 12Go
  • Klook
  • Viator
  • Tatinta

How long does OTA integration take, and what are the steps?

It depends on your engineering team and on agreeing a test voyage together. The standard process has 10 steps: preparation, data reading, then transactions.

  • Prepare: confirm your place in the chain, get a key and UAT base URL
  • Read data: search voyages, view seat maps, check prices
  • Transact: create a hold-seat booking, then confirm issuance
  • UAT issues real tickets, so test issuance only on an agreed voyage
  • Testing Phú Quốc Express or Superdong on UAT: tell us first to open them
Getting started: from zero to a first booking

How do API partners get an API key?

Ferry VN issues API keys only to organizations with a signed cooperation agreement; each key belongs to one agency organization. The agency's admin creates it on the Dashboard.

  • Create in Settings, API Keys tab, Add new; not possible through the API
  • Shown once, never expires, deleting it revokes it instantly
  • Send the key in an Authorization: Bearer header
  • No permission scopes: one key has full access, keep it on your server
  • UAT and production keys are separate; to rotate, create new, then delete old
API key authentication
API Key page under Settings on the Dashboard: a guidance card for creating an API key in two steps (click create and name the key, copy it right away because it is shown once), a common-errors section, and a key list with key name, creator, created and edited times, plus an Add new button

How do partners pay, and what prices do they get?

Every order has the operator's base price, the NET price your organization pays its parent, and the end-customer price. Commercial terms are agreed in the cooperation agreement.

  • Percentage surcharges compound across levels: 3 levels × 10% = 33.1%
  • Example: NET 450,000 VND + 20,833 VND surcharge = 470,833 VND selling price
  • Charged at the NET price on issuance confirmation, not at booking creation
  • Spending power = available balance + credit line
  • Top up by bank transfer using your parent's details
Prices and multi-tier markup

What support does Ferry VN give partners until go-live?

Our engineers work alongside partners from UAT access to live operation, reachable on the hotline 0924 299 898 (24/7) or at hi@ferry.vn.

  • UAT base URL given in writing, test voyage agreed together
  • Agree who bears the cost of the first issuance
  • Cancelling a test ticket follows the cancellation process and operator penalty fee
  • Two mandatory safeguards: block duplicate orders, reconcile daily
  • Agree an incident channel and support hours before sales open
Before going live
Go-live

The four gates run in order: a later gate only matters once the earlier one is done.

  1. 01

    Secure connection

    The live key sits in a secret store, the production base URL is confirmed in writing, key rotation has been rehearsed.

  2. 02

    Business flow

    Run one full real order on UAT, know which operators issue through the API, reconcile the NET price formula.

  3. 03

    Error prevention

    Block duplicate sends on your side, check status before retrying after a timeout, deduplicate webhooks.

  4. 04

    Monitoring from day one

    Daily reconciliation, an HTTPS webhook endpoint answering 200 within 2 seconds, alerts on unusual silence, trace IDs kept for at least a month.

Go-live checklist
SDK · CLI · MCP

Three TypeScript packages on one version, open source under Apache-2.0. Types are generated straight from the API spec.

  • @ferryvn/sdk

    TypeScript SDK

    A fetch-based client with zero runtime dependencies; runs on Node.js 20+, Bun, Deno and edge runtimes.

    $ npm i @ferryvn/sdk
    • Booking builder checks prices, free seats and duplicate IDs before sending
    • Typed errors with business codes and an x-request-id for support
    • Retries reads only; the API has no idempotency keys
    GitHub
  • @ferryvn/cli

    The ferry command line

    Work with the API from a terminal: voyages, prices, seat maps, customers, bookings and cancellation requests.

    $ npm i -g @ferryvn/cli
    • Create bookings from an Excel passenger list (CSV UTF-8)
    • Table, JSON or CSV output for accounting
    • Ticket issuance and cancellations always ask for confirmation
    GitHub
  • @ferryvn/mcp

    MCP server for AI agents

    Lets Claude and other AI agents look up routes, voyages, prices, seat maps, customers and bookings.

    $ npx -y @ferryvn/mcp
    • Read-only by default; booking writes are opt-in, confirmed every time
    • No ticket issuance, payments or balance changes
    • Claude Desktop: open the .mcpb file and enter your API key
    GitHub

Version 1.0.0 was released on npm and GitHub on 19 October 2026. Claude Desktop installs the MCP server from the ferry-mcp.mcpb file in the release, with no Node.js needed.

Data freshness

Ferry syncs timetables from operators by how far out the date is. Recommended: cache near-term data for no more than 5 minutes and always re-read the seat map right before the customer confirms.

Date rangeSynced from operator
Today → 7 daysEvery 30 minutes
8 → 14 daysEvery 2 hours
15 → 45 daysEvery 4 hours
46 → 90 days3 times a day
Sold-out voyagesRechecked every 40 minutes

Seat counts reflect the latest sync.

FAQ

Who can become a Ferry VN API partner?

OTAs, booking engines and technology partners that want ferry tickets inside their own products. An API key is only issued to an organization with a signed cooperation agreement. Send your platform details through the form below so Ferry VN can scope the integration.

How do I get UAT access?

Contact Ferry VN through the form below, the hotline 0924 299 898 (24/7) or hi@ferry.vn. Both sides confirm your place in the agency chain, an admin creates the key, and Ferry sends the UAT base URL in writing with a test voyage.

How does the Ferry VN API authenticate requests?

With an API key sent in a request header. Keys never expire and have no read-only scope, so keep them on your server. A missing or wrong key is rejected, and UAT and production use separate key sets.

Is there an SDK or MCP server for partners?

Yes: a TypeScript SDK, the ferry CLI and an MCP server, installed from npm. Other languages call the REST API directly. MCP is read-only by default and never issues tickets or takes payment. See the API · SDK · MCP page.

Do Ferry VN webhooks retry on failure?

No. Webhooks are unsigned and not retried, and your endpoint must answer successfully within 2 seconds or the event is lost. Treat a webhook as a signal: call the API for the authoritative status and reconcile daily before going live.

Is there an idempotency key when creating a booking?

No. Sending a booking request twice creates two bookings and holds the seats twice. After a timeout, list your bookings before resending. Go-live requires your own duplicate-send guard, tested with two consecutive sends that produce one booking.

What are the API rate limits?

Ferry counts per source IP address, not per API key: about 500 calls per second, and only 5 issuance confirmations per 60 seconds. When throttled, retry with growing backoff from 1 to 30 seconds.

What does an API partnership cost?

Commercial terms are agreed between both sides in the cooperation agreement. For ticket money, your organization pays the NET price when issuance is confirmed. UAT issues real tickets, so every test issuance is real spend.

Last updated:

Request access

A Ferry VN engineer will reach out to scope the integration and set up UAT access.