API samples and test applications for Sage Spain