Both Sendgrid and MailChimp have good API with many common features, but if you want to use only transactional email plans using Sendgrid are more affordable than MailChimp since Mandrill is an add-on and you need to pay for marketing as well. They also have good webhooks supporting use cases for real analytics over events