You will have to make an invitation for a foreigner in the following cases: obtaining a visa, crossing the border, confirming the purpose of stay. The border services of Ukraine have the right to request a foreign person’s documents confirming the purpose of the trip. Therefore, it is worthwhile to prepare an invitation in advance.