Barcode format for shipping order #

Comments

8 comments

  • Official comment
    Avatar
    Erin E.

     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 Permalink
  • Avatar
    James Moore

    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) = 343531333534323730

    Which 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!

    0
    Comment actions Permalink
  • Avatar
    Erin E.

    Hey James, 

    Apologies that I did not see this sooner. Were you able to figure this out and get your barcodes to work or are you still having trouble with the encoding? 

    Please let us know either way. 

     

    -Erin: Your Friendly ShipStation Community Moderator

    0
    Comment actions Permalink
  • Avatar
    Leon Rbibo

    I am trying to the exact same thing, please let me know if you were successful!

    0
    Comment actions Permalink
  • Avatar
    Leon Rbibo

    Erin, can you please elaborate if the bin2hex  function that James used would be correct? I am trying to do the same thing

    0
    Comment actions Permalink
  • Avatar
    Erin E.

    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 

     

    0
    Comment actions Permalink
  • Avatar
    James Moore

    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.

     

     

    0
    Comment actions Permalink
  • Avatar
    Albert Perdomo

    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.

     

     

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.