Mastercard interview question

what is the difference between a microservice and an API