RACO Barcode API v1.2 Features
- Support for 5 1D Barcode Symbologies including Code 128,
Code 39, Interleaved 2 of 5, UPC-A and UPC-E
- Support for 5 2D Barcode Symbologies including Aztec Code,
DataMatrix, PDF417, QR Code and Semacode
- Several image formats supported including JPG, GIF, PNG and
- User defined image resolution (DPI)
- User defined width, height and margin sizes
- Blazing fast barcode generation performance
- Usage reports
- Dedicated support team
- SSL encryption option
- Service hosted in state-of-art datacenters with infinite
Have additional questions or feature
set requests? Contact Us Today!
RACO Barcode API Getting Started Guide
The Barcode API is a simple web service that accepts HTTP GET
requests and returns barcode images that conform the parameters in
the requests. The image type returned is determined by the image
format parameter that you specify.
Your Client ID
When you registered, you were assigned a client ID. The service
uses your client ID to identify you and to track your requests. Do
not share your client ID with anyone else!
Getting Started With a Simple Request
For our first request, let's generate a Code 39 barcode. You will
to create your barcodes. Now we need to set our parameters.
- Provide your client ID: CID=<your-client-id>
- Specify the symbology: &S=Code39
- Specify the barcode unit: &BCU=Inch
- Specify the bar width: &BW=0.020
- Specify the bar height: &BH=0.5
- Specify the quiet zone width: &QZ=0.1
- Specify the top margin: &TM=0.1
- Specify the bottom margin: &BM=0.1
- Specify that you want to display the data under the barcode:
- Specify that you want to display the start and stop symbols:
- Specify the data to encode: &C=RACO%20INDUSTRIES (notice
that the value to encode is URL encoded, you must URL encode all
values passed to the service)
- Specify the image format you wish to receive (in this case,
a GIF): &IFMT=GIF
- Specify the image resolution (DPI): &DPI=72
Once you add all of the parameters to the base URL, your request
will look like this:
The image returned will look like this:
Each symbology supports different parameters. Each symbology page
has a list of supported parameters for that particular symbology.
Please register for a trial account to receive access to detailed
Supported Image Format Codes (IFMT):
When you receive an HTTP response from the service, you can check
an HTTP header called BarcodeApiResponseCode to determine whether or
not your request was processed successfully. Code 200 indicates a
valid response, and the image data will be included in the response.
There are cases when you may receive an error code from the service.
These error codes are listed below along with their meanings.
||Indicates a successful request
|One or more request parameters
||No client ID was specified, or an
invalid client ID was specified
|The client ID specified has exceeded the maximum number
of requests per day
||The client ID specified has
exceeded the trial period
Keeping Track of Your Requests
During your trial period, you will be limited to a low number of
requests per day for testing purposes. Once your account is approved
by an administrator, you will be allowed a certain number of
requests per day (depending on your contract). You can check your
customer summary page to see how many requests you have performed
each day. Only those requests that generated a valid barcode will be
counted against your total.
Back to RACO Barcode API main