Peru’s General Corporate Accounting Plan (Plan Contable General Empresarial — PCGE), issued by the Consejo Normativo de Contabilidad, mandates a standardised hierarchical chart of accounts for all enterprises subject to SUNAT and the MEF. Gestión Clínica implements this plan in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ttpullima/RomsoftBackEnd2021_v2/llms.txt
Use this file to discover all available pages before exploring further.
CON_CUENTA_CONTABLE table, where every account node (from the two-digit element level down to the analytical sub-account level) is stored with its official PCGE code and description. Cost centers (CON_CENTRO_COSTO) complement the chart of accounts by enabling the clinic to attribute expenses and revenues to specific operating units — outpatient clinic, pharmacy, emergency, imaging, laboratory, and so on — without altering the account structure itself. Together, these two reference datasets are required when posting journal entries, configuring automatic accounting rules for billing events, and producing the financial statements that SUNAT and SBS audits demand.
Both endpoints are HTTP POST and require an
Authorization: Bearer {token} header. The request body carries a DTO that is mapped but the GetAllActives business-layer call ignores its filter values — the full active list is always returned. Responses follow the standard JsonResponse envelope.CON_CUENTA_CONTABLE Endpoints
POST /api/CON_CUENTA_CONTABLE/GetAllActives
Returns all active chart-of-accounts entries. The controller accepts a CON_CUENTA_CONTABLEDTO body (mapped internally) but always delegates to CON_CUENTA_CONTABLEBL.Instancia.GetAllActives(), which returns the complete active set regardless of any filter values supplied.
Request body — CON_CUENTA_CONTABLEDTO
Primary key filter. Accepted by the mapper but not used as a filter in the current implementation — pass
0 or omit.PCGE account code filter. Accepted by the mapper but not applied as a filter in the current implementation — pass
null or omit.Account description filter. Accepted by the mapper but not applied as a filter in the current implementation — pass
null or omit.Because the current business layer always fetches the full active list, clients should cache or paginate the result on the front-end rather than calling this endpoint repeatedly with different filter values.
CON_CUENTA_CONTABLEDTO
Sample response
CON_CENTRO_COSTO Endpoints
POST /api/CON_CENTRO_COSTO/GetAllActives
Returns all active cost center records. Like CON_CUENTA_CONTABLE/GetAllActives, the controller accepts a DTO body that is mapped but the business layer always returns the complete active set.
Request body — CON_CENTRO_COSTODTO
Primary key. Accepted by the mapper but not applied as a filter — pass
0 or omit.Cost center code. Accepted by the mapper but not applied as a filter — pass
null or omit.Cost center description. Accepted by the mapper but not applied as a filter — pass
null or omit.CON_CENTRO_COSTODTO
Sample response
Common Response Envelope
Both controllers return responses in the standardJsonResponse wrapper:
| Field | Type | Description |
|---|---|---|
Success | boolean | true unless an unhandled exception occurred. |
Warning | boolean | true when a business rule prevented the operation (not used by these read-only endpoints). |
Message | string | Human-readable result or error message (Spanish). null on success. |
Data | array | Array of CON_CUENTA_CONTABLEDTO or CON_CENTRO_COSTODTO objects. |
Usage in Accounting Workflows
The following diagram shows how chart-of-accounts and cost-center references feed downstream accounting operations:| Reference Data | Used When |
|---|---|
CON_CUENTA_CONTABLE | Configuring automatic journal-entry templates for billing events (PCGE accounts per service type). |
CON_CUENTA_CONTABLE | Selecting debit/credit accounts when manually posting ledger entries. |
CON_CENTRO_COSTO | Tagging expense and revenue lines to a clinic department for management accounting reports. |
CON_CENTRO_COSTO | Filtering the trial balance and P&L by operating unit. |