Software firm Ebix Inc said on Monday it has offered to buy Indian travel services company Yatra Online Inc for $336 million in a cash-and-stock deal.