Not accepting airway bill response

We integrated an api for carrier with shiphero the response is an octet-stream of the pdf but whenever the response is returned shiphero platform does not print it and sends an error. What do you expect in the response?

Snippet of the response is: %PDF-1.4 %��� 2 0 obj << /Filter /FlateDecode /Length 3 0 R >> stream x�+��2T0B���˥�k�������Z�� endstream endobj 3 0 obj 33 endobj 4 0 obj << /Type /Page /Parent 5 0 R /MediaBox [ 0 0 1224 630 ] /Resources << /ProcSet [ /PDF ] /XObject << /Fm1 1 0 R >> >> /Contents 2 0 R >> endobj 6 0 obj << /Type /XObject /Subtype /Image /Width 1224 /Height 630 /BitsPerComponent 8 /ColorSpace /DeviceRGB /SMask 7 0 R /Filter /FlateDecode /Length 8 0 R >> stream

@Theresa Do you know how we can troubleshoot this? This one item is holding up our onboarding phase.

Hello @Ahmed!
Welcome to the ShipHero Public API Community!

Could you please share with me an order ID (it’s the number in the URL when you are inside the order) to trace the logs?

Have a great day!

Hello Tomas,

The order ID is 244223001

Hello @Ahmed!
For the label, we expect the URL to the PDF.
Do you have an example of the whole payload we expect?
King regards,

Can you end us a schema of the payload you expect?

This is what we are currently sending as response:

Hello @Ahmed!

Please refer to the following link to get the payload we expect as a response for a Generate Label Webhook:

Please let me know if you need anything else.

Have a great day!

Thanks @tomasfd. This worked!

1 Like