Compliance API for mobile and digital transactions