apidocs / com.srv4pos.server.api.product / ProductService / create

create

fun create(version: Int, productInfo: ProductInfo): IdentifierInfo

Create product on the server.

Parameters

version - expected latest version of seller

productInfo - data to put

Exceptions

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

com.srv4pos.server.api.exceptions.ReferenceNotFoundJsonException - if tax in com.srv4pos.server.api.product.ProductInfo.tax is not found

Return
identifier info