getAccountBalance

suspend fun getAccountBalance(productType: String, apiVersion: String, productSubscriptionKey: String, environment: String): Response<AccountBalance>

Retrieves the account balance for a specified product type. This only works with the ProductType.COLLECTION. It seems to break with the other API product type.

Return

A Response containing the io.rekast.sdk.model.AccountBalance.

Parameters

productType

The type of product for which to retrieve the account balance.

apiVersion

The version of the API to use.

productSubscriptionKey

The subscription key for the product.

environment

The API environment (e.g., production, sandbox).