Ezypay interview question

Write a simple REST API with the requirements given