issue #505 added a API implementation for Magento