GET api/Account/GetAllMainAccounts
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
MainAccountResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| MainAccountList | Collection of MainAccount |
None. |
|
| ResponseCode | string |
None. |
|
| Description | string |
None. |
|
| LoggerID | string |
None. |
|
| AdditionalData | Dictionary of string [key] and string [value] |
None. |
|
| Object | Object |
None. |
|
| CertNo | string |
None. |
|
| TrackCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"MainAccountList": [
{
"MainAccountID": "sample string 1",
"Description": "sample string 2",
"LedgerGroup": "sample string 3",
"SubAccount": [
{
"SubAccountID": "sample string 1",
"MainAccountID": "sample string 2",
"SubAccountName": "sample string 3"
},
{
"SubAccountID": "sample string 1",
"MainAccountID": "sample string 2",
"SubAccountName": "sample string 3"
}
]
},
{
"MainAccountID": "sample string 1",
"Description": "sample string 2",
"LedgerGroup": "sample string 3",
"SubAccount": [
{
"SubAccountID": "sample string 1",
"MainAccountID": "sample string 2",
"SubAccountName": "sample string 3"
},
{
"SubAccountID": "sample string 1",
"MainAccountID": "sample string 2",
"SubAccountName": "sample string 3"
}
]
}
],
"ResponseCode": "sample string 1",
"Description": "sample string 2",
"LoggerID": "sample string 3",
"AdditionalData": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"Object": {},
"CertNo": "sample string 5",
"TrackCode": "sample string 6"
}
application/xml, text/xml
Sample:
<MainAccountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CHICoreRestAPI.Core.Models">
<AdditionalData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</AdditionalData>
<CertNo>sample string 5</CertNo>
<Description>sample string 2</Description>
<LoggerID>sample string 3</LoggerID>
<Object />
<ResponseCode>sample string 1</ResponseCode>
<TrackCode>sample string 6</TrackCode>
<MainAccountList>
<MainAccount>
<Description>sample string 2</Description>
<LedgerGroup>sample string 3</LedgerGroup>
<MainAccountID>sample string 1</MainAccountID>
<SubAccount>
<SubAccount>
<MainAccountID>sample string 2</MainAccountID>
<SubAccountID>sample string 1</SubAccountID>
<SubAccountName>sample string 3</SubAccountName>
</SubAccount>
<SubAccount>
<MainAccountID>sample string 2</MainAccountID>
<SubAccountID>sample string 1</SubAccountID>
<SubAccountName>sample string 3</SubAccountName>
</SubAccount>
</SubAccount>
</MainAccount>
<MainAccount>
<Description>sample string 2</Description>
<LedgerGroup>sample string 3</LedgerGroup>
<MainAccountID>sample string 1</MainAccountID>
<SubAccount>
<SubAccount>
<MainAccountID>sample string 2</MainAccountID>
<SubAccountID>sample string 1</SubAccountID>
<SubAccountName>sample string 3</SubAccountName>
</SubAccount>
<SubAccount>
<MainAccountID>sample string 2</MainAccountID>
<SubAccountID>sample string 1</SubAccountID>
<SubAccountName>sample string 3</SubAccountName>
</SubAccount>
</SubAccount>
</MainAccount>
</MainAccountList>
</MainAccountResponse>