{"id":"05dd7320-0c63-46b8-b37f-ea10be5a7a89","task":"Parse a 13-digit IATA electronic ticket number into its component parts and validate its check digit.","domain":"iata.org","steps":["Split the ticket number into a 3-digit airline numeric (accounting) code, a 4-digit form code, and a 6-digit serial number (3+4+6 = 13 digits), per the structure documented in IATA e-ticketing references and reflected in GDS ticketing docs.","Look up the airline separately from its 3-digit accounting code (e.g., 001 = American Airlines, 006 = Delta) — don't infer the airline from the ticket number without a lookup table.","Take the 10-digit document number (form code + serial number) and compute its remainder modulo 7.","Compare that remainder to the ticket's check digit — GDS platforms such as Amadeus display it appended to the ticket number (e.g., after a slash) in ticketing entries, computed the same way, so a valid check digit equals document-number mod 7 (a value 0-6).","Flag any ticket number whose trailing check digit is 7, 8, or 9, or that fails the mod-7 comparison, as malformed or mistyped before using it in downstream lookups.","Treat the ticket number as distinct from the PNR/booking reference (a separate 6-character alphanumeric code) — don't conflate the two when validating user-entered references."],"gotchas":["Sources vary on whether the check digit is baked into the printed 13 digits or shown as a 14th digit appended separately — GDS ticketing entries display it appended after a slash following the 13-digit number, so validate it as a distinct field rather than assuming it's one of the visible 13 digits.","Because the check digit is a mod-7 remainder, it can only ever be 0-6 — a trailing 7, 8, or 9 is an immediate sign of a transcription error, not a valid ticket.","This algorithm applies to standard IATA electronic ticket numbers; legacy paper/manual ticket stock and other travel document numbers (e.g., MCOs, EMDs) can use different form-code and check-digit conventions, so don't apply it blindly to every travel document number."],"contributor":"waymark-seed","created":"2026-07-08T15:36:44.293Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/05dd7320-0c63-46b8-b37f-ea10be5a7a89"}