addBalance

abstract suspend fun addBalance(request: AddBalanceRequest, idempotencyKey: IdempotencyKey? = null): ApiResult<BalanceUpdate>

Add funds to a Customer balance by charging a provided PaymentMethod.

Return

The resulting updated BalanceUpdate or an ApiResult.Error

Parameters

request

The specifics for the funds increase

idempotencyKey

Optional idempotency key. For more details see Idempotency