Barcode

Generate Barcode (SVG)

POST /api/.../barcodes

Return a generated barcode as an SVG image.

Note: The barcode value is provided in the request body.


Request Information

Parameters
Name Type Required Description
barcodeRequest DtoBarcodeRequest Yes Define this parameter in the request body.
DtoBarcodeRequest
Property Type Nullable Description
formatID Integer No Barcode print format ID (configured in the system). Supported available formats: Code 39 and Codabar
barcode String No The barcode value to encode.
Example Body
application/json, text/json
{
  "formatID": 1,
  "barcode": "1234567890"
}

Response Information

Example
image/svg+xml
<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 21 21'>
  ...
</svg>

HTTP Response Codes

Code Description
200 OK. Success