Browse documentation

    Financial report endpoints

    Inputs, response fields, and limits for the read-only REST report preview.

    By Jacob Sheldon. Reviewed

    Included routes

    Method and pathPurposeImportant input
    GET /companies/{companyId}/reports/plProfit and loss for a date range.startDate and endDate.
    GET /companies/{companyId}/reports/balance-sheetBalance sheet snapshot.asOfDate.
    GET /companies/{companyId}/reports/cash-flowCash flow statement for a date range.startDate and endDate.
    GET /companies/{companyId}/reports/general-ledgerRecent posted journal entries.Date range, limit, and cursor.
    GET /companies/{companyId}/reports/ar-agingReceivables aging.Optional asOfDate; availability depends on company access.
    GET /companies/{companyId}/reports/ap-agingPayables aging.Optional asOfDate; availability depends on company access.

    Company and entity

    Every route includes a companyId and requires a credential for that company. Some reports accept entityId. If your account has multiple entities, the API can require you to select one.

    Dates and amounts

    • Use YYYY-MM-DD dates. P&L and cash flow take a start and end date; balance sheet and aging use an as-of date.
    • Financial statement responses include dollar totals and may also include integer minor-unit fields. Aging responses identify currency and the minor unit exponent for cents.
    • The general ledger returns items with nextCursor and hasMore. Its default page size is 200 and the maximum is 1,000.

    Common HTTP errors

    StatusMeaningNext step
    401 UnauthorizedThe request has no valid credential.Check the X-API-Key header and ask Median to confirm the credential remains active.
    403 ForbiddenThe key lacks company access or the reports:read scope.Confirm companyId and ask Median to check the provisioned access.
    422 Unprocessable EntityA requested entity or financial scope is missing, or an aging report cannot establish currency.Provide an authorized entity where required. Ask Median about a persistent currency error.

    Download the OpenAPI reference

    The file contains the six report routes above and their referenced schemas. It is a read-only preview; confirm access with Median before relying on an endpoint in production.

    Back to Developer docs

    Median developer documentation. Get help