added rest endpoints for purchasing app