Hi, what is the best way to query shipments that have been voided?
This is what I have tried, and it seems to work, but I was wondering if there is a better way. It seems that what I am really searching for are shipping labels with a date range.
query {
shipments(date_from: “2023-11-29T20:47:58”, date_to: “2023-12-08T20:48:58”) {
request_id
complexity
data(first: 10) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
order_id
created_date
shipping_labels {
id
status
tracking_number
order_number
carrier
shipping_name
shipping_method
cost
box_code
}
}
cursor
}
}
}
}