Shipments query by order id returning empty shipments

Hi Support,

When executing the following query, 1 valid result with line items and shipping labels is returned but 20 shipments with 0 line items and 0 shipments are also returned. I noticed these 20 shipments also have ‘shipped_off_shiphero’ equal to true and the valid one does not. Can you please let me know if I’m doing something wrong or why 21 shipments are being returned?

HTTP REQUEST:
query {
shipments(order_id: “267539789”) {
request_id
complexity
data (first: 100) {
pageInfo {
hasNextPage,
hasPreviousPage,
startCursor,
endCursor
}
edges {
cursor
node {
id
legacy_id
order_id
user_id
warehouse_id
pending_shipment_id
address {
name
address1
address2
city
state
country
zip
phone
}
shipped_off_shiphero
dropshipment
created_date
line_items(first: 3) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
line_item_id
quantity
}
}
}
shipping_labels {
id
legacy_id
account_id
tracking_number
carrier
shipping_name
shipping_method
cost
profile
packing_slip
warehouse
insurance_amount
carrier_account_id
source
created_date
}
}
}
}
}
}

HTTP RESPONSE (some info [redacted]):
{

"data": {

    "shipments": {

        "request_id": "627eb6ef86f7ac91d5f9a94f",

        "complexity": 301,

        "data": {

            "pageInfo": {

                "hasNextPage": false,

                "hasPreviousPage": false,

                "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",

                "endCursor": "YXJyYXljb25uZWN0aW9uOjIw"

            },

            "edges": [

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjA=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4ODQ4NzAz",

                        "legacy_id": 258848703,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": "V2FyZWhvdXNlOjgyMjUx",

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": false,

                        "dropshipment": false,

                        "created_date": "2022-05-05T17:19:25",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",

                                "endCursor": "YXJyYXljb25uZWN0aW9uOjA="

                            },

                            "edges": [

                                {

                                    "cursor": "YXJyYXljb25uZWN0aW9uOjA=",

                                    "node": {

                                        "line_item_id": "TGluZUl0ZW06Njk3MzA3NzQ3",

                                        "quantity": 1

                                    }

                                }

                            ]

                        },

                        "shipping_labels": [

                            {

                                "id": "U2hpcHBpbmdMYWJlbDoxNzA3OTcyNTg=",

                                "legacy_id": 170797258,

                                "account_id": "[redacted]Njc5Ng==",

                                "tracking_number": "[redacted]88579",

                                "carrier": "UPS",

                                "shipping_name": "Shipping - Firearm",

                                "shipping_method": "UPS Ground",

                                "cost": "9.17",

                                "profile": "default",

                                "packing_slip": "",

                                "warehouse": "Primary",

                                "insurance_amount": "0.00",

                                "carrier_account_id": "[redacted]",

                                "source": "shipping web",

                                "created_date": "2022-05-05T17:19:25"

                            }

                        ]

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjE=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4ODYwOTE0",

                        "legacy_id": 258860914,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T17:51:07",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjI=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4ODcwODE4",

                        "legacy_id": 258870818,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T18:18:32",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjM=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4ODc1NzA0",

                        "legacy_id": 258875704,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T18:31:07",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjQ=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4ODgzNTU1",

                        "legacy_id": 258883555,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T18:51:13",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjU=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4ODk4ODA5",

                        "legacy_id": 258898809,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T19:36:14",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjY=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTA0NDA0",

                        "legacy_id": 258904404,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T19:51:16",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjc=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTEyMzY2",

                        "legacy_id": 258912366,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T20:16:06",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjg=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTE3OTg3",

                        "legacy_id": 258917987,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T20:33:26",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjk=",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTIzNjI3",

                        "legacy_id": 258923627,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T20:51:09",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjEw",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTM0MDM1",

                        "legacy_id": 258934035,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T21:27:28",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjEx",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTM3OTQ3",

                        "legacy_id": 258937947,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T21:39:43",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjEy",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTQxNjMy",

                        "legacy_id": 258941632,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T21:51:09",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjEz",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTQ3MTEz",

                        "legacy_id": 258947113,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T22:12:00",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjE0",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTUxNTkz",

                        "legacy_id": 258951593,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T22:31:09",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

                {

                    "cursor": "YXJyYXljb25uZWN0aW9uOjE1",

                    "node": {

                        "id": "U2hpcG1lbnQ6MjU4OTU2NDM3",

                        "legacy_id": 258956437,

                        "order_id": "T3JkZXI6MjY3NTM5Nzg5",

                        "user_id": null,

                        "warehouse_id": null,

                        "pending_shipment_id": null,

                        "address": {

                            "name": "[redacted]",

                            "address1": "[redacted]",

                            "address2": "",

                            "city": "[redacted]",

                            "state": "ND",

                            "country": "US",

                            "zip": "[redacted]",

                            "phone": "[redacted]"

                        },

                        "shipped_off_shiphero": true,

                        "dropshipment": false,

                        "created_date": "2022-05-05T22:51:21",

                        "line_items": {

                            "pageInfo": {

                                "hasNextPage": false,

                                "hasPreviousPage": false,

                                "startCursor": null,

                                "endCursor": null

                            },

                            "edges": []

                        },

                        "shipping_labels": []

                    }

                },

had to delete to 32k chars

Hello @pgsadmin!

Welcome to the ShipHero Public API Community!

Are you updating or test shipping the order directly in the connected store?

Have a great day!
TomasFD

Hi Tomas,

We are testing but it was shipped from the ShipHero app. Please see the order history details below and let me know if you have any other questions:

05/05/2022 12:19 PM App User This order was shipped by PGS Admin printed using shipping web
05/05/2022 12:19 PM PGS Admin Shipping Carrier updated from unmapped to UPS

Shipping Method updated from unmapped to UPS Ground|

Hello @pgsadmin!

I sent this issue to our engineers to look further into it. I found that this is happening for all your orders from that store.

Kind regards,
TomasFD

Hi Tomas,

Will this be fixed or do I need to implement something on my client side?

Thanks,
Bill

Hello @pgsadmin!

I’m still waiting for an answer from the EN team. If it’s a bug on our end our engineers will work on fixing it.

Have a nice day!
TomasFD