Handle frequent flyer and loyalty program numbers correctly in booking APIs

domain: travel-general · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Collect the loyalty program code (airline IATA code or program identifier, e.g. 'BA' for British Airways Executive Club) and the member number as separate fields — do not concatenate them.
  2. Pass loyalty numbers in the traveler or passenger object of the booking API — in Amadeus this is travelers[].loyaltyPrograms[], in Duffel it is passengers[].loyalty_programme_accounts[]; check API docs for the exact field names and validation rules.
  3. Validate the member number format client-side if the program publishes a format (e.g. numeric-only, specific length) before submitting; an invalid format will cause a booking API validation error that is hard to debug post-submission.
  4. Loyalty accrual on codeshare flights follows the operating carrier's program rules, not the marketing carrier's — a passenger flying on a BA-operated flight booked under an IB codeshare accrues Avios under BA's partner earn rates; document this for users.
  5. Some airlines allow loyalty number to be added post-booking via a 'manage booking' flow rather than requiring it at booking time — if the booking API rejects an invalid loyalty number, offer to proceed without it and add it later.
  6. Never store loyalty program passwords or security questions — only the program code and member number are needed for mileage accrual; treat member numbers as PII and store encrypted.

Known gotchas

Related routes

Capture and reconcile hotel loyalty program data in a corporate travel booking pipeline
developer.concur.com · 6 steps · unrated
Attach a passenger's frequent flyer / loyalty programme account number to a Duffel flight offer or order.
duffel.com · 6 steps · unrated
Handle multi-currency pricing and point-of-sale configuration correctly in airline booking APIs
iata.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans