Generate webhook response multiple packages .png

https://developer.shiphero.com/webhooks#generate-label-webhook

When the webhook response replies with a single label URL pointing to a .png file, it works normally. When the webhook response replies with multiple label URL pointing to .png files, ShipHero replies with printing error.

Does the multiple package webhook response only accept .pdf label url?

Api response error from https://hook.us1.make.com/wkfm4n59ybwkvqfw5oyxkxvaadvv5mdf: { "code": "200", "packages":[{ "name": "Package 1", "shipping_method": "FEDEX_GROUND", "tracking_number": "794699818524", "cost": "0.00000", "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240131/e8cc95d2d209804464938fa4e570e0adc2.png", "customs_info": "", "shipping_carrier": "FedEx", "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=794699818524" }   ,{ "name": "Package 2", "shipping_method": "FEDEX_GROUND", "tracking_number": "794699818546", "cost": "0.00000", "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240131/e89438f6fad7e64420b4152c630643243e.png", "customs_info": "", "shipping_carrier": "FedEx", "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=794699818546" }   ] }

Edit: it appears that .pdf files in 8.5"x11" also fail to print. Does ShipHero only accept 4"x6" labels?

Hi @sdwelrn!

Thanks for bringing this to our attention.

I will run some similar tests in my sandbox account using my test GLW endpoints.

Will it be a problem if I use your Label URLs? My test will be making calls to the bucket to pull the files.

Kind regards,
TomasFD

@tomasfd

Do you have an update? This issue still hasn’t been resolved. I’ve tried all of the following and I still get the same error.

  • used .png label in 4x6
  • used .pdf labels in 4x6 and 8.5x11
  • removed all non-mandatory fields

I have no idea what’s wrong.

Hello @sdwelrn

ShipHero accepts PDF and PNG files. We don’t check the page size size.

Is the order you are trying to ship split into the same number of packages you are returning in your response?

Best

Solved: problem was caused by unicode U+00a0 space in the webhook response. If you use Make.com integration, be very careful about how you structure your response in the editor.

1 Like