apidocs / com.srv4pos.server.api.sale / SaleService / put

put

fun put(sellerVersion: Int, saleInfo: SaleInfo): Unit

Creates or modifies sale on the server.

Parameters

sellerVersion - expected latest version of seller

saleInfo - data to put

Exceptions

com.srv4pos.server.api.exceptions.VersionConflictJsonException - if version mismatch

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

Return
generated unique identifier