apidocs / com.srv4pos.server.api.registration / RegistrationService / setBalance

setBalance

fun setBalance(version: Int, cashRegisterName: String, changeBalanceInfo: ChangeBalanceInfo): Unit

Set balance of registration.

Parameters

version - expected latest version of seller

cashRegisterName - described in swedish regulations as "cash register designation"

changeBalanceInfo - registration balance and action

Exceptions

ReferenceNotFoundJsonException - if cashRegisterName is not found

com.srv4pos.server.api.exceptions.UnprocessableEntityJsonException - see: UnprocessableEntityErrorType.DAY_IS_CLOSED, UnprocessableEntityErrorType.DAY_IS_NOT_CLOSED, UnprocessableEntityErrorType.REPORT_IS_NOT_PRINTED