# How to get return tracking number via GraphQL API

**URL:** <https://community.shiphero.com/t/how-to-get-return-tracking-number-via-graphql-api/1110>\
**Category:** GraphQL API\
**Created:** [February 9, 2021, 7:58am UTC](https://community.shiphero.com/t/how-to-get-return-tracking-number-via-graphql-api/1110 "2021-02-09T07:58:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jarvis](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jarvis](https://community.shiphero.com/u/Jarvis)\
**Post date:** [February 9, 2021, 7:58am UTC](https://community.shiphero.com/t/how-to-get-return-tracking-number-via-graphql-api/1110/1 "2021-02-09T07:58:12Z")

</div>

Hi Team,

We can see ‘Tracking Number’ field on the returns UI page via [https://app.shiphero.com/](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.

---

<div class="post-metadata">

**Author:** ![dlshaw](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dlshaw](https://community.shiphero.com/u/dlshaw)\
**Post date:** [February 9, 2021, 3:13pm UTC](https://community.shiphero.com/t/how-to-get-return-tracking-number-via-graphql-api/1110/3 "2021-02-09T15:13:30Z")

</div>

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  
}

```
}

```

}  
}

---

<div class="post-metadata">

**Author:** ![Jarvis](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jarvis](https://community.shiphero.com/u/Jarvis)\
**Post date:** [February 12, 2021, 4:54am UTC](https://community.shiphero.com/t/how-to-get-return-tracking-number-via-graphql-api/1110/4 "2021-02-12T04:54:03Z")

</div>

@dlshaw

It works.

Thank you.
