Airline API Integration Guide.
Everything you need to integrate your Departure Control System (DCS) directly with the Vamos platform — from the first API call through production go-live. Covers every external endpoint, request/response schema, authentication, integration scenarios, consent flows and error handling.
01What you get from this integration
Vamos is an airline compensation platform. You push disrupted flights (cancellations, long delays, denied boarding, baggage issues) into Vamos along with the affected passengers and their bookings. Vamos computes the right compensation from your business rules, issues vouchers backed by virtual cards, and notifies passengers by email, SMS and (when you switch it on) WhatsApp, with your airline's branding.
One-call disruption handling.
A single API call turns a cancelled flight into compensation ready to deliver to every affected passenger.
Rules-driven payouts.
A rules engine computes voucher amounts from your business rules — EU261, APPR, cabin-class tables, custom.
Email + SMS on your brand.
Delivery, opt-in / opt-out, manage-preferences pages — all handled for you, on your domain.
Operations portal.
Your agents handle edge cases, reissue, cancel, reprint and monitor from the Vamos portal.
Integration at a glance
The main integration flow is your DCS calling the Vamos API. Airline agents separately use the Vamos Ops Portal — a web UI, no API work required — to handle edge cases. The portal is independent of the API integration and available as soon as your tenant is provisioned.
Airline agents work the same disruptions through the Ops Portal — no API integration required.
Before you start
- A production API key and a sandbox API key — managed from your admin portal.
- Your consent strategy decided (see Passenger consent and opt-outs).
- Agreement on the voucher categories you want to issue (meal, hotel, transport, baggage, compensation). These drive the business rules in the Vamos portal.
- Every departure airport you fly from set up as an active station in the Vamos portal (Stations). A new flight from an unknown or inactive station is refused with
422(STATION_NOT_FOUND/STATION_INACTIVE). - Business rules configured in the Vamos portal. Every voucher amount, currency, category, expiry, and merchant restriction comes from your rules — there is no per-call amount override. No matching rule means no voucher for that passenger.
02Environments and base URLs
| Environment | Base URL |
|---|---|
| Sandbox | https://api.dev.itsvamos.com/v1/external |
| Production | https://api.itsvamos.com/v1/external |
Every endpoint path in this guide is relative to the base URL. POST /flight-disruption resolves to https://api.itsvamos.com/v1/external/flight-disruption in production.
Conventions
| API version | v1 (in URL path) |
| Content type | application/json |
| Request body limit | 10 MB |
| Date format | ISO 8601 — YYYY-MM-DD for dates, YYYY-MM-DDTHH:MM:SSZ for datetimes |
| UUIDs | RFC 4122 v4, lowercase, hyphenated |
| Timezones | All datetimes are UTC. Departure and arrival times must include a timezone offset. |
| Currency codes | ISO 4217, 3 characters (USD, CAD, EUR, GBP…) |
03Authentication
All external endpoints authenticate with an API key sent in the x-api-key header.
POST /v1/external/flight-disruption HTTP/1.1
Host: api.itsvamos.com
x-api-key: <your-api-key>
Content-Type: application/jsonYour API key is bound to a specific company and tenant. You do not need to send X-Tenant-ID on external endpoints — the tenant and company are inferred from the key. Bearer tokens are not accepted.
Auth errors
| Status | When it happens |
|---|---|
| 401 Unauthorized | Missing header, unknown key, inactive key, expired key. |
| 403 Forbidden | Key is valid but failed integrity check, the resource belongs to a different tenant, or the key's scopes do not include this endpoint (API key scopes). |
| 429 Too Many Requests | The key reached its usage limit (API Key usage limit exceeded). Every key has a usage limit, set on the key in your admin portal: the total number of calls it may make, counted over the key's lifetime (it does not reset). Raise the limit or rotate to a new key before it runs out. There is no per-minute rate limit on these endpoints. |
You manage your own API keys from your admin portal — create, rotate, and revoke them yourself. Keep a new key alongside an existing one for rotation and revoke the old one when your clients have switched over.
Key scope. One API key = one company + one tenant. If you operate multiple tenants, create one key per tenant.
API key scopes
Each key can be limited to what its integration needs. A key with Full access (the default, and every key created before scopes existed) may call every endpoint below. To limit a key, turn Full access off when you create or edit it in your admin portal and tick the scopes it needs. A call outside the key's scopes returns 403 (needs the … scope).
| Scope | Allows |
|---|---|
flights:read | Read a flight disruption (GET /flight-disruption/{flightId}). |
flights:write | Push, update and delete flights, bookings and passengers (6.1–6.3, 6.5, 6.6, 6.9, PATCH in 6.10). |
vouchers:preview | Issue previews — dry runs that issue nothing (6.8). |
vouchers:issue | Issue vouchers (6.4, 6.7, 6.7b) and delete a voucher (6.9b). |
data_requests | GDPR access and erasure requests (6.11). |
04Core concepts
Data model
Each resource in the hierarchy has a strict containment rule. This matters for dedup, cascade deletes and access control.
Data hierarchy rules
- A Booking belongs to exactly one Flight.
- A Passenger belongs to exactly one Booking.
- A Voucher belongs to exactly one Passenger.
- A Card backs exactly one Voucher and inherits the Passenger, Booking, and Flight IDs.
You can repeat the same passenger across multiple disruptions. Each new disruption creates a fresh Passenger record, so consent state and vouchers stay isolated per-disruption.
Idempotency and deduplication
Re-pushing the same flight is safe. Vamos deduplicates by natural key:
| Resource | Dedup key |
|---|---|
| Flight | (flight_number, flight_date, tenant_id) (+ scenario_name for a scenario) |
| Booking | (pnr, flight_id, tenant_id) — PNR compared case-insensitively |
| Passenger | (first_name, last_name, booking_id) — names compared case-insensitively |
If you push a flight that already exists, Vamos refreshes and returns the existing record (no duplicates, no error). Two passengers with the same name on one booking in the same push are kept as two; send date_of_birth so a re-push matches each one to the right record.
Soft-delete cascade
Deletes are soft (Vamos sets deleted_at but keeps the row). Deletes cascade downward:
DELETE /flight-disruption/{flightId}→ flight + all its bookings + all their passengers.DELETE /flights/{flightId}/bookings/{bookingId}→ booking + all its passengers.DELETE /flights/{flightId}/bookings/{bookingId}/passengers/{passengerId}→ single passenger.DELETE /vouchers/{voucherId}→ a voucher issued in error: its card is terminated at the card issuer first (see 6.9b).
Once any voucher has been issued, delete is blocked (returns 400) — a cancelled voucher still counts. To re-push corrected data, delete the vouchers first with DELETE /vouchers/{voucherId}, or push a replacement flight under a different flight number.
Consent model (summary)
Every passenger has a per-channel consent state (subscribed, unsubscribed, awaiting_opt_in, will_receive_consent_request, no_contact) for email, SMS and WhatsApp. Each channel runs in either default mode (implicit consent; unsubscribe one click away) or strict mode (explicit opt-in required before vouchers go out). Each channel is configured independently — for example default-email + strict-SMS to satisfy 10DLC. Consent requests are dispatched the moment the first voucher is issued for a strict-mode passenger; the voucher itself is held until they opt in. Full integration patterns in Scenario 5.5.
Invalid contact handling
Vamos accepts any email and phone string at the API. One malformed email never blocks a disruption ingest.
- Email. Missing
@or unrecognized TLD → flagged in the portal, skipped for email notifications. - Phone. E.164 (
+[country][number]) is strongly preferred. Numbers without a country code are normalised against your airline's country (the national trunk0is stripped). Non-numeric or too-short numbers are flagged and skipped for SMS.
Invalid contacts never cause 400 errors on ingest.
05Integration scenarios
The easiest way to integrate is one endpoint per scenario. Pick the scenario that matches how your DCS actually knows about disruptions and start there.
5.1 Push a full flight disruption Recommended
Use when your DCS knows about a disruption and has the complete passenger manifest — for example, after a cancellation is confirmed or right after check-in closes on a delayed flight.
POST/flight-disruption
One call creates the flight, every booking, and every passenger in a single transaction. No notifications go out at this step — Vamos only records consent assertions. Then to issue compensation:
POST/flight-disruption/{flightId}/issue-vouchers
5.2 Push multiple disruptions in one batch
Use when reconciling end-of-day disruptions, replaying a backlog after a DCS outage, or covering a large IROPS with many cancelled flights. The whole body is schema-validated first: a malformed entry (missing required field, bad enum) rejects the call with 400. After that each disruption is processed independently: if one fails (for example an unknown departure station, or a passenger PNR not in its bookings), the others still succeed.
Primary endpoint: POST/flight-disruptions (plural). Up to 1,000 disruptions per call.
5.3 Incremental flight build-up
Use when your DCS processes PNRs or passengers as they happen — gate agents clearing standbys, kiosk check-ins, rolling manifest updates.
- POST/flights — once per flight.
- POST/flights/{flightId}/bookings — once per PNR.
- POST/flights/{flightId}/bookings/{bookingId}/passengers — once per passenger.
- POST…/passengers/{passengerId}/vouchers — when ready to compensate, one passenger at a time; or POST…/bookings/{bookingId}/vouchers for one combined voucher per rule for the whole booking.
The first three endpoints are idempotent — re-posting the same key returns the existing record (200, "created": false). A new flight needs an active departure station (422 otherwise).
5.4 Issue vouchers (batch & single)
All voucher amounts come from your business rules. Vamos matches each passenger against every active business rule on the flight (disruption type, cabin class, distance, region) and creates one voucher per matching rule — or only for the matching rules you choose (see Choosing rules below). Amount, currency, category, subcategory, expiry, and merchant restrictions are all driven by the rule.
There is no per-call amount or currency override on the external API. If you need to change what passengers receive, update the business rule in the portal. If a passenger has no matching rule, no voucher is created and the per-passenger response explains why.
Per passenger or per booking
Every issuance endpoint works in two modes. Every business rule applies in both — there is nothing to configure on the rule.
| Per passenger (default) | Per booking (issue_mode: "booking") | |
|---|---|---|
| Vouchers | One per passenger per rule | One per booking per rule — meal, hotel, transport stay separate vouchers |
| Card holder | The passenger — adults only | One holder for the whole booking: the adult with the most contact info, unless you name one in holders. Always an adult |
| Children & infants | Never issued — cards cannot be issued to minors. Skipped with a minor_skipped warning (the call still succeeds for everyone else); 422 on the single-passenger endpoint | Covered by the booking's voucher — the amount is multiplied by everyone on the booking. The booking needs at least one adult; a booking with only children/infants is skipped with a no_adult_holder warning |
| Amount | Rule amount | Rule amount × passengers on the booking (infants included). Hotel rules are one room (× 1). |
| Notified | Each passenger | The holder only |
| Endpoints | issue-vouchers with passenger_ids, or …/passengers/{passengerId}/vouchers | issue-vouchers with issue_mode: "booking", or …/bookings/{bookingId}/vouchers |
Booking vouchers carry issue_mode: "booking" and a booking_coverage object listing everyone they cover.
A virtual card can only be issued to an adult. To compensate a child or infant, issue per booking: their share is added to the booking's voucher (rule amount × passengers on the booking, hotel = one room), carded to an adult on the same booking.
Overlap warnings
An overlap is an existing voucher on the same flight, from the same rule (a rule and its time-limited exceptions count as one), that already reaches a passenger the new voucher would cover. Overlaps are warnings only — issuing is never blocked:
- Per booking — any voucher from that rule already reaching someone on the booking, issued per passenger or as an earlier booking voucher.
- Per passenger — booking vouchers from that rule that already cover the passenger. A second per-passenger voucher from the same rule is a duplicate, a separate check.
Each overlap is { "passenger_id", "voucher_id", "issue_mode" } — who is already covered, by which voucher, and how it was issued. Previews return them per rule in overlap_warnings; the issue response returns them in limit_warnings[] with type: "overlap".
Every issue endpoint has a /preview twin (6.8) that takes the same body and returns everything the issue call would do — the applicable rules per passenger or booking with computed amounts, totals, per-category limits, notification counts and would_succeed — without creating vouchers or sending messages.
Choosing rules
By default every applicable rule is issued. To issue only some, list the passengers (or bookings) with the rule_ids you want — for example the ones an agent picked in your own screen:
- Preview the flight with no body: every passenger (or booking) with every applicable rule — ids in
units[].rules[].rule.id. - Choose the passengers / bookings and, for each, the rules to issue.
- Optionally preview the selection (same body) to confirm totals, limits and
would_succeed. - Issue with the same body.
// POST /flight-disruption/{flightId}/issue-vouchers (or …/issue-vouchers/preview)
{
"passengers": [
{ "passenger_id": "…", "rule_ids": ["<meal-rule-id>"] }, // only the meal voucher
{ "passenger_id": "…" } // rule_ids omitted = every applicable rule
],
"send_email_notification": true
}
// Booking mode
{
"issue_mode": "booking",
"bookings": [
{ "booking_id": "…", "rule_ids": ["<hotel-rule-id>"], "holder_passenger_id": "…" }
]
}Every rule_id must apply to that passenger or booking — a rule from another tenant, cabin, airport or meal window, or an unknown id, rejects the whole call before anything is issued (success: false, errors[].invalid_rule_ids). The single-passenger and single-booking endpoints take rule_ids directly in the body.
Notification channels are opt-in on the call:
| Flag | Default | Effect |
|---|---|---|
send_email_notification | false | Send voucher email to subscribed passengers. |
send_sms_notification | false | Send voucher SMS to subscribed passengers. |
send_whatsapp_notification | false | Also send the voucher on WhatsApp, from the Vamos WhatsApp number, when your airline has WhatsApp switched on and an approved template exists. It never replaces the SMS. |
If you set them all to false, vouchers are still created — deliver them through your own channel, print them from the portal, or call the passenger.
5.5 Passenger consent and opt-outs
Each channel (email, SMS, WhatsApp) is switched on or off by your airline and independently configured as default mode (implicit consent, unsubscribe one click away) or strict mode (explicit opt-in required before vouchers go out). On WhatsApp no consent request is ever sent (Meta's rule): in strict mode only passengers who opted in on WhatsApp receive it — assert that with whatsapp_consent: true. Pick one consent pattern per channel:
| Pattern | How it works | When to use |
|---|---|---|
| A · Vamos collects | Do nothing in your DCS. For a strict-mode channel, Vamos sends a one-time consent request at the moment the first voucher is issued. The voucher is held pending until the passenger opts in; once they do, the voucher dispatches automatically. | Simplest; deferred consent friction (no message before there's something to send). |
| B · Embed manage-link | Each passenger response carries a notification_contacts.{email|sms}.manage_url. Put it in your booking-confirmation email. Passengers opt in at purchase, before any disruption. | Clean UX; minimal DCS work; opt-in is in place before IROPS. |
| C · Assert at check-in Recommended | Collect opt-in checkboxes at check-in and pass email_consent: true / sms_consent: true / whatsapp_consent: true on the push. Only true is treated as an opt-in assertion. false or omitted means "no assertion" — Vamos defers to the channel mode. | Highest opt-in rates; strongest CASL/TCPA/10DLC posture. |
Handled by Vamos, no integration work. Passengers can opt out via the unsubscribe link in every email, SMS STOP reply, or branded manage-preferences page. All paths land on unsubscribed; Vamos will not send again until explicit resubscribe.
The email_consent / sms_consent / whatsapp_consent fields are opt-in assertions only. true records an explicit opt-in. false or omitted means "no assertion" (null is rejected with 400): in default mode the passenger is treated as implicitly subscribed; in strict mode they will receive a consent request when the first voucher is issued. To record an opt-out, use the unsubscribe link, an SMS STOP reply, or the manage-preferences page; ingest does not record opt-outs.
5.6 Update or correct a flight
If no vouchers have been issued yet: soft-delete and re-push.
If vouchers have been issued and you only need to add a missing passenger, use the incremental endpoints instead: POST /flights/{flightId}/bookings/{bookingId}/passengers.
To change the flight's own fields (times, status, disruption details) without re-pushing passengers, use PATCH /flight-disruption/{flightId}.
5.7 Cost scenarios: compare before you issue
Before deciding how to compensate a disruption, push the same flight as one or more scenarios, each with a different passenger set or rule selection, and compare what each one would cost with the issue preview. When you have decided, publish that scenario and issue vouchers for it.
- A flight number + date has one published flight and any number of scenarios, each named with
scenario_name. Re-posting the same name updates that scenario; posts withoutscenarioalways update the published flight. - Scenarios are preview only: the issue endpoints answer
409, and no consent request or voucher message is ever sent to a scenario's passengers. They are also left out of reports and statistics. - To publish a scenario, send
PATCH /flight-disruption/{flightId}with{ "scenario": false }. This is refused (409) while another published flight exists for the same number and date: switch that one to a scenario ({ "scenario": true, "scenario_name": "Original" }) or delete it first. - A flight with issued vouchers cannot become a scenario.
POST /flight-disruption
{
"flight": {
"flight_number": "W61234",
"flight_date": "2026-01-15",
"scenario": true,
"scenario_name": "Meals only",
"departure_airport": "WAW",
"arrival_airport": "LTN",
"scheduled_departure": "2026-01-15T10:00:00Z",
"scheduled_arrival": "2026-01-15T12:30:00Z",
"disruption_type": "delay",
"disruption_duration": 240
},
"bookings": [ … ],
"passengers": [ … ]
}06Endpoint reference
All endpoints live under the base URL. All require the x-api-key header. All use application/json.
6.1 Register a flight disruption
POST/flight-disruption
Register a disrupted flight with all affected passengers and bookings in one call. Just 3 required fields at the top level: flight, bookings, passengers.
Request body — top level
See Flight Input below.
≥1 booking. See Booking Input below.
≥1 passenger. Each passenger's pnr must match a booking in this payload.
No consent-request flags on the disruption payload. Consent requests for strict-mode channels are dispatched automatically at voucher-issue time; ingest never sends a notification.
Flight Input fields
6 required fields to identify the flight. Everything else augments the record.
e.g. AA123.
ISO, e.g. 2024-03-15. Local flight date; part of the dedup key.
Default false = the published flight. true = a cost scenario: a simulated copy used to compare voucher costs. Preview only; no vouchers, no passenger messages.
Required when scenario is true. Identifies the scenario next to the published flight; re-posting the same name updates it.
IATA code, e.g. JFK. Must be an active station of your tenant when the flight is created, otherwise 422 STATION_NOT_FOUND / STATION_INACTIVE (details.station_code names it). Re-pushing an existing flight is not re-checked.
IATA code, e.g. LAX.
ISO 8601, e.g. 2024-03-15T14:30:00Z.
Can be after flight_date (overnight flights).
cancellation delay baggage lost_baggage denied_boarding misconnect. Default delay.
Free text shown to agents.
Leave unset if not yet known.
When the disruption was declared.
Delay in minutes. Recommended when disruption_type = delay.
Free-form metadata. Preserved as-is.
e.g. B737.
Total onboard; informational.
Kilometres. Used by EU261 / APPR rules.
Booking Input fields
Booking reference. Used to link passengers to this booking.
economy business first
Single-letter fare code.
Positive number.
ISO 4217.
Passenger Input fields
Just 3 required fields: first name, last name, PNR. Everything else enriches the record.
—
Must match a pnr in the bookings array.
Invalid format is accepted and flagged, not rejected.
E.164 (+[country][number]) strongly preferred. Numbers without a country code are normalised against your airline's country.
adult child infant. Default adult.
Your DCS sequence number; stored and refreshed on re-push (not part of the dedup key).
Opt-in assertion only. true = explicit opt-in recorded (subscribed; no consent-request will fire when vouchers go out). false or omitted (default false) means "no assertion" — Vamos defers to the channel mode. Opt-outs cannot be asserted at ingest; use the unsubscribe link, SMS STOP, or the manage-preferences page.
Additional passenger attributes; all accepted and preserved.
The passenger's communication language for messages and the voucher page: en, fr, es, pt or ar (a region such as es-MX is read as es). Stored only when the passenger has none yet, so a re-sync never undoes a choice made by your staff or the passenger. An unsupported code is ignored, never rejected. A payload-level default can be sent as notification_preferences.language.
Example — request / response
{
"flight": {
"flight_number": "AA123",
"flight_date": "2024-03-15",
"departure_airport": "JFK",
"arrival_airport": "LAX",
"scheduled_departure": "2024-03-15T14:30:00Z",
"scheduled_arrival": "2024-03-15T18:45:00Z",
"disruption_type": "cancellation",
"disruption_reason": "Weather",
"flight_distance": 3975
},
"bookings": [
{ "pnr": "ABC123", "cabin_class": "economy", "currency": "USD", "total_fare": 450.00 }
],
"passengers": [
{
"first_name": "Jane",
"last_name": "Doe",
"pnr": "ABC123",
"email": "jane@example.com",
"phone": "+15141234567",
"passenger_type": "adult",
"email_consent": true,
"sms_consent": true
}
]
}{
"flight": { /* Flight with id */ },
"bookings": [ /* Booking[] */ ],
"passengers": [ /* Passenger[] with notification_contacts */ ],
"status": "registered"
}Error responses
| Status | Cause |
|---|---|
| 400 | Validation error (required field missing, invalid enum, PNR mismatch between passenger and bookings). |
| 401 | Invalid API key. |
| 422 | New flight whose departure_airport is not an active station of your tenant (STATION_NOT_FOUND / STATION_INACTIVE). |
6.2 Batch register disruptions
POST/flight-disruptions
Register up to 1,000 disrupted flights in a single call. The body is schema-validated as a whole (a malformed entry is 400 for the call); after that each entry is processed independently — an entry that fails (unknown station, PNR mismatch…) does not abort the batch.
1–1,000 items. Each item has the same shape as the POST /flight-disruption body.
{
"results": [
{ "index": 0, "flight_number": "AA123", "flight_date": "2024-03-15",
"success": true, "data": { /* ... */ } }
],
"summary": { "total": 3, "successful": 2, "failed": 1 },
"errors": [
{ "index": 2, "flight_number": "AA789", "flight_date": "2024-03-15", "success": false,
"error": "Station XYZ does not exist. Create station XYZ in Stations before adding flights that depart from it.",
"statusCode": 422 }
]
}errors only contains failures. Always check summary.failed before assuming success.
6.3 Create a standalone flight
POST/flights
Create a standalone flight record. Use with the incremental scenario (5.3). Request body is the Flight Input object.
| Status | Cause |
|---|---|
| 201 | New flight: { "success": true, "created": true, "flight": { ... } } |
| 200 | The flight already existed and was refreshed: same body with "created": false. Safe to retry. |
| 400 / 401 | Validation / auth. |
| 422 | New flight from a departure airport that is not an active station (STATION_NOT_FOUND / STATION_INACTIVE). |
6.4 Issue vouchers (batch — per passenger or per booking)
POST/flight-disruption/{flightId}/issue-vouchers
Issue vouchers for a list of passengers on a flight — or, with issue_mode: "booking", one combined voucher per rule for each booking (see 5.4). Amount, currency, category, expiry, and merchant restrictions are always computed from your configured business rules — there is no per-call override. You can issue every applicable rule or only the ones you choose.
Path parameters
ID returned by POST /flight-disruption.
Request body
passenger (default) or booking.
1–1,000 passengers; every applicable rule for each. Not allowed in booking mode.
[{ "passenger_id", "rule_ids"? }], 1–1,000 entries — choose the rules per passenger (1–100 rule_ids; omitted = every applicable rule). Cannot be combined with passenger_ids.
Bookings to issue for (up to 1,000), every applicable rule each. Omit to issue for every booking with passengers on the flight.
Card holder per booking, { "<booking_id>": "<passenger_id>" }. The passenger must be an adult on that booking — a child or infant is 422. Omitted bookings get the adult with the most contact info.
[{ "booking_id", "rule_ids"?, "holder_passenger_id"? }], 1–1,000 entries — choose rules and card holder (an adult) per booking. Cannot be combined with booking_ids or holders.
Default false. In booking mode only the holder is notified.
{
"issue_mode": "booking",
"booking_ids": ["…"], // optional — default: every booking on the flight
"holders": { "<booking_id>": "<passenger_id>" }, // optional
"send_email_notification": true
}{
"success": true,
"results": [
{
"passenger_id": "…",
"vouchers": [ /* Voucher[] */ ],
"cards": [ /* Card[] */ ],
"status": [ /* per-rule outcome */ ]
}
],
"summary": {
"total_passengers": 10,
"successful_passengers": 10,
"bookings_processed": 0, // bookings issued in booking mode
"vouchers_issued": 12,
"cards_issued": 12,
"errors_count": 0,
"notifications": {
"emails_sent": 8, "emails_failed": 0, "emails_skipped_consent": 2,
"emails_skipped_no_contact": 0, "emails_skipped_off": 0, "emails_consent_sent": 0,
"sms_sent": 10, "sms_failed": 0, "sms_skipped_consent": 0,
"sms_skipped_no_contact": 0, "sms_skipped_off": 0, "sms_consent_sent": 0,
"whatsapp_sent": 0, "whatsapp_failed": 0, "whatsapp_skipped": 0, "whatsapp_skipped_no_contact": 0
},
"validation_summary": { /* pre-validation counts, incl. minor_skipped */ }
},
"limit_warnings": [],
"errors": []
}Per-rule status[] entry
Business rule that fired.
Human-readable rule name.
Created voucher, or null if this rule failed.
—
Was the notification dispatched successfully?
A consent request went out instead of the voucher (strict mode, no opt-in yet).
sent failed skipped_unsubscribed skipped_awaiting_opt_in skipped_no_contact skipped_already_sent skipped_off not_requested. skipped_off: your airline switched that channel off. WhatsApp can also be skipped_not_opted_in (strict mode, no WhatsApp opt-in) or skipped_no_template (no approved WhatsApp template yet). Under voucher-triggered consent, hitting a strict-mode contact with no opt-in dispatches the consent request and holds the voucher pending — the response status is skipped_awaiting_opt_in; the held voucher dispatches automatically once the passenger opts in.
Error text if the send failed.
Error text if success = false.
success at the top level is false if any passenger had any error.
Booking mode additions
In booking mode each results[] entry is one booking; passenger_id is the card holder. The entry also carries:
Absent on per-passenger entries.
The booking and its reference.
Who holds the card(s) and receives the notifications.
Everyone on the booking the vouchers cover.
Every voucher (both modes) carries issue_mode and booking_coverage (null for per-passenger vouchers):
{
"pnr": "ET0199",
"pax_count": 2, // passengers covered, infants included
"multiplier": 2, // pax_count, or 1 for hotel rules (one room)
"unit_amount": 20.00, // amount = unit_amount × multiplier
"holder_passenger_id": "…",
"passenger_ids": ["…", "…"],
"passengers": [{ "id": "…", "first_name": "Anca", "last_name": "Vicovan", "passenger_type": "adult" }]
}Children and infants never get a card. In passenger mode they are skipped with { "type": "minor_skipped", "passenger_id", "passenger_type", "message" } in limit_warnings[]; in booking mode a booking with no adult is skipped with { "type": "no_adult_holder", "booking_id", "pnr", "passenger_ids", "message" }. Neither fails the call — everyone else is still issued — and summary.validation_summary.minor_skipped counts the skipped passengers.
limit_warnings[] can contain { "type": "overlap", "passenger_id", "booking_id", "rule_id", "overlaps": [{ "passenger_id", "voucher_id", "issue_mode" }] } entries when someone is already reached by a voucher from the same rule (see overlap warnings) — informational, the vouchers are still issued.
When a selected rule_id does not apply, or an issuing limit would be exceeded, nothing is issued and the body is { "success": false, "phase": "validation", "errors": [...] } — the same errors the preview reports.
6.5 Create a booking
POST/flights/{flightId}/bookings
Create a booking for an existing flight. Request body is exactly the Booking Input fields. Re-posting the same PNR on the same flight returns the existing booking — safe to retry.
| Status | Body |
|---|---|
| 201 / 200 | { "success": true, "created": true, "booking": { ... } } — 201 for a new booking, 200 with "created": false when the PNR already exists on the flight. |
| 400 / 401 / 404 | Validation / auth / flight not found. |
6.6 Add a passenger
POST/flights/{flightId}/bookings/{bookingId}/passengers
Add a passenger to an existing booking. Uses the same Passenger Input fields, minus pnr (inferred from the path). Only first_name and last_name are required.
No consent-request flags on this endpoint either — strict-mode consent requests fire when the first voucher is issued for the passenger.
| Status | Body |
|---|---|
| 201 / 200 | { "success": true, "created": true, "passenger": { ..., "notification_contacts": { ... } } } — 201 for a new passenger, 200 with "created": false when a passenger with that name (case-insensitive) is already on the booking. Safe to retry. |
| 400 / 401 / 403 / 404 | Validation / auth / another tenant's booking / booking not found. |
6.7 Issue vouchers for one passenger
POST/flights/{flightId}/bookings/{bookingId}/passengers/{passengerId}/vouchers
Issue vouchers (one per matching rule) for a single passenger — the passenger comes from the path. No required fields — the body can be omitted entirely. Preview it first at the same path + /preview (6.8).
The passenger must be an adult: a child or infant returns 422 (Cards cannot be issued to children or infants) and nothing is issued — issue for their booking instead (6.7b). A passenger with no applicable rule returns 400 (No applicable business rules found for this passenger).
Issue only these of the passenger's applicable rules (1–100). Omit for every applicable rule. A rule that does not apply rejects the call.
Default false.
{
"success": true,
"results": [
{
"passenger_id": "…",
"vouchers": [ /* Voucher[] */ ],
"cards": [ /* Card[] */ ],
"status": [ /* same per-rule outcome shape as 6.4 */ ]
}
],
"summary": {
"total_passengers": 1, "successful_passengers": 1, "bookings_processed": 0,
"vouchers_issued": 2, "cards_issued": 2, "errors_count": 0,
"notifications": { "emails_sent": 1, "sms_sent": 1 }
}
}6.7b Issue vouchers for one booking
POST/flights/{flightId}/bookings/{bookingId}/vouchers
Booking mode for a single booking: one combined voucher per matching rule for everyone on the booking, on the holder's card (see 5.4). Same response shape as 6.4 in booking mode. Preview it first at the same path + /preview (6.8).
Card holder — must be an adult on this booking (a child or infant is 422). Default: the adult with the most contact info.
Issue only these of the booking's applicable rules (1–100). Omit for every applicable rule. A rule that does not apply rejects the call.
Default false. Only the holder is notified.
| Status | Body |
|---|---|
| 201 | Issuance result (booking mode). |
| 400 | Holder not on the booking, or invalid body. |
| 403 / 404 | Flight of another airline / booking not on this flight. |
| 422 | holder_passenger_id is a child or infant — only an adult can hold the card. |
A booking with only children or infants has no adult to hold the card: nothing is issued and the response carries a no_adult_holder warning.
6.8 Preview issuance (3 endpoints)
Every issue endpoint has a preview twin that takes the same body and returns what the issue call would do right now — computed with the same rule engine, booking multipliers, FX conversion, duplicate checks and issuing limits — without creating vouchers or cards or sending anything.
| Preview | Twin of |
|---|---|
| POST/flight-disruption/{flightId}/issue-vouchers/preview | 6.4 — no required fields: omit the passenger / booking list to preview the whole flight |
| POST…/passengers/{passengerId}/vouchers/preview | 6.7 |
| POST…/bookings/{bookingId}/vouchers/preview | 6.7b |
Send send_email_notification / send_sms_notification / send_whatsapp_notification as you would on the issue call so the notification counts match. All three return the same shape:
{
"issue_mode": "passenger", // or "booking"
"evaluated_at": "2026-10-22T16:08:05Z", // rules and meal windows evaluated at this instant
"station_timezone": "America/Toronto",
"flight": { "id": "…", "flight_number": "AC123", "delay_minutes": 210, … },
"would_succeed": true, // false = the issue call would be rejected (see errors)
"units": [{
"unit_type": "passenger", // "booking" units add pax_count, passengers[],
// suggested_holder_id and holder_passenger_id
"passenger": { "id": "…", "first_name": "Jane", "last_name": "Doe", "email": "…", "phone": "…" },
"booking": { "id": "…", "pnr": "ABC123", "cabin_class": "economy" },
"email_reachable": { "status": "subscribed", "implicit": true },
"sms_reachable": { "status": "will_receive_consent_request" },
"rules": [{
"rule": { "id": "…", "name": "Meal - Delay 3h+", "rule_type": "meal", "category_name": "Meal", … },
"computed": { "amount": 15, "currency": "EUR", "subcategory": "lunch", "expiry_date": "…",
"issuing_amount": 16.65, "issuing_currency": "USD", "converted": true },
// booking mode adds unit_amount × multiplier (hotel = 1 room)
"overlap_warnings": [],
"selected": true,
"outcome": "will_issue" // not_selected · skipped_duplicate · blocked
}],
"totals": { "vouchers": 2, "display": { "EUR": 135 }, "issuing": { "USD": 149.85 } },
"status": "will_issue" // no_applicable_rules · nothing_selected · all_duplicates ·
// issuer_skipped · minor_skipped (child/infant, passenger mode) ·
// no_adult_holder (booking with only children/infants) · error
}],
"vouchers_summary": {
"units": 12, "passengers_covered": 12, "vouchers": 24,
"display_totals": { "EUR": 1620 }, "issuing_totals": { "USD": 1798.20 },
"by_category": [{ "rule_type": "meal", "category_name": "Meal", "count": 12, "display_totals": { "EUR": 180 } }],
"fx": { "converted": true, "buffer_percent": 2, "rate_date": "…", "error_count": 0 },
"duplicates_skipped": 0
},
"notifications": {
"email": { "enabled": true, "messages_total": 20,
"buckets": { "subscribed": { "messages": 20, "passengers": 10 }, "no_contact": { "messages": 0, "passengers": 2 }, … } },
"sms": { "enabled": false, "messages_total": 0, "buckets": { … } }
},
"limits": [{
"category_name": "Meal", "limit_currency": "USD", "allowed": true,
"daily": { "limit": 5000, "current_usage": 1200, "remaining": 3800, "remaining_after": 3600.20, "allowed": true },
"monthly": { "limit": 0, … } // 0 = no limit configured
}],
"errors": [], // exactly what the issue call would return, e.g. limit_exceeded
"warnings": [], // approaching a limit, duplicates skipped, overlaps,
// minor_skipped, no_adult_holder
"recipients": [ … ], "summary": { … }, "strict_mode": { "email": false, "sms": true } // reachability (unchanged)
}true when issuing now would go ahead (validation and limits pass, at least one voucher). Otherwise errors[] holds the same errors the issue call returns.
One per passenger (booking mode: per booking — only the card holder is notified, so reachability is for the holder). Each rule carries its computed voucher, selected and outcome.
Count and totals per display and issuing currency, a breakdown by category, and the FX buffer / rate date.
Messages per channel — one per voucher (a reachable passenger with 3 vouchers is 3 messages). unsubscribed, no_contact and invalid_contact count passengers.
Every category's daily and monthly issuing limit before and after this issue.
The reachability block returned before these fields were added, unchanged: summary counts passengers per channel status (voucher_send, consent_request_send, awaiting_opt_in, unsubscribed, no_contact, invalid_contact); booking mode adds holders: [{ booking_id, holder_passenger_id }].
Per-channel status: subscribed unsubscribed awaiting_opt_in will_receive_consent_request no_contact invalid_contact off. off: your airline switched the channel off. Each unit also carries whatsapp_reachable (not_opted_in in WhatsApp strict mode). implicit: true on subscribed means the channel does not require opt-in and the passenger has not opted out.
will_receive_consent_request means: this channel runs in strict mode and the passenger has not opted in yet, so a consent request will fire when the first voucher is issued. strict_mode is reported per channel because email and SMS can be configured independently.
The preview reflects state at preview time — consent, limits and the meal window can change before you issue, so always check the issue call's own response.
Children and infants get the same answer as on the issue call: a minor_skipped unit (with a warning) in the flight preview, 422 on the single-passenger preview, and a no_adult_holder unit (passenger and holder_passenger_id null) for a booking with no adult.
6.9 Delete a flight disruption
DELETE/flight-disruption/{flightId}
Soft-delete a flight + cascade to all its bookings and passengers. Blocked if any voucher has been issued.
{ "success": true, "deleted": { "flight": 1, "bookings": 3, "passengers": 8 } }There are two more delete endpoints that follow the same shape:
DELETE/flights/{flightId}/bookings/{bookingId} — booking + passengers.
DELETE/flights/{flightId}/bookings/{bookingId}/passengers/{passengerId} — single passenger.
All three return 400 when any voucher exists on the resource being deleted — including a passenger covered by a booking voucher held by someone else on the booking. Delete those vouchers first with 6.9b.
6.9b Delete a voucher
DELETE/vouchers/{voucherId} — scope vouchers:issue.
Withdraws a voucher issued in error, in an order that never leaves money on a card nobody tracks:
- Refused with
409when the voucher's card has any transaction (purchase, decline or refund) —VOUCHER_HAS_TRANSACTIONS— or a hotel was booked with it —VOUCHER_HAS_HOTEL_BOOKING. That history is kept. - Every live card is terminated at the card issuer. If one cannot be, nothing is deleted:
502CARD_TERMINATION_FAILED— try again later. - The voucher, its cards and its voucher notifications are then deleted (soft delete).
Afterwards the passenger, booking and flight can be deleted when no other voucher reaches them. An optional body { "reason": "Issued to the wrong passenger" } is recorded on the terminated card.
{ "success": true, "voucher_id": "4f0c…", "cards_terminated": 1 }6.10 Read or update a flight disruption
GET/flight-disruption/{flightId} — the flight, including scenario and scenario_name.
PATCH/flight-disruption/{flightId} — update the flight's own fields. Send only what changes; flight_number and flight_date cannot change.
false publishes the flight, true makes it a scenario (needs scenario_name).
Unique per flight number + date among scenarios. Cleared when published.
Same types as the Flight Input fields of 6.1.
PATCH /flight-disruption/7b1e…
{ "scenario": false }
200 OK
{ "id": "7b1e…", "flight_number": "W61234", "flight_date": "2026-01-15", "scenario": false, "scenario_name": null, … }409 when: another published flight exists for the same number and date; a scenario with that name already exists; or vouchers were issued and the flight would become a scenario. 400 when scenario is true without a name. 422 (STATION_NOT_FOUND / STATION_INACTIVE) when a new departure_airport is not an active station. 404 for a flight of another tenant.
6.11 GDPR data requests
Answer a passenger's data access or erasure request from your own systems — scope data_requests. Only passengers of the key's tenant are reachable. Find the passenger's rows first, then download or erase them.
POST/data-requests/search — find a passenger's rows.
Send at least one of pnr, last_name, email, phone (plus first_name to narrow). Returns results — up to 100, newest first — each with passenger_id, name, email, phone, pnr and the flight.
POST /data-requests/search
{ "pnr": "ABC123", "last_name": "Dupont" }POST/data-requests — download or erase their data. Returns 201 with request (and data_export for access).
access returns everything Vamos holds about the passengers at once in data_export (grouped per trip, card numbers masked, never stored). erasure runs at once, or is scheduled (see below).
From the search. 404 when one is not in this tenant or is already erased.
Your DSAR ticket number, kept on the request.
Erase now even if the flight is under 30 days old. Needs reason.
Required with force_recent_flight.
POST /data-requests
{ "type": "erasure", "passenger_ids": ["9c2d…"], "external_reference": "DSAR-1234" }Erasure anonymises in place:
- Names, contacts, birth date, frequent-flyer number, special requests and message contents are removed; vouchers, cards and transactions stay for accounting, without the name.
- The passenger's own unused vouchers are cancelled and their cards terminated at the issuer.
- It is scheduled (status
scheduled, withexecute_afteranddeferred_by) while the flight is under 30 days old (recent_flight), a hotel stay has not ended (upcoming_hotel), or a booking voucher the passenger holds still covers other travellers (group_voucher).
GET/data-requests/{requestId} — status, and after an erasure the counts per table and the third-party notice (card, cardholder and hotel ids only).
GET/data-requests/{requestId}/export — download the data of the request's passengers again.
07Error handling
Error response shape
{ "code": 404, "message": "Flight not found" }Many errors also carry a stable error_code and, where useful, details. Validation errors are 400 with a per-field breakdown:
{
"code": 400,
"message": "\"scheduled_departure\" is required",
"error_code": "VALIDATION_FAILED",
"details": [
{ "field": "flight.scheduled_departure", "type": "any.required", "message": "\"scheduled_departure\" is required" }
]
}{
"code": 422,
"message": "Station XYZ does not exist. Create station XYZ in Stations before adding flights that depart from it.",
"error_code": "STATION_NOT_FOUND",
"details": { "station_code": "XYZ" }
}Status codes
| Code | When to expect it |
|---|---|
| 200 OK | Read, delete, or batch endpoint returning a mixed-result summary. |
| 201 Created | Resource created (flight, booking, passenger, voucher). |
| 400 | Validation error, malformed JSON, missing required field, unknown enum, PNR mismatch, more than 1,000 passengers / bookings or 100 rule_ids in one issue or preview call, delete blocked because vouchers exist. |
| 401 | Missing / invalid / expired API key. |
| 403 | API key failed integrity check, resource belongs to a different tenant, or the key lacks the scope for this endpoint. |
| 404 | Flight, booking, or passenger does not exist (under your tenant). |
| 409 | Issuing on a scenario; a scenario publish / name conflict (6.10); a voucher that cannot be deleted (VOUCHER_HAS_TRANSACTIONS, VOUCHER_HAS_HOTEL_BOOKING). |
| 422 | Departure airport not an active station (STATION_NOT_FOUND / STATION_INACTIVE); a child or infant as card holder or on the single-passenger issue / preview. |
| 429 | The API key reached its usage limit — see Authentication. |
| 500 | Unexpected server error. Safe to retry with exponential backoff. |
| 502 | CARD_TERMINATION_FAILED on voucher delete — nothing was deleted; try again later. |
Partial-batch success
Two endpoints intentionally return 200 OK even when some items failed. Always inspect the body before declaring the call successful:
POST /flight-disruptions— checksummary.failedanderrors[].POST /flight-disruption/{flightId}/issue-vouchers— checksummary.errors_countanderrors[]; also check the per-rulestatus[]inside eachresults[].
Idempotency and safe retries
- All ingest endpoints are deduped by natural key. Retrying after a timeout won't create duplicates.
POST /flight-disruptionreturns the existing flight if one is already stored under the same(flight_number, flight_date)(andscenario_name, for a scenario).- Issuing on a scenario returns
409("This flight is a scenario: preview only"): publish it first. - On
5xx, retry with exponential backoff (suggested: 1s, 3s, 10s, 30s). - On
429the key's usage limit is used up — retrying does not help; raise the limit or switch keys. - Never retry on
400,401,403,404,409,422— fix the request (or your stations) first.
08Rate limits
There are no per-minute rate limits on the airline integration endpoints today; each key only has its total usage limit. The platform is sized to absorb bursty IROPS traffic — if you have 12,000 affected passengers across 40 flights, push them. The guidelines below are best-practice client behaviour that keeps you well under infrastructure-level guardrails.
≤ 50 in-flight
Cap simultaneous open requests per API key. Leaves headroom under the cluster ceiling for everyone.
Up to 1,000 / call
For > 1 disruption, use POST /flight-disruptions instead of looping single calls. Issue and preview calls take up to 1,000 passengers or bookings.
600 seconds
Hard ceiling per request. Anything slower fails with a 5xx; split large issue calls into smaller batches.
Exponential
On 503: 1 s, 2 s, 4 s, 8 s, capped at 60 s. Honour Retry-After when present.
The integration runs on an autoscaling, serverless platform. Under extreme burst, before new capacity scales up, the response is 503 Service Unavailable (not 429) — retry with the backoff strategy above and your request succeeds once capacity catches up.
When per-key rate limits are introduced they will be communicated at least 30 days in advance to your integration contacts and surfaced via standard headers on every response:
RateLimit-Limit,RateLimit-Remaining,RateLimit-Reseton every successful call.429 Too Many Requestswith aRetry-After(seconds) header when rejected.
Code your client to honour both today so the rollout is a no-op for you.
09Testing and go-live checklist
9.1 Sandbox setup
- Request a sandbox API key from Vamos. One key per tenant.
- Point your integration at
https://api.dev.itsvamos.com/v1/external. - Verify outbound connectivity from your DCS to that host over TLS 1.2+.
- Decide your consent strategy and configure it in your tenant settings via the Vamos portal (or request Vamos support to flip strict mode).
9.2 Test scenarios
Run each of these at least once in sandbox before going live.
POST /flight-disruption with 5 passengers across 2 bookings. Confirm 200, status: "registered" and that each passenger ID is returned.
Re-POST the identical payload. Confirm you receive the same IDs — no duplicates.
POST /flight-disruptions with 3 flights where one departs from an airport that is not one of your stations. Confirm 200, summary.successful = 2, errors[] points at the bad index with statusCode: 422. (A schema error, such as a missing scheduled_departure, rejects the whole call with 400.)
Create a flight, add 2 bookings, add 3 passengers, issue one voucher. Confirm the full object graph.
Preview the flight with no body. Confirm every passenger appears with the rules and amounts you expect, reachability matches the consent flags you set at push time, and would_succeed = true.
Configure at least one business rule matching the test flight. Issue with notifications disabled. Confirm vouchers + cards created, business_rule_id populated, amount matches the rule, emails_sent = 0.
Preview with passengers: [{ passenger_id, rule_ids: [one rule] }], then issue the same body. Confirm the preview's vouchers_summary matches what was issued and only the chosen rule became a voucher. Then send a rule_id that does not apply and confirm success = false with invalid_rule_ids and nothing issued.
Against a flight / passenger combination with no matching business rule. Confirm success = false and the per-passenger error explains there are no applicable rules.
Push a passenger with email: "not-an-email" and phone: "12345". Confirm 200, confirm the passenger appears flagged "invalid" in the portal.
With email channel in default mode, push a passenger with email_consent: true and issue a voucher with email enabled. Confirm status[].email_status = "sent". Then push a second passenger with email_consent omitted, opt them out via the unsubscribe link, issue a voucher, and confirm status[].email_status = "skipped_unsubscribed". (email_consent: false is not an opt-out — opt-outs only land via the manage-preferences page or SMS STOP.)
With SMS channel in strict mode, push a passenger with no consent assertion. Issue a voucher with SMS enabled and confirm status[].sms_status = "skipped_awaiting_opt_in" — Vamos sent a consent request and held the voucher SMS pending. Click the opt-in link as the passenger; confirm the held SMS dispatches automatically.
DELETE /flight-disruption/{flightId} on a flight with no vouchers. Confirm 200 + cascade counts.
Same, but after issuing a voucher. Confirm 400 with message listing the voucher count.
DELETE /vouchers/{voucherId} on the voucher from E2 (no purchase made). Confirm 200 with cards_terminated, then repeat E2 and confirm the flight now deletes.
9.3 Pre-production checklist
- API key rotated from sandbox → production key.
- Base URL switched to
https://api.itsvamos.com/v1/external. - Channels switched on and per-channel consent mode verified for email, SMS and WhatsApp (default vs strict can differ between channels).
- Every departure airport set up as an active station.
- Business rules populated in the Vamos portal (categories, amounts, thresholds).
- Invalid email / phone handling verified in the agent portal.
- Monitoring + alerting on
4xxand5xxrates from Vamos. - Retry / backoff policy implemented for
5xx; production key's usage limit sized for your volume. - DCS deduplication: no re-push of same
(flight_number, flight_date)within a short window unless data changed. - Runbook written for operations agents.
- Sign-off from your privacy / compliance team on the chosen consent pattern.
10Support
support@itsvamos.com
Sandbox credentials, rate-limit increases, consent-mode flips.
Vamos status page
URL in your onboarding package. API incidents and maintenance windows.
api.itsvamos.com/v1/external/docs
Interactive OpenAPI reference — always in sync with production.
Pre-built collection
Environment variables pre-wired for sandbox + production.
When reporting an issue, include the API key's name (never the full key), the endpoint and HTTP status, a timestamp in UTC, and what you expected to happen.