Refactoring GetPurchase API to PutPurchase API.