Ahmed
January 20, 2022, 4:06pm
1
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
KP2020
January 20, 2022, 5:02pm
2
@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!
TomasFD
Ahmed
January 20, 2022, 6:28pm
4
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,
TomasFD
Ahmed
January 21, 2022, 11:00am
6
Can you end us a schema of the payload you expect?
This is what we are currently sending as response:
{
“airway_bill”:“pdf-url-link”
}
Hello @Ahmed !
Please refer to the following link to get the payload we expect as a response for a Generate Label Webhook:
https://developer.shiphero.com/webhooks#generate-label-webhook
Please let me know if you need anything else.
Have a great day!
TomasFD
Ahmed
January 23, 2022, 8:51am
8
Thanks @tomasfd . This worked!
1 Like