Accounting Service
string · datestringstring · dateinteger · int32integer · int32
booleanbooleanstringstringinteger · int32stringbooleanbooleanbooleanbooleanstring · datestring · date
trial-balance
Operations addressed under /trial-balance — 1 operation.
get-trial-balance
GET
https://dg-sandbox.dgpays.com/accounting-service
/trial-balance
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Response body, read from the service source
The route declares its response as TrialBalanceDto.
| Field | Declared type | Nullable |
|---|---|---|
BeginDate | DateOnly | no |
EndDate | DateOnly | no |
TrialBalances | List<TrialBalanceItem> (collection) | no |
Member names are the service's declaration names.
Error codes this operation is known to raise
| Code | Status | Meaning | Message |
|---|---|---|---|
ERR_ACCTNG_175 | 400 | END_DATE_MUST_BE_BIGGER_BEGIN_DATE | 'endDate' must be bigger than 'beginDate'. |
ERR_ACCTNG_190 | 400 | DATE_CANNOT_BE_GREATER_THAN_TODAY | It is not allowed to query a future dated balance. |
ERR_ACCTNG_204 | 400 | EXCHANGE_RATE_CURRENCY_NOT_FOUND | Exchange rate is not found for '{0}'. |
ERR_ACCTNG_22 | 400 | END_LERGER_MUST_BE_BIGGER_BEGIN_LEDGER | 'ledgerCodeEnd' must be bigger than 'ledgerCodeBegin'. |
query Parameters
beginDatecurrencyNumberendDateexchangeRateTypeexchangeSpreadTypePermitted values — validated against the currency_rate_type parameter. The service rejects any other value.
| Value | Token | Labels |
|---|---|---|
1 | General | no label seeded |
2 | Special | no label seeded |
excludeYearEndClosingEntryisEvaluationDateTodayledgerCodeBeginledgerCodeEndledgerLevelorganizationCodeshowZeroBalancewithAccountNumberwithGLCodewithOrganizationCodeget-trial-balance › Responses
Success. The catalog declares this returns a single record. Of 25 operations in this state with a probeable route, 8 answered and 6 returned a single record — the other two returned a collection and a bare boolean.
beginDateendDateobject[]