You will need to do custom and immigration at the first airport in India. Air India is the only airline which allows custom and immigration at the final destination in India for Amritsar, Ahmedabad, Bengaluru, Chennai, Hyderabad, Kochi, Kolkata, Mumbai, and Thiruvanthapuram with their non-stop flight number 188 from Toronto to Delhi.