GET Suppliers/Get?SiteID={SiteID}&IsActive={IsActive}

Gets A List Of all Supplier for Company

Request Information

URI Parameters

Name Type Description Additional information
SiteID integer

SiteID of site you want suppliers from

IsActive boolean

whether it should show active suppliers. Default only shows active suppliers

Body Parameters

None.

Response Information

Resource Description

Collection of SupplierRowDto
Name Type Description Additional information
SiteID integer

None.

SupplierID integer

None.

Name string

None.

CompanyCode string

None.

AccountNumber string

None.

Email string

None.

ContactName string

None.

ContactPhone string

None.

Url string

None.

OrderMethod string

None.

MinimumSpend decimal number

None.

OutstandingBalance decimal number

None.

DeliveryDays DaysOfTheWeekDto

None.

Active boolean

None.

DeliveryCutOffHour integer

None.

SupplierAutomatedOrders boolean

None.

OverrideCutOffInterval time interval

None.

AutomatedOrderPrepopulate string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "SiteID": 1,
    "SupplierID": 2,
    "Name": "sample string 3",
    "CompanyCode": "sample string 4",
    "AccountNumber": "sample string 5",
    "Email": "sample string 6",
    "ContactName": "sample string 7",
    "ContactPhone": "sample string 8",
    "Url": "sample string 9",
    "OrderMethod": "sample string 10",
    "MinimumSpend": 11.0,
    "OutstandingBalance": 12.0,
    "DeliveryDays": {
      "Monday": true,
      "Tuesday": true,
      "Wednesday": true,
      "Thursday": true,
      "Friday": true,
      "Saturday": true,
      "Sunday": true,
      "ActiveShortNames": [
        "Mon",
        "Tue",
        "Wed",
        "Thur",
        "Fri",
        "Sat",
        "Sun"
      ],
      "DaysOfWeek": [
        1,
        2,
        3,
        4,
        5,
        6,
        0
      ]
    },
    "Active": true,
    "DeliveryCutOffHour": 1,
    "SupplierAutomatedOrders": true,
    "OverrideCutOffInterval": "00:00:00.1234567",
    "AutomatedOrderPrepopulate": "sample string 15"
  },
  {
    "SiteID": 1,
    "SupplierID": 2,
    "Name": "sample string 3",
    "CompanyCode": "sample string 4",
    "AccountNumber": "sample string 5",
    "Email": "sample string 6",
    "ContactName": "sample string 7",
    "ContactPhone": "sample string 8",
    "Url": "sample string 9",
    "OrderMethod": "sample string 10",
    "MinimumSpend": 11.0,
    "OutstandingBalance": 12.0,
    "DeliveryDays": {
      "Monday": true,
      "Tuesday": true,
      "Wednesday": true,
      "Thursday": true,
      "Friday": true,
      "Saturday": true,
      "Sunday": true,
      "ActiveShortNames": [
        "Mon",
        "Tue",
        "Wed",
        "Thur",
        "Fri",
        "Sat",
        "Sun"
      ],
      "DaysOfWeek": [
        1,
        2,
        3,
        4,
        5,
        6,
        0
      ]
    },
    "Active": true,
    "DeliveryCutOffHour": 1,
    "SupplierAutomatedOrders": true,
    "OverrideCutOffInterval": "00:00:00.1234567",
    "AutomatedOrderPrepopulate": "sample string 15"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSupplierRowDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.StockMid.Core.Models.Suppliers.Dto">
  <SupplierRowDto>
    <AccountNumber>sample string 5</AccountNumber>
    <Active>true</Active>
    <AutomatedOrderPrepopulate>sample string 15</AutomatedOrderPrepopulate>
    <CompanyCode>sample string 4</CompanyCode>
    <ContactName>sample string 7</ContactName>
    <ContactPhone>sample string 8</ContactPhone>
    <DeliveryCutOffHour>1</DeliveryCutOffHour>
    <DeliveryDays xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tevalis.StockMid.Core.Models">
      <d3p1:ActiveShortNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>Mon</d4p1:string>
        <d4p1:string>Tue</d4p1:string>
        <d4p1:string>Wed</d4p1:string>
        <d4p1:string>Thur</d4p1:string>
        <d4p1:string>Fri</d4p1:string>
        <d4p1:string>Sat</d4p1:string>
        <d4p1:string>Sun</d4p1:string>
      </d3p1:ActiveShortNames>
      <d3p1:DaysOfWeek xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DayOfWeek>Monday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Tuesday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Wednesday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Thursday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Friday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Saturday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Sunday</d4p1:DayOfWeek>
      </d3p1:DaysOfWeek>
      <d3p1:Friday>true</d3p1:Friday>
      <d3p1:Monday>true</d3p1:Monday>
      <d3p1:Saturday>true</d3p1:Saturday>
      <d3p1:Sunday>true</d3p1:Sunday>
      <d3p1:Thursday>true</d3p1:Thursday>
      <d3p1:Tuesday>true</d3p1:Tuesday>
      <d3p1:Wednesday>true</d3p1:Wednesday>
    </DeliveryDays>
    <Email>sample string 6</Email>
    <MinimumSpend>11</MinimumSpend>
    <Name>sample string 3</Name>
    <OrderMethod>sample string 10</OrderMethod>
    <OutstandingBalance>12</OutstandingBalance>
    <OverrideCutOffInterval>PT0.1234567S</OverrideCutOffInterval>
    <SiteID>1</SiteID>
    <SupplierAutomatedOrders>true</SupplierAutomatedOrders>
    <SupplierID>2</SupplierID>
    <Url>sample string 9</Url>
  </SupplierRowDto>
  <SupplierRowDto>
    <AccountNumber>sample string 5</AccountNumber>
    <Active>true</Active>
    <AutomatedOrderPrepopulate>sample string 15</AutomatedOrderPrepopulate>
    <CompanyCode>sample string 4</CompanyCode>
    <ContactName>sample string 7</ContactName>
    <ContactPhone>sample string 8</ContactPhone>
    <DeliveryCutOffHour>1</DeliveryCutOffHour>
    <DeliveryDays xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tevalis.StockMid.Core.Models">
      <d3p1:ActiveShortNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>Mon</d4p1:string>
        <d4p1:string>Tue</d4p1:string>
        <d4p1:string>Wed</d4p1:string>
        <d4p1:string>Thur</d4p1:string>
        <d4p1:string>Fri</d4p1:string>
        <d4p1:string>Sat</d4p1:string>
        <d4p1:string>Sun</d4p1:string>
      </d3p1:ActiveShortNames>
      <d3p1:DaysOfWeek xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DayOfWeek>Monday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Tuesday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Wednesday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Thursday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Friday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Saturday</d4p1:DayOfWeek>
        <d4p1:DayOfWeek>Sunday</d4p1:DayOfWeek>
      </d3p1:DaysOfWeek>
      <d3p1:Friday>true</d3p1:Friday>
      <d3p1:Monday>true</d3p1:Monday>
      <d3p1:Saturday>true</d3p1:Saturday>
      <d3p1:Sunday>true</d3p1:Sunday>
      <d3p1:Thursday>true</d3p1:Thursday>
      <d3p1:Tuesday>true</d3p1:Tuesday>
      <d3p1:Wednesday>true</d3p1:Wednesday>
    </DeliveryDays>
    <Email>sample string 6</Email>
    <MinimumSpend>11</MinimumSpend>
    <Name>sample string 3</Name>
    <OrderMethod>sample string 10</OrderMethod>
    <OutstandingBalance>12</OutstandingBalance>
    <OverrideCutOffInterval>PT0.1234567S</OverrideCutOffInterval>
    <SiteID>1</SiteID>
    <SupplierAutomatedOrders>true</SupplierAutomatedOrders>
    <SupplierID>2</SupplierID>
    <Url>sample string 9</Url>
  </SupplierRowDto>
</ArrayOfSupplierRowDto>