So i am trying to create an Purchase Order Using the Rest API i am successfully able to create an PO using an API for that i have identified that there are three important keys which i need to send in my body to create an PO. Now this what i am sending where i am successfully able to create an PO in my Acumatica account .
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/7c26f791-55d6-4976-a704-c1ea238b33c4.png)
Now here i am statically filling out these values but when i will integrate it with my platform i need an List of Vendors where i can choose and vendor and create an PO for that vendor now i used the API to get the Vendors list that i can show in my UI for the user to choose.
I am using this api to get the vendors list
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/2c5293f8-92a5-4649-a3ca-a9f01562b293.png)
But in here i am getting the Location of the Vendor but i need the Location Id which i can put in my location key to create an PO so how can i get the Location Id for creating an PO or How can i use the location name which i am getting by hitting the Vendors api to create an PO in using an API ?