Method GetGlAccounts
GetGlAccounts(String, SelectionSettingsContract, String, String, String)
Read general ledger accounts
Declaration
GlAccountsResultContract GetGlAccounts(string connectionId, SelectionSettingsContract selectionSettings, string companyNumber, string fiscalYear, string glAccountNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
SelectionSettingsContract | selectionSettings | Represents data reading settings |
System.String | companyNumber | Optional: Filter general ledger accounts with the company number, default: |
System.String | fiscalYear | Optional: Filter general ledger accounts with the fiscal year, format: yyyy, default: |
System.String | glAccountNumber | Optional: Filter general ledger accounts with the general ledger account number, default: |
Returns
Type | Description |
---|---|
GlAccountsResultContract | Returns a result package with all necessary informations |
Examples
PUT http://YourServerName/InfoShare/Json/Invoice/GetGlAccounts
Example for read general ledger accounts.{
"connectionId": "635f1e50-2a02-4b21-b0b1-6bad36228131",
"selectionSettings":
{
"Language": "de",
"FetchCount": -1,
"Offset": -1,
"FieldToOrderBy": ""
},
"companyNumber": null,
"fiscalYear": null,
"glAccountNumber": null
}
Response:
{
"GlAccounts": [
{
"Blocked": "No",
"BlockedFrom": "190001",
"CompanyNumber": "100",
"CostCenterInput": "Optional",
"CostUnitInput": "Optional",
"CreationPoint": "2020-08-28T09:30:47",
"DefaultCostCenterNumber": "",
"DefaultCostUnitNumber": "",
"DefaultInvestNumber": "",
"DefaultProjectNumber": "",
"DefaultServiceTypeNumber": "",
"DefaultTaxCode": "",
"DefaultVehicleNumber": null,
"Description": "sdvdfvsdvfd3432",
"FiscalYear": "2020",
"GLAccountNumber": "1681691",
"GLAccountType": "Expense",
"InvestInput": "Optional",
"IsEdited": false,
"ObligatoryDebitCredit": "Empty",
"PersonInCharge": "",
"PostTextInput": "Optional",
"ProjectInput": "Optional",
"QuantitiesInput": "Optional",
"ServiceTypeInput": "Optional",
"ShortDescription": "4545",
"VehicleInput": "Optional"
},
{
"Blocked": "No",
"BlockedFrom": "190001",
"CompanyNumber": "100",
"CostCenterInput": "Optional",
"CostUnitInput": "Optional",
"CreationPoint": "2020-08-28T09:53:42",
"DefaultCostCenterNumber": "",
"DefaultCostUnitNumber": "",
"DefaultInvestNumber": "",
"DefaultProjectNumber": "",
"DefaultServiceTypeNumber": "",
"DefaultTaxCode": "",
"DefaultVehicleNumber": null,
"Description": "ssss",
"FiscalYear": "2020",
"GLAccountNumber": "26355548",
"GLAccountType": "Expense",
"InvestInput": "Optional",
"IsEdited": false,
"ObligatoryDebitCredit": "Empty",
"PersonInCharge": "",
"PostTextInput": "Optional",
"ProjectInput": "Optional",
"QuantitiesInput": "Optional",
"ServiceTypeInput": "Optional",
"ShortDescription": "999999",
"VehicleInput": "Optional"
},
{
"Blocked": "No",
"BlockedFrom": "190001",
"CompanyNumber": "100",
"CostCenterInput": "Optional",
"CostUnitInput": "Optional",
"CreationPoint": "2020-08-28T12:04:08",
"DefaultCostCenterNumber": "",
"DefaultCostUnitNumber": "",
"DefaultInvestNumber": "",
"DefaultProjectNumber": "",
"DefaultServiceTypeNumber": "",
"DefaultTaxCode": "",
"DefaultVehicleNumber": null,
"Description": "55585",
"FiscalYear": "2020",
"GLAccountNumber": "51618468",
"GLAccountType": "Expense",
"InvestInput": "Optional",
"IsEdited": false,
"ObligatoryDebitCredit": "Empty",
"PersonInCharge": "",
"PostTextInput": "Optional",
"ProjectInput": "Optional",
"QuantitiesInput": "Optional",
"ServiceTypeInput": "Optional",
"ShortDescription": "test",
"VehicleInput": "Optional"
},
...
..
.
],
"HasEditedEntries": false,
"RequestResult":
{
"Error": null,
"Messages": null,
"Result": "Valid"
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |