Hi,
In Shipment GraphQL Queries I am able to fetch shipment details like tracking number, legacy_id and order_id but I am not able to see product details and their mappings. I need to know in which tracking number which product is available.
Hi,
In Shipment GraphQL Queries I am able to fetch shipment details like tracking number, legacy_id and order_id but I am not able to see product details and their mappings. I need to know in which tracking number which product is available.
Hi @Venkatesh!
You should be able to see that by using the following fields
query {
shipment(id: "119555719") {
complexity
request_id
data {
id
legacy_id
order_id
warehouse_id
created_date
shipping_labels {
tracking_number
shipment_line_items {
edges {
node {
line_item_id
line_item {
sku
}
}
}
}
}
}
}
}
This will return you the tracking number and the line items associated with that tracking.
Let me know if that doesn’t help!
Thanks in advance
Tom
Hi,
I am able to fetch the tracking details by the query you have posted. Now I need to fetch shipped quantity for each tracking number, Can you help on this?
Hi @Venkatesh!
You can use the quantity under line item for that, this is:
query {
shipment(id: "119555719") {
complexity
request_id
data {
id
legacy_id
order_id
warehouse_id
created_date
shipping_labels {
tracking_number
shipment_line_items {
edges {
node {
line_item_id
quantity
line_item {
sku
}
}
}
}
}
}
}
}
You can see the whole fields available by inspecting the Schema & Docs, there might be others that might be helpful as well.
Thanks again!
Tom