adding purchase endpoint
Merge remote-tracking branch 'origin/purchases'