Ticket needs to resemble the passenger name - enough that the check in staff don't think you are passing yourself off as someone else. Names missing, muddled, misordered, swapped, typoed or transliterated are daily occurrences for check in staff.
API needs to match the passport but can be sorted at the airport.