# How to Get List Of vendors by using GrapghQL API

**URL:** <https://community.shiphero.com/t/how-to-get-list-of-vendors-by-using-grapghql-api/596>\
**Category:** GraphQL API\
**Created:** [July 14, 2020, 4:57pm UTC](https://community.shiphero.com/t/how-to-get-list-of-vendors-by-using-grapghql-api/596 "2020-07-14T16:57:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mangesh](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mangesh](https://community.shiphero.com/u/Mangesh)\
**Post date:** [July 14, 2020, 4:57pm UTC](https://community.shiphero.com/t/how-to-get-list-of-vendors-by-using-grapghql-api/596/1 "2020-07-14T16:57:14Z")

</div>

Hi,

I am trying to get list of vendors from Shiphero by using GraghQL API, but I am getting error message,

query {  
account {  
request\_id  
complexity  
data {  
vendors {  
id  
legacy\_id  
account\_id  
identifier  
profile  
}  
}  
}  
}

Response getting:

{  
“errors”: [  
{  
“message”: “Cannot query field “vendors” on type “Account”.”,  
“locations”: [  
{  
“line”: 6,  
“column”: 7  
}  
]  
}  
]  
}

Thanks  
Mangesh

---

<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:** [July 14, 2020, 8:05pm UTC](https://community.shiphero.com/t/how-to-get-list-of-vendors-by-using-grapghql-api/596/2 "2020-07-14T20:05:25Z")

</div>

Hi @Mangesh !  
For that, you will need to use the vendors query. Something like this

```
query {
  vendors {
    request_id
    complexity
    data(first: 10) {
      edges {
        node {
          id
          legacy_id
          name
          email
          account_number
          account_id
          address {
            name
            address1
            address2
            city
            state
            country
            zip
            phone
          }
          currency
          internal_note
          default_po_note
          logo
          partner_vendor_id
          created_at
        }
      }
    }
  }
}

```

Let me know if this doesn’t help  
Thanks!  
Tom

---

<div class="post-metadata">

**Author:** ![Mangesh](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mangesh](https://community.shiphero.com/u/Mangesh)\
**Post date:** [July 15, 2020, 6:16am UTC](https://community.shiphero.com/t/how-to-get-list-of-vendors-by-using-grapghql-api/596/3 "2020-07-15T06:16:15Z")

</div>

Thanks Tom, It works very well.

May I know how do you find this query because I have checked teh shiphero API documents but didn’t find any. Can you please share the document link that are you using it or preparing the API.

Thanks  
Mangesh

---

<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:** [July 15, 2020, 12:39pm UTC](https://community.shiphero.com/t/how-to-get-list-of-vendors-by-using-grapghql-api/596/4 "2020-07-15T12:39:10Z")

</div>

Hey @Mangesh! Sure!  
Are you using a specific IDE to access the API? (Something like Altair, Insomnia, GraphQL Playground)  
In that case you can navigate through the schema and docs using one of those Client IDEs

We have some docs about this and a couple of videos at: [https://developer.shiphero.com/getting-started/#schemaanddocs](https://developer.shiphero.com/getting-started/#schemaanddocs)

Let me know if that doesn’t help,  
Thanks again!  
Tom
