© 2026 Clarivate
POST /api/.../barcodes
Return a generated barcode as an SVG image.
Note: The barcode value is provided in the request body.
| Name | Type | Required | Description |
|---|---|---|---|
| barcodeRequest | DtoBarcodeRequest | Yes | Define this parameter in the request body. |
| 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. |
| width | Integer | No | The barcode width. |
| height | Integer | No | The barcode height. |
| includeBarcode | Boolean | No | Flag to determine should include barcode number. |
| printLibraryName | Boolean | No | Flag to determine should include library name. |
| libraryName | String | No | Library name to display above the barcode. |
{
"formatID": 1,
"barcode": "1234567890",
"width": 380,
"height":120,
"includeBarcode":true,
"printLibraryName": true,
"libraryName": "Test Library"
}
<svg xmlns='http://www.w3.org/2000/svg' width='380' height='120' viewBox='0 0 21 21'>
...
</svg>
| Code | Description |
|---|---|
| 200 | OK. Success |