Barcode format for shipping order #
I have a packing slip that is generated outside of shipstation. I know the shipstation order key and I have the order number as well. I would like to print on the packing slip the barcode that will open the order in shipstation. I can't see to figure out what format the barcode is in and what it contains in the shipstation packing slip. Has anyone figured this out?
-
Official comment
Hello James,
Thanks for your post and for joining our Community.
Our barcodes use Code 128 Auto by default. Also, each order that imports into ShipStation has a unique order id that is generated for it. We use that order id and hex encode it to make for the fastest action in ShipStation.
We do know that some users have used the ShipStation API to pull the OrderID and generate the barcode outside of ShipStation, however this is not something we would support as we cannot guarantee the functionality.
Let me know if this helps you out.
-Erin: Your Friendly ShipStation Community Moderator
Comment actions -
Thanks so much for you answer.
I can get the orderid from the API and generate a 128 barcode. To convert to hex is it a simple bin2hex function call (PHP)?
so orderid = 451354270
bin2hex(451354270) = 343531333534323730Which does not seem to scan in our shipstation. The scan is successful (like in wordpad/notepad) but shipstation just beeps and does not load the order. The order id is a valid shipstation order awaiting shipment. Any help (I understand not officially supported) would be great!
-
Hi Leon,
Welcome to our community, we are so happy to have you here.
I do know that James was able to get this to work however, I am unsure of the details beyond that.
Hopefully knowing that you are on the right track helps you out.
Best,
-Erin: Your Friendly ShipStation Community Moderator
-
Leon,
Yes I did figure it out. Basically you need a ^#^ in front of the shipstation order key (converted to hex) and a ^ at the end of the string.
$barcode = "^#^.dechex($order['ss_orderKey']."^";
Then convert that to a barcode and you are good to go. I am using a JS library to convert to barcode.
I can provide more details if you like.
-
Jan 29, 2020
James Moore, can I set up a call or such to discuss in a little more detail how you accomplished this?
We are looking to create a custom pick on our ERP that's specific for this.
The bar code has been our biggest challenge.
My email is albert.perdomo@eberjey.com, I hope to hear from you soon.
Thanks.
Please sign in to leave a comment.
Comments
8 comments