GET api/glaccounts/{glAccountId}/glsubaccounts?subAccountName={subAccountName}
Get all subaccounts for a glAccount
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| glAccountId |
(Required) |
integer |
Required |
| subAccountName |
(Optional)Limits the results by subAccountName. |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
Retuns list of subaccounts
Collection of GLSubAccountViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| GLSubAccountId |
GL Sub Account Id |
integer |
None. |
| GLAccountId |
GL Account Id |
integer |
None. |
| SubAccountName |
Sub Account Name |
string |
Required Matching regular expression pattern: ^[a-zA-Z0-9\s]+$ Max length: 50 |
| Description |
Description |
string |
Max length: 100 |
Response Formats
application/json, text/json
[
{
"glSubAccountId": 1,
"glAccountId": 2,
"subAccountName": "sample string 3",
"description": "sample string 4"
},
{
"glSubAccountId": 1,
"glAccountId": 2,
"subAccountName": "sample string 3",
"description": "sample string 4"
}
]
application/xml, text/xml
<ArrayOfGLSubAccountViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
<GLSubAccountViewModel>
<Description>sample string 4</Description>
<SubAccountName>sample string 3</SubAccountName>
<GLAccountId>2</GLAccountId>
<GLSubAccountId>1</GLSubAccountId>
</GLSubAccountViewModel>
<GLSubAccountViewModel>
<Description>sample string 4</Description>
<SubAccountName>sample string 3</SubAccountName>
<GLAccountId>2</GLAccountId>
<GLSubAccountId>1</GLSubAccountId>
</GLSubAccountViewModel>
</ArrayOfGLSubAccountViewModel>