Accounting Service
string · uuid · requiredstringinteger · int32integer · int32
stringstringstringstring · date
financial-statements
Operations addressed under /financial-statements — 1 operation.
calculate-financial-statement
POST
https://dg-sandbox.dgpays.com/accounting-service
/financial-statements/calculate
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 CalculateFinancialStatementDto.
| Field | Declared type | Nullable |
|---|---|---|
FinancialStatementName | string | no |
ReportDate | DateOnly | no |
CurrencyNumber | string | no |
StatementItems | List<FinancialStatementItem> (collection) | no |
Member names are the service's declaration names.
Error codes this operation is known to raise
| Code | Status | Meaning | Message |
|---|---|---|---|
ERR_ACCTNG_221 | 400 | FINANCIAL_STATEMENT_TEMPLATE_IS_NOT_FOUND | Financial statement template is not found with the given id: '{0}'. |
ERR_ACCTNG_226 | 400 | FINANCIAL_STATEMENT_CANNOT_BE_CREATED_BECAUSE_TEMPLATE_HAS_NO_DETAIL_WHOSE_CALCULATION_RESOURCE_IS_LEDGER | Template has no detail whose calculation resource is ledger, financial statement cannot be created. |
calculate-financial-statement › Request Body
object[] · required
financialStatementTemplateIdcurrencyNumberexchangeRateTypeexchangeSpreadTypePermitted 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 |
organizationCodecalculate-financial-statement › 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.
currencyNumberfinancialStatementNamereportDateobject[]