Most airlines do not request ID details to complete the purchase of flight tickets, so you don't need to fill them in at the time of booking. However, it is important to enter the names of passengers exactly as they appear on your ID/passport.
When checking in for the flight on the airline's website or at the airport, you will need to provide all the details of your travel document, including the number and expiration date.