Skip to main content

API Overview

Konsolidat's API is the set of Python functions in the konsol Frappe app that carry the @frappe.whitelist() decorator. Frappe serves each one at:

/api/method/<python module path>.<function>

For example konsol.api.epm_value is served at /api/method/konsol.api.epm_value, and konsol.close.signoff_api.sign at /api/method/konsol.close.signoff_api.sign.

The clients are the Excel add-in (=K.EPM() and the other K.* functions, the task pane), the Close app, the Frappe Desk, the frappectl CLI, and the Airbyte webhook. Any HTTP client can call the same methods.

On 2026-11-08 the app has 129 whitelisted methods (counted from the source by an AST walk of konsol/konsol/**/*.py, tests excluded, konsol 0cca0242: 121 carry @frappe.whitelist directly; the 8 under konsol/orchestrator/ (api.py, fx.py, resources.py) use that package's whitelist alias of the same decorator). The full inventory is at the end of this page. Eight methods have a page of their own; the 57 period-close methods are summarised on Period close API.

Base URL​

http://localhost:8069/api/method/<module>.<function>

In production, replace the host with your Frappe server (for example https://epm.yourcompany.com).

Authentication​

Log in once; Frappe sets a session cookie. Send it with every call.

curl -X POST http://localhost:8069/api/method/login \
-H "Content-Type: application/json" \
-d '{"usr": "admin@example.com", "pwd": "your_password"}'

Session check:

curl http://localhost:8069/api/method/frappe.auth.get_logged_user -b "cookies.txt"

Bearer token (Excel Online)​

Excel Online runs the add-in in an iframe where cookies are often blocked. POST konsol.api.excel_addin_auth with {"usr", "pwd"} logs in and returns {"token", "user"}. Send the token as the X-Konsolidat-Token header; a before_request hook (konsol/excel_addin_auth.py) makes a Guest request act as that user. konsol.api.excel_addin_whoami returns {"user": <name or null>} for either a cookie session or a token; POST konsol.api.excel_addin_logout revokes a token.

Guest methods​

Six methods have allow_guest=True and need no login: health, excel_addin_auth, excel_addin_whoami, excel_addin_logout, airbyte_sync_complete and try_demo (the demo-mode login, below). The Airbyte webhook is guest-callable only with the shared secret in the X-Webhook-Secret header (EPM Settings.webhook_secret); otherwise it needs a session. Every other method needs a logged-in user.

HTTP verbs​

  • A method declared methods=["POST"] accepts POST only. A method declared methods=["GET"] accepts GET only. A method declared with neither accepts both.
  • Frappe rolls back the database at the end of a GET request. In konsol, every method that writes is therefore POST-only (konsol/CLAUDE.md). Every method under konsol/close/ declares exactly one verb; konsol/tests/test_close_api_contract.py fails the build if one does not.
  • A GET-only method answers 403 to a POST. frappe.xcall defaults to POST, so a Desk script must pass "GET" explicitly (konsol HANDOFF.md, 5 Nov 2026).
  • POST methods in konsol/api.py read a raw JSON body (frappe.request.get_data). The close methods take ordinary Frappe form or JSON arguments that map to the function's parameters.

Roles and entity scope​

  • Role gate. Every close method opens with frappe.only_for((...roles...)); a user outside the tuple gets PermissionError (HTTP 403). Admin tools (apply_schema, chart upload, pipeline runs) use konsol.schema_lifecycle.check_epm_admin (EPM Admin, System Manager or Administrator). The Period close API page lists the roles per method.
  • Entity scope. Reads that go straight to ClickHouse never pass Frappe's permission layer, so konsol.entity_permissions.assert_entity_access (one entity) or entity_read_scope (per batch item) is called instead. The allow-list comes from the user's User Permissions on Entity, expanded down the tree. No assignment means unrestricted, except for an Entity Accountant (sees nothing until assigned) or a site with EPM Settings.restrict_entities_by_default. System Manager and Administrator always see everything.
  • Budget writes also check the account (through EPM Settings.account_permission_doctype) and permission-controlled dimensions; each check is a no-op until configured.

Request flow​

sequenceDiagram
participant Client as Excel add-in / HTTP client
participant Frappe as Frappe (konsol.api)
participant CH as ClickHouse

Client->>Frappe: POST /api/method/konsol.api.epm_batch
Frappe->>Frappe: per item: year, period, Dataset, measure, dimensions, entity scope
Frappe->>CH: one parameterised SELECT per (dataset, measure, dimension set, scenario_id, layer)
CH-->>Frappe: rows per entity / year / account / period
Frappe-->>Client: {"message": {"values": [...], "errors": [...]}}

konsol/api.py talks to ClickHouse over HTTP itself (_clickhouse_query, konsol.clickhouse.execute) with ClickHouse parameter binding ({name:Type} in SQL, param_name on the wire). There is no semantic-layer service between them.

Dataset resolution​

A read names a Dataset (doctype Dataset, module EPM) either by fact (its fact_name, case-insensitive; wins when both are given) or by scenario (its scenario_key; default actuals). The Dataset's clickhouse_table is the table queried. Its fact_measures and fact_dimensions child tables say which measures (intersected with Published Measure records) and dimensions a read may name. A read that names no measure takes the Dataset's default_measure; a Dataset with none refuses the read and lists its measures.

Period tokens (1..n, P07, CLS, Q1..Q4, H1, H2, FY) resolve against the calendar declared for that year in EPM Fiscal Year, not a constant; see epm_value.

Error handling​

Frappe wraps a return value as {"message": ...}. A frappe.throw comes back as HTTP 417 (ValidationError) with exc_type and _server_messages:

{
"exc_type": "ValidationError",
"_server_messages": "[\"Invalid scenario 'forecast'. Allowed: actuals, budget, variance\"]"
}

A PermissionError is HTTP 403. Two budget methods set their own status: 409 (budget_cell_save conflict) and 423 (Budget Cycle locked).

MessageSource
Invalid scenario '{x}'. Allowed: ...No Dataset has scenario_key = {x}; the list is every scenario_key
Invalid fact '{x}'. Allowed: ...No Dataset has fact_name = {x}; the list is every fact_name
Fact '{x}' declares no Default Measure, so a read must name one. Its measures are: ...Blank measure on a Dataset without default_measure
Invalid measure '{m}' for fact '{x}'. Allowed: ...Measure not in the Dataset's measures intersected with Published Measures
Invalid dimension '{d}' for fact '{x}'. Allowed: ...Dimension not in the Dataset's dimensions
Invalid year / Invalid year '{y}'Batch item with a missing, non-integer or non-positive year
... is not a declared period ... (text from the resolver)Period token not in the year's declared calendar
Batch size {n} exceeds maximum of 2000Too many items; the whole request is refused
Not permitted to access entity '{e}'Entity outside the caller's allow-list
ClickHouse query timeout / ClickHouse connection failed30 s timeout; ClickHouse unreachable

The allowed-value lists are computed from the registry at request time, so adding a Dataset, Measure or Dimension changes the messages with no code change.

Batch size and query grouping​

MAX_BATCH_SIZE = 2000 items per epm_batch call. The add-in collects K.* cells into batches of at most 2000.

The batch groups items by (dataset, measure, set of dimension names, scenario_id, layer) and issues one SELECT ... WHERE ... IN (...) per group, with fiscal_period selected and grouped so each cell reads the sum of its own periods. The period is deliberately not part of the key (konsol#231): a year of monthly cells for one account set is one query, not twelve.

Inventory​

One row per whitelisted method. Verb is what the decorator declares (GET/POST means no restriction). Access is the gate the function applies on top of login. Document methods (self methods on a doctype class) are called from the Desk form or with /api/method/run_doc_method (dt, dn, method), not by module path.

konsol/api.py — values, budgets, hierarchies, add-in​

MethodVerbAccessWhat it doesPage
konsol.api.healthGET/POSTGuestFrappe and ClickHouse health: status ok / degraded / downhealth
konsol.api.epm_valueGET/POSTSession; entity scopeOne value for entity, year, period, accountepm_value
konsol.api.epm_batchPOSTSession; entity scope per itemUp to 2000 values in one callepm_batch
konsol.api.budget_savePOSTSession; budget write scopeSave one budget line for several periodsbudget_save
konsol.api.budget_cell_savePOSTSession; budget write scopeSave one cell, with optimistic lockingbudget_cell_save
konsol.api.budget_save_batchPOSTSession; budget write scopeSave many lines; per-item errorsbudget_save_batch
konsol.api.get_hierarchy_treeGET/POSTSessionConsolidation Group tree with ownership as of a dateHierarchies
konsol.api.get_reporting_hierarchy_treeGET/POSTSessionA Reporting Hierarchy as a tree, as of a dateHierarchies
konsol.api.excel_addin_authPOSTGuestLog in with usr/pwd; returns a bearer token for Excel Online—
konsol.api.excel_addin_whoamiGET/POSTGuest{"user": name or null} from cookie or token—
konsol.api.excel_addin_logoutPOSTGuestRevoke a bearer token—
konsol.api.list_report_templatesGETSessionReport templates for the add-in's Apply pane—
konsol.api.build_cell_mapPOSTSession; entity scopeCompile a template (template_id, entity, year, scenario_id) into an Excel cell map of formulas—
konsol.api.build_snapshotPOSTSession; entity scopeValues-only cell map for trial_balance_long (period_from, period_to in 1..12)—
konsol.api.airbyte_sync_completePOSTGuest with X-Webhook-Secret, or sessionAirbyte webhook; records the last sync on EPM Settings and the matching Connector—
konsol.api.connector_healthGET/POSTRead on Connector HealthOne row per connector: status, lag, counts, last error—
konsol.api.fx_ratesGET/POSTSessionGoverned group exchange rates; filters from_currency, to_currency, rate_type, fiscal_year, fiscal_period, as_of, limit (1..5000, default 500)—

Configuration and schema — konsol/cli_api.py, konsol/schema_apply.py​

MethodVerbAccessWhat it doesPage
konsol.cli_api.apply_schema_apiPOSTEPM Admin (checked in apply_schema)Apply the published configuration: dbt vars, ClickHouse DDL, budget fields; run_dbt=1 queues a build—
konsol.cli_api.get_schema_status_apiGET/POSTSessionRegistry counts and pipeline build-request status—
konsol.cli_api.export_config_apiGET/POSTSessionDimensions, measures, datasets and connectors as one bundle (status filter)—
konsol.cli_api.diff_config_apiGET/POSTSessionDiff a bundle (spec, JSON) against the live site—
konsol.cli_api.apply_config_apiPOSTSessionApply a bundle (spec, publish, prune)—
konsol.schema_apply.apply_schemaPOSTEPM Admin / System ManagerThe function apply_schema_api wraps; also the Apply Schema button—

Group chart — konsol/chart_upload.py, konsol/group_chart.py​

MethodVerbAccessWhat it doesPage
konsol.chart_upload.check_chart_filePOSTEPM Admin with create on Main AccountReport what loading a chart file would do; writes nothing—
konsol.chart_upload.load_chartPOSTsameLoad the file, all or nothing, as Draft Main Accounts—
konsol.chart_upload.publish_chartPOSTsamePublish every Draft of one chart in one transaction, one rebuild—
konsol.group_chart.get_chartGETSession (list permissions apply)The Main Accounts the user may read, parent first—

Trial balance upload — konsol/tb_bulk.py​

MethodVerbAccessWhat it doesPage
konsol.tb_bulk.check_filePOSTEPM Admin (submit on Trial Balance Submission, create on Trial Balance Upload)Create a Trial Balance Upload for a file and report on it; loads nothing—
konsol.tb_bulk.check_uploadPOSTsame, plus write on the uploadRe-check a saved upload in place (Desk "Check file")—
konsol.tb_bulk.loadPOSTsameRe-check, then queue the load of every ready entity-period; resumes a partly loaded upload—
konsol.tb_bulk.upload_optionsGETSessionThe site's default Amount Basis and the exact basis strings—
konsol.tb_bulk.get_uploadGETRead on the uploadOne upload's report and status—
konsol.tb_bulk.recent_uploadsGETSession (list permissions apply)Latest uploads (limit, max 50) with derived status—

Rates, calendar, trial balances​

MethodVerbAccessWhat it doesPage
konsol.group_rates.prefill_from_erpPOSTEPM Analyst / EPM Admin / System ManagerDraft Closing and Average rates for a period from the ERP quotes—
konsol.fiscal_calendar.declare_years_in_usePOSTSystem ManagerDeclare an EPM Fiscal Year for every year in use; dry_run defaults to true—
konsol.consolidation.doctype.trial_balance_submission.trial_balance_submission.set_amount_basisPOSTEPM AdminDeclare the Amount Basis of already-submitted trial balances (names, amount_basis)—
konsol.consolidation.doctype.trial_balance_submission.trial_balance_submission.reland_submittedPOSTEPM AdminCompare every submitted trial balance with the warehouse claims and landed row counts and return {applied, reland, orphans, kept, matched, not_submitted, relanded, failed, orphans_removed, build_for}; writes nothing unless apply is set; with apply it queues the re-land job on the long queue and returns {queued: true, applied: false} instead (names, apply, remove_orphans; konsol#283)—
konsol.consolidation.doctype.historical_equity_rate.historical_equity_rate.presentation_currenciesGET/POSTSession; read on Consolidation GroupThe currencies a Historical Equity Rate recorded under consolidation_group may convert into: [(group code, reporting currency)] for the group's own node and every ancestor, nearest first—

Close checks and deals — konsol/consolidation/doctype/...​

MethodVerbAccessWhat it doesPage
konsol.consolidation.doctype.assertion_run.assertion_run.trigger_close_runPOSTEPM Admin / EPM Analyst / System ManagerCreate an Assertion Run and queue the checks; refuses a period that is not Open or a run already in progressclose
konsol.consolidation.doctype.assertion_run.assertion_run.sign_off_closePOSTWrite on Assertion RunSign off a run: green signs, amber needs acknowledgement, red needs override_reason from EPM Admin / System Managerclose
konsol.consolidation.doctype.business_combination.business_combination.get_balances_from_trial_balancePOSTWrite on the Business CombinationFill a Draft deal's acquired balance sheet from the warehouse trial balance—

Pipeline — konsol/orchestrator/{api,fx,resources}.py, konsol/pipeline/doctype/pipeline_run/pipeline_run.py​

MethodVerbAccessWhat it doesPage
konsol.orchestrator.api.start_runGET/POSTEPM AdminCreate a Pipeline Run (definition, params) and queue it; one active run at a time—
konsol.orchestrator.api.get_runGET/POSTSessionRun snapshot with its steps—
konsol.orchestrator.api.retry_stepGET/POSTEPM AdminRe-arm a failed step and its descendants, re-queue—
konsol.orchestrator.api.resume_runGET/POSTEPM AdminRestart a finished run from a step downward—
konsol.orchestrator.api.launch_optionsGET/POSTSessionOption lists for the launch form (definitions, fiscal years, periods, scopes)—
konsol.orchestrator.api.cancel_runGET/POSTEPM AdminRequest cancellation of a run—
konsol.orchestrator.fx.get_fx_ratesGET/POSTSessionRead-only: FX rates for the pipeline SPA, filtered and normalised (**filters)—
konsol.orchestrator.resources.list_resourcesGET/POSTSessionRead-only: the resolvable resources for the pipeline SPA (params)—
konsol.pipeline.doctype.pipeline_run.pipeline_run.trigger_pipelineGET/POSTEPM AdminOlder entry point: create a Pipeline Run and queue run_pipeline—

Setup, handbook and demo — konsol/setup.py, konsol/handbook.py, konsol/demo_mode.py​

MethodVerbAccessWhat it doesPage
konsol.setup.statusGETEPM Admin / System ManagerThe site's setup checklist, read-only: {done, total, steps}; a step whose reader fails is not done and says why—
konsol.handbook.get_handbookGETEPM Admin / EPM Analyst / EPM User / Entity Accountant / System ManagerThe product guide pages and the caller's readable published site pages for audience (blank: all): {audiences, audience, my_audiences, start_here, pages, problems, can_edit}—
konsol.demo_mode.try_demoGETGuest; 10 requests per 60 s per client IPLog the visitor in as the site's demo_user and redirect to /desk; answers 404 when the demo_user key is unset or names a refused user—

Desk — konsol/desk/connections.py​

MethodVerbAccessWhat it doesPage
konsol.desk.connections.get_open_countGET/POSTSessionReplacement for Frappe's linked-document counts on a form—

Period close — konsol/close/*_api.py​

Every method here declares one verb and opens with frappe.only_for(...). Details, roles and parameters: Period close API.

MethodVerbAccessWhat it doesPage
konsol.close.period_api.get_contextGETAll close rolesThe user, every Regular period's state, the landing periodclose
konsol.close.mywork_api.get_my_workGETAll close rolesThe user's work items, ranked blocking / todo / waitingclose
konsol.close.freshness_api.get_freshnessGETAll close rolesWhether the consolidated numbers are currentclose
konsol.close.grid_api.get_period_gridGETGroup rolesThe period grid: rows, counts, deadlines, overdue flagsclose
konsol.close.grid_api.get_readinessGETGroup rolesThe readiness checklist, read from the sign-off gateclose
konsol.close.tb_api.check_tbPOSTEPM Admin / Entity Accountant / System ManagerCheck a trial-balance CSV; writes nothingclose
konsol.close.tb_api.submit_tbPOSTsameSubmit a trial-balance CSV, replacing the one submittedclose
konsol.close.tb_read_api.my_tbsGETAll close rolesThe period's entities with their TB statusclose
konsol.close.tb_read_api.tb_compareGETAll close rolesThis period's TB against the previous one, by accountclose
konsol.close.checks_api.get_checksGETAll close rolesThe period's checks: latest run, staleness, failures, warningsclose
konsol.close.checks_api.run_checksPOSTEPM Admin / EPM Analyst / System ManagerStart the close checks (calls trigger_close_run)close
konsol.close.ic_api.get_icGETGroup rolesIntercompany pairs, differences and unmatched rowsclose
konsol.close.ic_api.send_backPOSTEPM Analyst / EPM Admin / System ManagerSend an over-tolerance pair back to both entitiesclose
konsol.close.ic_balance_api.get_ic_balancesGETGroup rolesIC Balances for the period and the rule gapclose
konsol.close.ic_balance_api.save_ic_balancePOSTEPM Analyst / EPM Admin / System ManagerDraft or edit an IC Balanceclose
konsol.close.journal_api.get_journalsGETGroup rolesConsolidation Journals of the periodclose
konsol.close.journal_api.save_journalPOSTEPM Analyst / System ManagerDraft or edit a Consolidation Journalclose
konsol.close.journal_api.send_for_approvalPOSTEPM Analyst / System ManagerMove a draft journal to Pending Approvalclose
konsol.close.rates_api.get_ratesGETGroup rolesThe period's group exchange rate gridclose
konsol.close.rates_api.save_ratePOSTEPM Analyst / EPM Admin / System ManagerDraft a Group Exchange Rate or a correctionclose
konsol.close.rates_api.delete_ratePOSTEPM Analyst / EPM Admin / System ManagerDelete one draft correctionclose
konsol.close.rates_api.get_pendingGETGroup rolesPending Historical Equity Rate and Ownership Period draftsclose
konsol.close.rates_api.get_ownershipGETGroup rolesOwnership as of the period's first dayclose
konsol.close.rates_api.preview_ownership_changeGETGroup rolesRefusals and effect of an ownership change; writes nothingclose
konsol.close.rates_api.save_ownership_changePOSTEPM Analyst / EPM Admin / System ManagerDraft an Ownership Period changeclose
konsol.close.commentary_api.save_commentaryPOSTEPM Admin / EPM Analyst / System ManagerSave a Statement Commentary, with a staleness checkclose
konsol.close.statement_api.get_statementGETGroup rolesThe consolidated statement for a group and periodclose
konsol.close.statement_api.get_drillGETGroup rolesOne heading's drill-downclose
konsol.close.statement_api.export_statementGETGroup rolesThe statement and every drill as an .xlsx downloadclose
konsol.close.approvals_api.get_queueGETGroup rolesThe caller's approval queueclose
konsol.close.approval_api.approve_modeGETAll close rolesWhat the caller may do with a document from its Actions menuclose
konsol.close.approval_api.approvePOSTEPM Admin / System ManagerApprove a document awaiting approvalclose
konsol.close.approval_api.rejectPOSTEPM Admin / System ManagerReject a document awaiting approval, with a reasonclose
konsol.close.signoff_api.get_signoffGETAll close rolesThe period's sign-off summary and what the caller may doclose
konsol.close.signoff_api.signPOSTEPM Admin / System ManagerSign off the period's latest runclose
konsol.close.signoff_api.rejectPOSTEPM Admin / System ManagerReject the period's signature, with a reasonclose
konsol.close.signoff_api.declare_tb_exceptionPOSTEPM Admin / System ManagerDeclare that an entity has no trial balance for the periodclose
konsol.close.signoff_api.close_periodPOSTEPM Admin / System ManagerClose the period through its EPM Fiscal Yearclose
konsol.close.signoff_api.reopen_periodPOSTEPM Admin / System ManagerReopen the period, with a reasonclose
konsol.close.remind_api.remindPOSTEPM Admin / EPM Analyst / System ManagerRemind an entity's people about tb or icclose
konsol.close.trail_api.get_trailGETGroup rolesThe period's audit trail, filteredclose
konsol.close.trail_api.export_trail_csvGETGroup rolesThe filtered trail as a CSV downloadclose
konsol.close.overview_api.close_statusPOSTGroup rolesNumber card: the current period close statusclose
konsol.close.overview_api.trial_balances_inPOSTGroup rolesNumber card: trial balances in / expectedclose
konsol.close.overview_api.waiting_for_mePOSTGroup rolesNumber card: documents the caller may approve nowclose
konsol.close.overview_api.ic_over_tolerancePOSTGroup rolesNumber card: intercompany pairs over toleranceclose
konsol.close.overview_api.tb_exceptionsPOSTGroup rolesNumber card: TB Exceptions declared for the periodclose
konsol.close.overview_api.warehouse_freshnessPOSTGroup rolesNumber card: whether the consolidated numbers are currentclose
konsol.close.overview_api.get_checklistGETGroup rolesThe current period close checklistclose
konsol.close.charts_api.tb_submission_progressPOSTGroup rolesChart: TB submission progress by periodclose
konsol.close.charts_api.net_sales_and_resultPOSTGroup rolesChart: consolidated net sales and net result by periodclose
konsol.close.charts_api.top_ic_differencesPOSTGroup rolesChart: the ten largest IC differences by pairclose
konsol.close.charts_api.approvals_backlogPOSTGroup rolesChart: documents waiting for approval, by typeclose
konsol.close.charts_api.closing_vs_average_ratePOSTGroup rolesChart: closing and average rate of the top currenciesclose
konsol.close.charts_api.entities_by_statusPOSTGroup rolesChart: entities by statusclose
konsol.close.charts_api.days_to_closePOSTGroup rolesChart: days from period end to sign-offclose
konsol.close.mywork_board_api.get_boardGETAll close rolesMy Work laid out as board columnsclose

"All close roles" is EPM Admin, EPM Analyst, Entity Accountant, EPM User, System Manager. "Group roles" is the same tuple without Entity Accountant.

Document methods (called through the Desk form or run_doc_method)​

MethodVerbAccessWhat it doesPage
konsol.epm.doctype.dataset.dataset.publishGET/POSTEPM AdminPublish a Dataset: apply schema (DDL, dbt source) and request a rebuild—
konsol.epm.doctype.dataset.dataset.unpublishGET/POSTEPM AdminSet a Dataset Inactive; never drops the ClickHouse table—
konsol.epm.doctype.dimension.dimension.publishGET/POSTEPM AdminPublish a Dimension; the save applies the schema once—
konsol.epm.doctype.dimension.dimension.unpublishGET/POSTEPM AdminSet a Dimension Inactive—
konsol.epm.doctype.measure.measure.publishGET/POSTEPM AdminPublish a Measure—
konsol.epm.doctype.measure.measure.unpublishGET/POSTEPM AdminSet a Measure Inactive—
konsol.governed_reference.publishGET/POSTEPM AdminBase-class Publish for governed reference doctypes (Main Account, Dimension Mapping, Cash Flow Category, Reporting Hierarchy, Intercompany Account): save and request a governed rebuild—
konsol.governed_reference.unpublishGET/POSTEPM AdminBase-class Unpublish for the same doctypes—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.generate_periodsPOSTEPM Admin / System ManagerReplace the period table with the rows the year's pattern gives—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.close_periodPOSTRoles allowed by fiscal_status_model.transition_problemClose one period row; checks group rates first—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.lock_periodPOSTRoles allowed by fiscal_status_model.transition_problemLock one period row—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.reopen_periodPOSTRoles allowed by fiscal_status_model.transition_problemReopen one period row of an Open year, with a reason—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.close_yearPOSTRoles allowed by fiscal_status_model.transition_problemClose the year and every Open row; all or nothing on rates and sign-off—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.lock_yearPOSTRoles allowed by fiscal_status_model.transition_problemLock the year and every Open or Closed row—
konsol.epm.doctype.epm_fiscal_year.epm_fiscal_year.reopen_yearPOSTRoles allowed by fiscal_status_model.transition_problemReopen the year, with a reason; rows stay as they are—
konsol.pipeline.doctype.connector.connector.test_extract_connectionGET/POSTWrite on the ConnectorValidate extract credentials against the ERP—
konsol.pipeline.doctype.connector.connector.test_writeback_connectionGET/POSTWrite on the ConnectorValidate write-back credentials against the ERP—
konsol.pipeline.doctype.connector.connector.provision_airbyteGET/POSTWrite on the ConnectorTest extract credentials, then create or update the Airbyte source and connection—

For document methods, Frappe first checks the caller's read permission on the document; the gates named in "Access" are what the method then applies itself (check_epm_admin on every publish/unpublish; the period and year transitions ask fiscal_status_model.transition_problem which roles may make each move).

Next steps​