Before ticketing , A travel agent aor airline ticketing official is supposed to ensure the passneger has all valid travel documents.

Incase of a deportation the airline will be penalised by the destination government authorities and they debit it to the agent.

Most countries demand a passport with minimum 6 months validity.

In this case , If the fare you purchased has a penalty for cancellation or no show.. you will be penalised despite of the reason for cancellation or noshow.

cheers