getPurchases

abstract suspend fun getPurchases(offset: Int, limit: Int): Result<SdkSuccessAnswer.GetPurchases>

Returns a page of purchases from the terminal history, ordered from newest to oldest.

Return

Result.Success with SdkSuccessAnswer.GetPurchases.purchases when the call completes, or Result.Error for operational failures (invalid page, service unavailable).

Parameters

offset

zero-based index of the first purchase in the page.

limit

maximum number of purchases in the page, from 1 to 100.