GET TaxGroup/{SiteID}?IsActive={IsActive}&ShowServiceCharge={ShowServiceCharge}

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

True or false whether to show active or inactive tax groups and items. Default: true and false

None.

ShowServiceCharge boolean

True or false whether to show Service Charge tax groups. Default: false

Body Parameters

None.

Response Information

Resource Description

TaxGroupModel
Name Type Description Additional information
SiteID integer

None.

TaxGroups Collection of TaxGroup

None.

Response Formats

application/json, text/json

Sample:
{
  "SiteID": 1,
  "TaxGroups": [
    {
      "TaxGroupID": 1,
      "Name": "sample string 2",
      "VATPercentage": 3.0,
      "Active": true,
      "Items": [
        {
          "TaxGroupItemID": 1,
          "Name": "sample string 2",
          "SeqNo": 3,
          "CalcType": "sample string 4",
          "TaxChargeType": "sample string 5",
          "Rate": 6.0,
          "StartDate": "2024-11-21T06:21:00.7464808+00:00",
          "EndDate": "2024-11-21T06:21:00.7464808+00:00",
          "StartTime": "00:00:00.1234567",
          "EndTime": "00:00:00.1234567",
          "Active": true
        },
        {
          "TaxGroupItemID": 1,
          "Name": "sample string 2",
          "SeqNo": 3,
          "CalcType": "sample string 4",
          "TaxChargeType": "sample string 5",
          "Rate": 6.0,
          "StartDate": "2024-11-21T06:21:00.7464808+00:00",
          "EndDate": "2024-11-21T06:21:00.7464808+00:00",
          "StartTime": "00:00:00.1234567",
          "EndTime": "00:00:00.1234567",
          "Active": true
        }
      ]
    },
    {
      "TaxGroupID": 1,
      "Name": "sample string 2",
      "VATPercentage": 3.0,
      "Active": true,
      "Items": [
        {
          "TaxGroupItemID": 1,
          "Name": "sample string 2",
          "SeqNo": 3,
          "CalcType": "sample string 4",
          "TaxChargeType": "sample string 5",
          "Rate": 6.0,
          "StartDate": "2024-11-21T06:21:00.7464808+00:00",
          "EndDate": "2024-11-21T06:21:00.7464808+00:00",
          "StartTime": "00:00:00.1234567",
          "EndTime": "00:00:00.1234567",
          "Active": true
        },
        {
          "TaxGroupItemID": 1,
          "Name": "sample string 2",
          "SeqNo": 3,
          "CalcType": "sample string 4",
          "TaxChargeType": "sample string 5",
          "Rate": 6.0,
          "StartDate": "2024-11-21T06:21:00.7464808+00:00",
          "EndDate": "2024-11-21T06:21:00.7464808+00:00",
          "StartTime": "00:00:00.1234567",
          "EndTime": "00:00:00.1234567",
          "Active": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<TaxGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models">
  <SiteID>1</SiteID>
  <TaxGroups>
    <TaxGroup>
      <Active>true</Active>
      <Items>
        <TaxGroupItem>
          <Active>true</Active>
          <CalcType>sample string 4</CalcType>
          <EndDate>2024-11-21T06:21:00.7464808+00:00</EndDate>
          <EndTime>PT0.1234567S</EndTime>
          <Name>sample string 2</Name>
          <Rate>6</Rate>
          <SeqNo>3</SeqNo>
          <StartDate>2024-11-21T06:21:00.7464808+00:00</StartDate>
          <StartTime>PT0.1234567S</StartTime>
          <TaxChargeType>sample string 5</TaxChargeType>
          <TaxGroupItemID>1</TaxGroupItemID>
        </TaxGroupItem>
        <TaxGroupItem>
          <Active>true</Active>
          <CalcType>sample string 4</CalcType>
          <EndDate>2024-11-21T06:21:00.7464808+00:00</EndDate>
          <EndTime>PT0.1234567S</EndTime>
          <Name>sample string 2</Name>
          <Rate>6</Rate>
          <SeqNo>3</SeqNo>
          <StartDate>2024-11-21T06:21:00.7464808+00:00</StartDate>
          <StartTime>PT0.1234567S</StartTime>
          <TaxChargeType>sample string 5</TaxChargeType>
          <TaxGroupItemID>1</TaxGroupItemID>
        </TaxGroupItem>
      </Items>
      <Name>sample string 2</Name>
      <TaxGroupID>1</TaxGroupID>
      <VATPercentage>3</VATPercentage>
    </TaxGroup>
    <TaxGroup>
      <Active>true</Active>
      <Items>
        <TaxGroupItem>
          <Active>true</Active>
          <CalcType>sample string 4</CalcType>
          <EndDate>2024-11-21T06:21:00.7464808+00:00</EndDate>
          <EndTime>PT0.1234567S</EndTime>
          <Name>sample string 2</Name>
          <Rate>6</Rate>
          <SeqNo>3</SeqNo>
          <StartDate>2024-11-21T06:21:00.7464808+00:00</StartDate>
          <StartTime>PT0.1234567S</StartTime>
          <TaxChargeType>sample string 5</TaxChargeType>
          <TaxGroupItemID>1</TaxGroupItemID>
        </TaxGroupItem>
        <TaxGroupItem>
          <Active>true</Active>
          <CalcType>sample string 4</CalcType>
          <EndDate>2024-11-21T06:21:00.7464808+00:00</EndDate>
          <EndTime>PT0.1234567S</EndTime>
          <Name>sample string 2</Name>
          <Rate>6</Rate>
          <SeqNo>3</SeqNo>
          <StartDate>2024-11-21T06:21:00.7464808+00:00</StartDate>
          <StartTime>PT0.1234567S</StartTime>
          <TaxChargeType>sample string 5</TaxChargeType>
          <TaxGroupItemID>1</TaxGroupItemID>
        </TaxGroupItem>
      </Items>
      <Name>sample string 2</Name>
      <TaxGroupID>1</TaxGroupID>
      <VATPercentage>3</VATPercentage>
    </TaxGroup>
  </TaxGroups>
</TaxGroupModel>