Why is this shipment query not returning the labels? The labels exist and can be seen in the Shiphero UI. But the API is returning empty arrays for the LineItems and Labels. This looks like a bug.
Here is the query:
{ shipment(id: “U2hpcG1lbnQ6MzI3NzMyNzg2”) {complexity request_id data {created_date order{order_number order_date account_id} shipping_labels{cost status shipping_method} line_items(first: 5 ) {pageInfo {hasNextPage hasPreviousPage startCursor endCursor} edges {node {quantity line_item{product_name fulfillment_status sku}}}}}}}
Here is the result:
{
“data”: {
“shipment”: {
“complexity”: 7,
“request_id”: “63fe004facee262b6f7e453e”,
“data”: {
“created_date”: “2023-02-19T04:34:46”,
“order”: {
“order_number”: “BJ71601”,
“order_date”: “2023-02-15T11:42:21”,
“account_id”: “QWNjb3VudDo2MTQyOQ==”
},
“shipping_labels”: ,
“line_items”: {
“pageInfo”: {
“hasNextPage”: false,
“hasPreviousPage”: false,
“startCursor”: null,
“endCursor”: null
},
“edges”:
}
}
}
},
“extensions”: {
“throttling”: {
“estimated_complexity”: 7,
“cost”: 2,
“cost_detail”: {
“shipment”: {
“items_count”: 1,
“cost”: 1,
“total_cost”: 2,
“fields”: {}
}
},
“user_quota”: {
“credits_remaining”: 1984,
“max_available”: 2002,
“increment_rate”: 30
}
}
}
}
Here is shipment in the UI: