# Vendor name in purchase\_order query is empty

**URL:** https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872
**Category:** GraphQL API
**Created:** [October 4, 2020, 6:27pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872 "2020-10-04T18:27:48Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![maomuriel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/maomuriel/32/238_2.png) [@maomuriel](https://community.shiphero.com/u/maomuriel)
#### Post date: [October 4, 2020, 6:27pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/1 "2020-10-04T18:27:49Z")

</div>

Hi to everyone,

I’m trying to get the vendor.name and vendor.email for a purchase order, but those fields are comming empty (in fact, null), next is the query (and the response we’re getting from API):

query{  
purchase\_order (id:“xxxxxxx”){  
data{  
id,  
po\_number,  
po\_date,  
account\_id,  
vendor\_id,  
created\_at,  
fulfillment\_status,  
po\_note,  
description,  
subtotal,  
shipping\_price,  
vendor{  
name,  
legacy\_id,  
email  
},  
total\_price,  
line\_items(first: 2) {  
edges {  
node {  
id,  
legacy\_id,  
po\_id,  
account\_id,  
warehouse\_id,  
vendor\_id,  
po\_number,  
sku,  
barcode,  
note,  
quantity,  
quantity\_received,  
quantity\_rejected,  
product\_name,  
}  
}  
}  
}  
}  
}

Response (just a portion of it):

{  
“data”: {  
“purchase\_order”: {  
“data”: {  
“id”: “XXXXXXXXXXXXXXXXXXXXXXXXX=”,  
“po\_number”: “2010-01 Stars Spats”,  
“po\_date”: “2010-10-20T00:00:00+00:00”,  
“account\_id”: “XXXXXXXXXXXXXXXX”,  
“vendor\_id”: “VmVuZG9yOjA=”,  
“created\_at”: “2020-10-02T14:35:42+00:00”,  
“fulfillment\_status”: “pending”,  
“po\_note”: null,  
“description”: null,  
“subtotal”: “825”,  
“shipping\_price”: “825”,  
“vendor”: {  
“name”: null,  
“legacy\_id”: 0,  
“email”: null  
},

what is it wrong?

---

<div class="post-metadata">

### Author: ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)
#### Post date: [October 5, 2020, 2:16pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/2 "2020-10-05T14:16:21Z")

</div>

Hi @maomuriel!  
Do you happen to have the request\_id for that response?  
That way I can check the account and PO and see if there is anything there.  
Thanks in advance!  
Tom

---

<div class="post-metadata">

### Author: ![maomuriel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/maomuriel/32/238_2.png) [@maomuriel](https://community.shiphero.com/u/maomuriel)
#### Post date: [October 5, 2020, 2:42pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/3 "2020-10-05T14:42:33Z")

</div>

Hi Tom,

This is the request\_id: 5f7b30843f3c860259b1c044

We still getting the same result.

Regards

Mauricio M.

---

<div class="post-metadata">

### Author: ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)
#### Post date: [October 5, 2020, 3:24pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/4 "2020-10-05T15:24:19Z")

</div>

Thanks for that @maomuriel!  
I see what you mean now. I already engaged an engineer to ask about this and I will provide an update as soon as I get a response from them.  
Thanks for the patience while we look into it!  
Tom

---

<div class="post-metadata">

### Author: ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)
#### Post date: [October 7, 2020, 1:01pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/5 "2020-10-07T13:01:03Z")

</div>

Hi @maomuriel!  
A fix for this has been implemented. Now you can see the vendor name and ID at a line item level by using:

```
query {
  purchase_order(id: "XXXXXXX") {
    request_id
    complexity
    data {
      line_items(first: 100) {
        edges {
          node {
            id
            legacy_id
            vendor {
              id
              name
            }
            vendor_id
            sku
          }
        }
      }
    }
  }
} 

```

Thanks again for the patience while we work on this!  
Please let me know if there is anything else I could help you with  
Tom

---

<div class="post-metadata">

### Author: ![maomuriel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/maomuriel/32/238_2.png) [@maomuriel](https://community.shiphero.com/u/maomuriel)
#### Post date: [September 22, 2023, 8:45pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/6 "2023-09-22T20:45:53Z")

</div>

Hi @tomasw , after some years, it is happening again, we’re getting vendor field empty, no email, no name.

In fact, we’re quering the vendors operation getting error: 22 response constantly. Do you know what is happening with vendors operations?

---

<div class="post-metadata">

### Author: ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)
#### Post date: [September 25, 2023, 11:23am UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/7 "2023-09-25T11:23:41Z")

</div>

Hey @maomuriel,

Thanks for reaching out!  
There was an issue with the vendors query briefly last week, a fix has since been rolled out.

Please let me know if you’re still experiencing any issues.

Best,  
RayanP

---

<div class="post-metadata">

### Author: ![maomuriel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/maomuriel/32/238_2.png) [@maomuriel](https://community.shiphero.com/u/maomuriel)
#### Post date: [September 26, 2023, 4:17pm UTC](https://community.shiphero.com/t/vendor-name-in-purchase-order-query-is-empty/872/8 "2023-09-26T16:17:52Z")

</div>

Hi @sh-agent Thank you for reply.

No, we aren’t still experiencing issues, right now (and last days) the API es running flawless for vendor’s queries.

Thank you again.
