How can I add a barcode to my packing slips?

ShipStation can emit standard 128A barcodes (or any other type) that contain any content you wish. The steps below explain how to add a barcode to your packing slip that represents the order number.

*Please note that you must be on a Silver or above plan to customize packing slip templates.

Head to your Account Settings (the gear icon in the upper right).

Next, select Templates and then Packing Slips from the sidebar on the left.

Find the packing slip you wish to add a barcode to, and select Edit. (If you use the default template, you will need to create a new copy.) A window will then display with an HTML editor where you can create your packing slip.

Click on the Order Footer section, scroll until you reach the bottom, and add the following line of code at the end:

<barcode size="medium">[Order #]</barcode>

Note: if you are a Magento user, you will need to add an additional attribute so that your code looks like this:

<barcode size="medium" barcodetype="Code128A">[Barcode]</barcode>

To center the barcode, use the code below:

<p align="center"><barcode size="medium">[Order #]</barcode></p>

You can also adjust the barcode size by replacing the barcode size text with one of options below:

  • x-small
  • small
  • medium
  • large
  • x-large

(If you're having trouble getting ShipStation to read your order bar-code to look up the order, try changing the HTML for the bar-code to "x-small." Sometimes part of the bar code gets cut off if the print is too large causing an error when reading the code. You can also try changing the type of barcode to "Code128B" or some other type listed below.)

In addition to the barcode size, you can change the type of barcode by changing the value for the "barcodetype" property like you see in the Magento example above. Here is the full list of types available.

  • "Code128Auto"
  • "Code128A"
  • "Code128B"
  • "Code128C"
  • "Code39"
  • "Code39ASCII"
  • "Code93"
  • "CodeCodabar"
  • "EAN13"
  • "EAN8"
  • "EXT2"
  • "EXT5"
  • "I2of5"
  • "Industrial2of5"
  • "ITF14"
  • "ModifiedPlessy"
  • "UCCEAN"
  • "UPCA"
  • "UPCE"
  • "GS1Databar14"
  • "GS1DatabarTruncated"
  • "GS1DatabarLimited"
  • "GS1DatabarExpanded"

You can also change the font by including a barcodefont="value" attribute to the barcode tag and replacing "value" with any of the following:

  • "CCode128_S1"
  • "CCode128_S2"
  • "CCode128_S3"
  • "CCode128_S4"
  • "CCode128_S5"
  • "CCode128_S6"
  • "CCode128_S7"
  • "CCode128B_HS3"

Here's an example of a barcode that is a different size, type, and font than the default barcode (128A).

<barcode size="small" barcodetype="Code128C" barcodefont="CCode128_S2">[Order #]</barcode>

You're able to use the barcodes for other types of information, but please do keep Order Level information (Order #, Shipping Service, Custom Field #1, etc.) outside of the Order Items table and Product Level information (Sku, Item Title, Warehouse Location, etc.) inside of the Order Items table. ​Once you're done customizing your packing slip, you can now choose to print a sample slip. Just make sure you save your changes before closing out the window.

For instructions on how to assign your packing slips to your stores, please visit this article.

Was this article helpful?
1 out of 2 found this helpful
Have more questions? Submit a request