Banco de Chile interview question

Design a transactional call between an API and a web platform.