How is IPO allotment done?

If under-subscribed, all valid applicants get full allotment.

If over-subscribed, retail investors are allotted by lottery, while HNIs/QIBs get shares on a pro-rata basis.

Shares are reserved category-wise; any unsubscribed portion is reallocated to other categories.