getpurchasedata api