How to get return tracking number via GraphQL API

Hi Team,

We can see ‘Tracking Number’ field on the returns UI page via https://app.shiphero.com/. But we can’t find tracking number field in ReturnEdge node via GraphQL API.

query {
return(id: “UmV0dXJuOjc1MzYyNA==”) {
request_id
complexity
data {
id
legacy_id
account_id
order_id
reason
status
label_type
label_cost
total_items_expected
total_items_received
total_items_restocked
cost_to_customer
shipping_carrier
shipping_method
address {
address1
address2
city
state
country
zip
}
line_items {
id
line_item_id
warehouse_id
product_id
return_id
quantity
condition
}
}
}
}

How to get tracking number for a return/exchange request via GraphQL API?

Thanks.

Jarvis,

I used order and in there you can find returns and rma_labels nodes

query{

order(id: “XXXXX”) {
request_id
complexity
data {
order_number
returns {
status
}
rma_labels {
carrier
tracking_number
}

}

}
}

1 Like

@dlshaw

It works.

Thank you.

1 Like