Feature/315 single sale purchases

@mturalenka please merge, once the PHP client is updated and the /buy API call is working