Skip to main content
Solved

Changing Labels in Easy Post


Hi I have a question I’m trying to change the labels display names in Easy Post but I’m not sure on how that works. I copied someone’s code from over 5 years and but I tried using it and it’s not working on my end can does someone know how to change the display name from Acumatica. 

Shipment shipment = new Shipment() {
    to_address = toAddress,
    from_address = fromAddress,
    parcel = parcel
};

//DO THIS BEFORE CREATING!
shipment.options = new Dictionary<string, object>();
shipment.options.Add("print_custom_1", "this is some sample text");
shipment.options.Add("print_custom_2", "abc");
shipment.options.Add("print_custom_3", "xyz");

shipment.Create();
var lowestRate = shipment.LowestRate(includeServices: new List<string>() { "First" }, includeCarriers: new List<string>() { "USPS" });

shipment.Buy(lowestRate);

shipment.GenerateLabel("pdf");

Best answer by schneur96

On a packages level there are Custom Ref. Fields. If these field are filled the information will show up on carrier label. 

 

 

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img
  • Semi-Pro III
  • 87 replies
  • December 1, 2024

Are you trying to inject your own information to what shows up on the custom ref fields, or add new fields completely?


  • Freshman I
  • 3 replies
  • December 9, 2024

Frank,

I would also like to add the order number and the items on the order to the print_custom fields.  Were you able to get this done?  it seems like it should be a setting instead of a customization.

Thank you!

Bob Cundiff


Forum|alt.badge.img
  • Semi-Pro III
  • 87 replies
  • Answer
  • December 9, 2024

On a packages level there are Custom Ref. Fields. If these field are filled the information will show up on carrier label. 

 

 


  • Freshman I
  • 3 replies
  • December 9, 2024

Interesting. Thank you for the info.  Let me check this.  I think we could create a Business event or customization to auto-populate these fields.   

Bob Cundiff


  • Freshman I
  • 3 replies
  • December 9, 2024

Thanks for the feedback. We are testing this to see.

We simply want the order number or shipment number to be in print_custom1 and the items (concatenated if there is more than one) in print_custom2.  Seems like a lot of trouble to duplicate that info in those two fields, when that information is already being sent to EasyPost.

Feeback?

Bob


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings