POST api/glsubaccounts/search
POST api/glsubaccounts/search
Request Information
URI Parameters
None.
Body Parameters
GlSubAccountSearchViewModelName | Description | Type | Additional information |
---|---|---|---|
GlAccountIds |
|
Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "glAccountIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<GlSubAccountSearchViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.GlAccounts"> <GlAccountIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </GlAccountIds> </GlSubAccountSearchViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
List of GLSubAccountViewModel
Collection of GLSubAccountViewModelName | 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
Sample:
[ { "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
Sample:
<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>