Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Barcode

Render a barcode

get
/api/{tenantId}/barcode/{type}/{data}

The value is the rest of the path after the type, percent-decoded; it may contain /.

Path parameters
datastringRequired

Value to encode; supplied as the path after the symbology.

typestring · enumRequired

Barcode symbology; matched case-insensitively in the URL.

Default: CODE128Possible values:
tenantIdstringRequired
Query parameters
fgstringOptional

Query fg: bar colour, hex RRGGBB or RGB, # optional. Default 000000.

Default: 000000
bgstringOptional

Query bg: background colour, same format. Default FFFFFF.

Default: FFFFFF
winteger · int32Optional

Query w: width in pixels, at least 1, default 300. A QR code is only approximately this wide.

Default: 300
hinteger · int32Optional

Query h: height in pixels, at least 1, default 50. Ignored for QR codes, which are square.

Default: 50
Responses
200

PNG image.

No content

get/api/{tenantId}/barcode/{type}/{data}
GET /api/{tenantId}/barcode/{type}/{data} HTTP/1.1
Host: api.thewalletcrew.io
Accept: */*

No content

Last updated