GET Accounts/Types?SiteID={SiteID}
Gets A List Of All Account Types for Site given
Request Information
URI Parameters
Name | Type | Description | Additional information |
---|---|---|---|
SiteID | integer |
Body Parameters
None.
Response Information
Resource Description
AccountTypeCatalogueName | Type | Description | Additional information |
---|---|---|---|
SiteID | integer |
None. |
|
AccountTypes | Collection of AccountTypeModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "SiteID": 1, "AccountTypes": [ { "AccountTypeID": 1, "Name": "sample string 2", "CostCentre": "sample string 3" }, { "AccountTypeID": 1, "Name": "sample string 2", "CostCentre": "sample string 3" } ] }
application/xml, text/xml
Sample:
<AccountTypeCatalogue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.Accounts"> <AccountTypes> <AccountTypeModel> <AccountTypeID>1</AccountTypeID> <CostCentre>sample string 3</CostCentre> <Name>sample string 2</Name> </AccountTypeModel> <AccountTypeModel> <AccountTypeID>1</AccountTypeID> <CostCentre>sample string 3</CostCentre> <Name>sample string 2</Name> </AccountTypeModel> </AccountTypes> <SiteID>1</SiteID> </AccountTypeCatalogue>