Generate label webhook + Make.com cannot process response with >10 packages

Hi,

I cannot figure out why this error keeps occurring. When sending generate label webhook to Make.com, if the response contains >10 packages ShipHero will always output an error when attempting to print the label. The same webhook works fine if <10 packages are returned.

Is there a hidden limitation on how many labels can be generated by Generate Label Webhook in a single call?

If you need an example, the x-request-id is aa28c3b95da8cbb4fb4272d1c42ee2d7

Webhook response form Make.com:

{
    "code": "200",
    "packages": [
        {
            "name": "Package 1",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182735602",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e8bac92ec01b6243c0bbf04fec5536bf5f.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182735602"
        },
        {
            "name": "Package 2",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182735911",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e8b5a211348dcd439f9b1935b41cdabab8.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182735911"
        },
        {
            "name": "Package 3",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182737373",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e833cca7e664004a4490035f81aff533d5.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182737373"
        },
        {
            "name": "Package 4",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182739207",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e8c881886c300a48f6b10939dd7b749279.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182739207"
        },
        {
            "name": "Package 5",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182740358",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e841e9a418b15245c192df0a46ce95621f.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182740358"
        },
        {
            "name": "Package 6",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182741550",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e817f4dc58f3cc4ffd8fb229774e7266ee.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182741550"
        },
        {
            "name": "Package 7",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182742247",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e81bfd8a5b610f4e0db510035c93242229.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182742247"
        },
        {
            "name": "Package 8",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182744191",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e81135380292d14ccfbe5eeb886e2e281a.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182744191"
        },
        {
            "name": "Package 9",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182744044",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e87ee1eeaaa9b24f119528e7ca7cfd1ba6.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182744044"
        },
        {
            "name": "Package 10",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182747271",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e8c46ba5c1ed1d46b68bd2b65ebae58b6a.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182747271"
        },
        {
            "name": "Package 11",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182749388",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e89bd98b3b896443c385c1eb28d68b7a0a.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182749388"
        },
        {
            "name": "Package 12",
            "shipping_method": "FEDEX_GROUND",
            "tracking_number": "279182749951",
            "cost": "0.00000",
            "label": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240906/e8b6b64967ff6f4c1eb7eee99c64191ae3.png",
            "shipping_carrier": "fedex",
            "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=279182749951"
        }
    ]
}

Hello @sdwelrn!

Can you share the order ID for which you had a rejected/errored response?

@tomasfd The ShipHero order id is T3JkZXI6NTA4MjE2NDUz

@tomasfd Where you able to find any clue as to why the webhook fails?

Hello @sdwelrn,

For that order, we are getting this response from the endpoint {"code": 400, "error": "Order already has shipments in OrderDesk. Contact supervisor. DO NOT print again."}

This was when using the API method JJ_LOWES_MULTI, not the FEDEX one it was ultimately shipped with.

The endpoint returns that error, I cross-checked with the registered methods, and it is effectively the URL registered for that method.

Have a great day!