GenerateEan13

[POST] .../v1/barcode/generateean13

Generates a new unique barcode in EAN13 format. Use this method to generate a unique EAN13 barcode value before calling Barcode/Add or composing a batch that creates the barcode. The method does not require a request body and returns result.value containing the generated EAN13 value without changing item data by itself. It does not perform an explicit permission check in the controller; generator or storage failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

No request body.

Request Example

{}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result EAN13 Result object.

Response Example

{
  "ok": true,
  "result": {
    "value": 1
  }
}