GET api/v1/Vendors?VendorId={VendorId}
Returns a single VendorViewModel if the API token has rights to view it
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| VendorId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
VendorViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VendorId |
Represents the PK of the Vendor |
globally unique identifier |
None. |
| Name |
Represents the name of the Vendor |
string |
None. |
| ACSystemId |
Represents the PK of the Access Control System for the Vendor |
globally unique identifier |
None. |
| ACSystemName |
Represents the name of the Access Control System for the Vendor |
string |
None. |
| OccupancyId |
Represents the PK of the Occupancy the Vendor performs work for (if applicable) |
globally unique identifier |
None. |
| OccupancyName |
Represents the name of the Occupancy the Vendor performs work for (if applicable) |
string |
None. |
| CompanyId |
Represents the PK of the global company that the Vendor is an instance of. |
globally unique identifier |
None. |
| CompanyName |
Represents the name of the global company that the Vendor is an instance of. |
string |
None. |
| StreetAddress1 |
Represents the primary street address of the Vendor |
string |
None. |
| StreetAddress2 |
Represents the secondary street address of the Vendor |
string |
None. |
| City |
Represents the city of the Vendor |
string |
None. |
| RegionId |
Represents the PK of the region (State, Province, County, etc) of the Vendor |
globally unique identifier |
None. |
| RegionName |
Represents the name of the region (State, Province, County, etc) of the Vendor |
string |
None. |
| CountryId |
Represents the PK of the country of the Vendor |
globally unique identifier |
None. |
| CountryName |
Represents the name of the country of the Vendor |
string |
None. |
| PostalCode |
Represents the Postal Code/Zip Code of the Vendor |
string |
None. |
| Phone |
Represents the primary phone number of the Vendor |
string |
None. |
| VendorNumber |
Represents the vendor number used to refer to the vendor (typically from an accounting package) |
string |
None. |
| TimeZoneInfoId |
Represents the TimeZone of the Facility |
string |
None. |
| Deleted |
Represents the deleted status of the Vendor |
boolean |
None. |
Response Formats
application/json, text/json
{
"VendorId": "86548eb1-0d0b-4177-8e6a-2df9672c4b2f",
"Name": "sample string 2",
"ACSystemId": "4ef6739e-f3ef-41d4-960f-b54b0b830981",
"ACSystemName": "sample string 3",
"OccupancyId": "85d08b69-d7d7-4e5d-8022-3c4745ec50b2",
"OccupancyName": "sample string 4",
"CompanyId": "de17e5a0-fc2b-4851-8dd1-b6e9ce732fdd",
"CompanyName": "sample string 6",
"StreetAddress1": "sample string 7",
"StreetAddress2": "sample string 8",
"City": "sample string 9",
"RegionId": "73db414a-72a2-43ab-b395-51281c8a352c",
"RegionName": "sample string 11",
"CountryId": "c4379c6c-337f-435e-aadf-101be7343e4b",
"CountryName": "sample string 13",
"PostalCode": "sample string 14",
"Phone": "sample string 15",
"VendorNumber": "sample string 16",
"TimeZoneInfoId": "sample string 17",
"Deleted": true
}
application/xml, text/xml
<VendorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <ACSystemId>4ef6739e-f3ef-41d4-960f-b54b0b830981</ACSystemId> <ACSystemName>sample string 3</ACSystemName> <City>sample string 9</City> <CompanyId>de17e5a0-fc2b-4851-8dd1-b6e9ce732fdd</CompanyId> <CompanyName>sample string 6</CompanyName> <CountryId>c4379c6c-337f-435e-aadf-101be7343e4b</CountryId> <CountryName>sample string 13</CountryName> <Deleted>true</Deleted> <Name>sample string 2</Name> <OccupancyId>85d08b69-d7d7-4e5d-8022-3c4745ec50b2</OccupancyId> <OccupancyName>sample string 4</OccupancyName> <Phone>sample string 15</Phone> <PostalCode>sample string 14</PostalCode> <RegionId>73db414a-72a2-43ab-b395-51281c8a352c</RegionId> <RegionName>sample string 11</RegionName> <StreetAddress1>sample string 7</StreetAddress1> <StreetAddress2>sample string 8</StreetAddress2> <TimeZoneInfoId>sample string 17</TimeZoneInfoId> <VendorId>86548eb1-0d0b-4177-8e6a-2df9672c4b2f</VendorId> <VendorNumber>sample string 16</VendorNumber> </VendorViewModel>