GET v1/QuickBooks/Accounts?addTrustAccount={addTrustAccount}
Get a list of accounts from the QuickBooks API
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
addTrustAccount |
Boolean defines whether trusted account should be added or not |
boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
A list of accounts from the QuickBooks API
ActionResultDTOOfListOfAccountDTOName | Description | Type | Additional information |
---|---|---|---|
Result | Collection of AccountDTO |
None. |
|
CreatedBy | string |
None. |
|
EntityID | integer |
None. |
|
RowSource | string |
None. |
|
PolicyID | integer |
None. |
|
IsSuccess | boolean |
None. |
|
ErrorCode | string |
None. |
|
ErrorMessage | string |
None. |
|
InfoMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": [ { "Id": "sample string 1", "AccountParentId": "sample string 2", "Name": "sample string 3", "AccountType": "sample string 4", "DetailType": "sample string 5", "AccountNumber": "sample string 6", "OpeningBalance": 7.0, "CurrentBalance": 8.0, "Description": "sample string 9", "CurrentBalanceWithSubAccounts": 10.0, "OpeningBalanceDate": "2024-12-11T06:03:26.138046+00:00", "OpeningBalanceSpecified": true, "ExternalSystemId": "sample string 13", "CreateTime": "2024-12-11T06:03:26.138046+00:00", "CreatedBy": "sample string 15", "LastUpdatedTime": "2024-12-11T06:03:26.138046+00:00", "LastModifiedBy": "sample string 17", "Active": true, "ActiveSpecified": true, "Version": "sample string 20" }, { "Id": "sample string 1", "AccountParentId": "sample string 2", "Name": "sample string 3", "AccountType": "sample string 4", "DetailType": "sample string 5", "AccountNumber": "sample string 6", "OpeningBalance": 7.0, "CurrentBalance": 8.0, "Description": "sample string 9", "CurrentBalanceWithSubAccounts": 10.0, "OpeningBalanceDate": "2024-12-11T06:03:26.138046+00:00", "OpeningBalanceSpecified": true, "ExternalSystemId": "sample string 13", "CreateTime": "2024-12-11T06:03:26.138046+00:00", "CreatedBy": "sample string 15", "LastUpdatedTime": "2024-12-11T06:03:26.138046+00:00", "LastModifiedBy": "sample string 17", "Active": true, "ActiveSpecified": true, "Version": "sample string 20" } ], "CreatedBy": "sample string 1", "EntityID": 2, "RowSource": "sample string 3", "PolicyID": 4, "IsSuccess": true, "ErrorCode": "sample string 6", "ErrorMessage": "sample string 7", "InfoMessage": "sample string 8" }
application/xml, text/xml
Sample:
<ActionResultOfArrayOfAccountDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects"> <ErrorCode>sample string 6</ErrorCode> <ErrorMessage>sample string 7</ErrorMessage> <InfoMessage>sample string 8</InfoMessage> <IsSuccess>true</IsSuccess> <CreatedBy>sample string 1</CreatedBy> <EntityID>2</EntityID> <PolicyID>4</PolicyID> <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.QuickBooks"> <d2p1:AccountDTO> <d2p1:Active>true</d2p1:Active> <d2p1:ActiveSpecified>true</d2p1:ActiveSpecified> <d2p1:CreateTime>2024-12-11T06:03:26.138046+00:00</d2p1:CreateTime> <d2p1:CreatedBy>sample string 15</d2p1:CreatedBy> <d2p1:ExternalSystemId>sample string 13</d2p1:ExternalSystemId> <d2p1:LastModifiedBy>sample string 17</d2p1:LastModifiedBy> <d2p1:LastUpdatedTime>2024-12-11T06:03:26.138046+00:00</d2p1:LastUpdatedTime> <d2p1:Version>sample string 20</d2p1:Version> <d2p1:AccountNumber>sample string 6</d2p1:AccountNumber> <d2p1:AccountParentId>sample string 2</d2p1:AccountParentId> <d2p1:AccountType>sample string 4</d2p1:AccountType> <d2p1:CurrentBalance>8</d2p1:CurrentBalance> <d2p1:CurrentBalanceWithSubAccounts>10</d2p1:CurrentBalanceWithSubAccounts> <d2p1:Description>sample string 9</d2p1:Description> <d2p1:DetailType>sample string 5</d2p1:DetailType> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:OpeningBalance>7</d2p1:OpeningBalance> <d2p1:OpeningBalanceDate>2024-12-11T06:03:26.138046+00:00</d2p1:OpeningBalanceDate> <d2p1:OpeningBalanceSpecified>true</d2p1:OpeningBalanceSpecified> </d2p1:AccountDTO> <d2p1:AccountDTO> <d2p1:Active>true</d2p1:Active> <d2p1:ActiveSpecified>true</d2p1:ActiveSpecified> <d2p1:CreateTime>2024-12-11T06:03:26.138046+00:00</d2p1:CreateTime> <d2p1:CreatedBy>sample string 15</d2p1:CreatedBy> <d2p1:ExternalSystemId>sample string 13</d2p1:ExternalSystemId> <d2p1:LastModifiedBy>sample string 17</d2p1:LastModifiedBy> <d2p1:LastUpdatedTime>2024-12-11T06:03:26.138046+00:00</d2p1:LastUpdatedTime> <d2p1:Version>sample string 20</d2p1:Version> <d2p1:AccountNumber>sample string 6</d2p1:AccountNumber> <d2p1:AccountParentId>sample string 2</d2p1:AccountParentId> <d2p1:AccountType>sample string 4</d2p1:AccountType> <d2p1:CurrentBalance>8</d2p1:CurrentBalance> <d2p1:CurrentBalanceWithSubAccounts>10</d2p1:CurrentBalanceWithSubAccounts> <d2p1:Description>sample string 9</d2p1:Description> <d2p1:DetailType>sample string 5</d2p1:DetailType> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:OpeningBalance>7</d2p1:OpeningBalance> <d2p1:OpeningBalanceDate>2024-12-11T06:03:26.138046+00:00</d2p1:OpeningBalanceDate> <d2p1:OpeningBalanceSpecified>true</d2p1:OpeningBalanceSpecified> </d2p1:AccountDTO> </Result> <RowSource>sample string 3</RowSource> </ActionResultOfArrayOfAccountDTO>