Generate Barcode
Generates a barcode with the given codec and data. Returns the barcode if successful, otherwise returns an error.
Permissions Required: Barcode::Generate
Path parameters
-
The codec to use for the barcode
Values are
auspost
,azteccode
,azteccodecompact
,aztecrune
,bc412
,channelcode
,codablockf
,code11
,code128
,code16k
,code2of5
,code32
,code39
,code39ext
,code49
,code93
,code93ext
,codeone
,coop2of5
,daft
,databarexpanded
,databarexpandedcomposite
,databarexpandedstacked
,databarexpandedstackedcomposite
,databarlimited
,databarlimitedcomposite
,databaromni
,databaromnicomposite
,databarstacked
,databarstackedcomposite
,databarstackedomni
,databarstackedomnicomposite
,databartruncated
,databartruncatedcomposite
,datalogic2of5
,datamatrix
,datamatrixrectangular
,datamatrixrectangularextension
,dotcode
,ean13
,ean13composite
,ean14
,ean2
,ean5
,ean8
,ean8composite
,flattermarken
,gs1-128
,gs1-128composite
,gs1-cc
,gs1datamatrix
,gs1datamatrixrectangular
,gs1dldatamatrix
,gs1dlqrcode
,gs1dotcode
,gs1northamericancoupon
,gs1qrcode
,hanxin
,hibcazteccode
,hibccodablockf
,hibccode128
,hibccode39
,hibcdatamatrix
,hibcdatamatrixrectangular
,hibcmicropdf417
,hibcpdf417
,hibcqrcode
,iata2of5
,identcode
,industrial2of5
,interleaved2of5
,isbn
,ismn
,issn
,itf14
,japanpost
,kix
,leitcode
,mailmark
,mands
,matrix2of5
,maxicode
,micropdf417
,microqrcode
,msi
,onecode
,pdf417
,pdf417compact
,pharmacode
,pharmacode2
,planet
,plessey
,posicode
,postnet
,pzn
,qrcode
,rationalizedCodabar
,raw
,rectangularmicroqrcode
,royalmail
,sscc18
,swissqrcode
,symbol
,telepen
,telepennumeric
,ultracode
,upca
,upcacomposite
,upce
, orupcecomposite
.
Query parameters
-
The data to encode in the barcode
curl \
-X GET https://thefemdevs.com/api/barcode/gen/:codec?content=Hello%2C+World%21 \
-H "x-format: png"
@file
{
"code": 6,
"message": "Missing Query Parameter(s)"
}
{
"code": 7,
"message": "Invalid Query Parameter(s)"
}
{
"code": 8,
"message": "Missing Header Parameter(s)"
}
{
"code": 9,
"message": "Invalid Header Parameter(s)"
}
{
"code": 3,
"message": "No API key provided"
}
{
"code": 4,
"message": "Invalid API key provided"
}
{
"code": 1,
"message": "You are not authorized to access this resource"
}
{
"code": 2,
"message": "You are blacklisted from accessing this resource"
}
{
"code": 0,
"message": "Unknown error occurred"
}