GET api/Suppliers/{site}?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

integer

Required

site

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ContactsAndSuppliers
NameDescriptionTypeAdditional information
SupplierId

integer

None.

SiteUUID

globally unique identifier

None.

NameOrCompanyName

string

None.

ContactCategoryId

integer

None.

ContactSubCategoryId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "SupplierId": 1,
    "SiteUUID": "cdcca2c3-cdeb-4264-bd2d-807a31fbe9d4",
    "NameOrCompanyName": "sample string 3",
    "ContactCategoryId": 4,
    "ContactSubCategoryId": 5
  },
  {
    "SupplierId": 1,
    "SiteUUID": "cdcca2c3-cdeb-4264-bd2d-807a31fbe9d4",
    "NameOrCompanyName": "sample string 3",
    "ContactCategoryId": 4,
    "ContactSubCategoryId": 5
  }
]

text/xml

Sample:
<ArrayOfContactsAndSuppliers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineManagementSystemWebApi.Models">
  <ContactsAndSuppliers>
    <ContactCategoryId>4</ContactCategoryId>
    <ContactSubCategoryId>5</ContactSubCategoryId>
    <NameOrCompanyName>sample string 3</NameOrCompanyName>
    <SiteUUID>cdcca2c3-cdeb-4264-bd2d-807a31fbe9d4</SiteUUID>
    <SupplierId>1</SupplierId>
  </ContactsAndSuppliers>
  <ContactsAndSuppliers>
    <ContactCategoryId>4</ContactCategoryId>
    <ContactSubCategoryId>5</ContactSubCategoryId>
    <NameOrCompanyName>sample string 3</NameOrCompanyName>
    <SiteUUID>cdcca2c3-cdeb-4264-bd2d-807a31fbe9d4</SiteUUID>
    <SupplierId>1</SupplierId>
  </ContactsAndSuppliers>
</ArrayOfContactsAndSuppliers>