Open
Conversation
- Add docs/platforms/stellar-disbursement-platform/admin-guide/user-interface/reports.mdx describing the Reports page, Wallet Statement export, and Individual Transaction Notice export, including period selection, date range, transaction search, optional notes, and PDF layout (header, statement period, account summary, transactions table; transaction notice summary and details). - Add three screenshot assets under static/assets/SDP/: - SDP49.1.png: Reports page overview (Wallet Statement and Individual Transaction Notice). - SDP49.2.png: Sample Wallet Statement PDF (account summary and transactions). - SDP49.3.png: Sample Transaction Notice PDF (transaction summary and details).
- OpenAPI: Add Reports tag and paths in main.yaml (and bundled.yaml):
- GET /reports/statement — wallet statement PDF (date range, asset filter, base_url).
- GET /reports/payment/{id} — single-payment transaction notice PDF (optional internal_notes, base_url).
- API docs: Add reports.tag.mdx (Reports category index) and endpoint pages
get-statement-export.api.mdx and get-payment-export.api.mdx with request/response
details and "Fields in the generated PDF" tables grouped by source (request, context,
calculated, DB, Horizon) with code-style entity names.
- Sidebar: Add Reports category in sidebar.ts with "Get Statement (PDF)" and
"Get Payment Transaction Notice (PDF)".
- Clarified how to enable the Reports menu item for specific organizations using a pipe-separated list of names. - Updated instructions for setting the **frontend** environment variable `REACT_APP_ENABLE_REPORTS_FEATURE` to control visibility based on organization names.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds documentation for the Stellar Disbursement Platform (SDP) Reports feature: Admin Guide content for the Reports UI and API reference for the two PDF export endpoints (wallet statement and payment transaction notice). It also documents the optional Reports feature flag and reorders the API Reference sidebar.
Branch:
sdp-report-generationScreen.Recording.2026-02-13.at.17.37.42.mov
1. Admin Guide — Reports UI
New file:
docs/platforms/stellar-disbursement-platform/admin-guide/user-interface/reports.mdx/reportsroute are optional and controlled by the frontend env varREACT_APP_ENABLE_REPORTS_FEATURE(when unset orfalse, Reports is hidden).statement_YYYYMMDD-YYYYMMDD.pdf.transaction_notice_{paymentID}.pdf.STELLAR_EXPERT_URL(default testnet if unset).New assets:
static/assets/SDP/SDP49.1.png— Reports page overview (Wallet Statement + Individual Transaction Notice).static/assets/SDP/SDP49.2.png— Sample Wallet Statement PDF (account summary and transactions).static/assets/SDP/SDP49.3.png— Sample Transaction Notice PDF (summary and details).2. API Reference — Reports
New file:
docs/platforms/stellar-disbursement-platform/api-reference/reports.tag.mdxDocCardListfor the Reports endpoints.New file:
docs/platforms/stellar-disbursement-platform/api-reference/get-statement-export.api.mdx/reports/statement.from_date,to_date(required),asset_code(optional),base_url(optional).from_date,to_date,ending_balance,total_credits,Organizations,Payment.status_history,ReceiverWallet.Receiver,Payment,Assets, HorizonGetBalances, etc.).from_date,to_date).New file:
docs/platforms/stellar-disbursement-platform/api-reference/get-payment-export.api.mdx/reports/payment/{id}.internal_notes(max 500 chars); gofpdf, A4, payment/disbursement/org branding.id(path),internal_notes(query, optional),base_url(query, optional).internal_notes,Organizations,Payment,Payment.Asset,Payment.status_history,ReceiverWallet.StellarMemo,ReceiverWallet.Receiver,ReceiverWallet,ReceiverWallet.Wallet,Payment.Disbursement,Disbursement.status_history,AuthManager.GetUsersByID,TransactionDetail.Memo,TransactionDetail.FeeCharged,FeeCharged,stroops, status labelsDRAFT→Created,STARTED→Approved).3. API Reference — Sidebar
Modified:
docs/platforms/stellar-disbursement-platform/api-reference/sidebar.tsreportsdoc), containing:get-statement-exportget-payment-export4. OpenAPI
Modified:
openapi/stellar-disbursement-platform/main.yamlReportswith description for PDF endpoints (gofpdf, A4, statement vs notice).GET /reports/statementfrom_date,to_date(required, date),asset_code(optional),base_url(optional).Content-Disposition,Content-Type: application/pdf), 400, 401, 403, 404 (e.g. asset not found).GET /reports/payment/{id}id(path),internal_notes(query, optional, maxLength 500),base_url(optional).Modified:
openapi/stellar-disbursement-platform/bundled.yamlmain.yaml(bundled spec updated so generated docs and tooling use the new endpoints).File list
docs/platforms/stellar-disbursement-platform/admin-guide/user-interface/reports.mdxdocs/platforms/stellar-disbursement-platform/api-reference/get-payment-export.api.mdxdocs/platforms/stellar-disbursement-platform/api-reference/get-statement-export.api.mdxdocs/platforms/stellar-disbursement-platform/api-reference/reports.tag.mdxdocs/platforms/stellar-disbursement-platform/api-reference/sidebar.tsopenapi/stellar-disbursement-platform/bundled.yamlopenapi/stellar-disbursement-platform/main.yamlstatic/assets/SDP/SDP49.1.pngstatic/assets/SDP/SDP49.2.pngstatic/assets/SDP/SDP49.3.pngCommits (in order)
REACT_APP_ENABLE_REPORTS_FEATUREand when Reports is hidden.Testing / checks
npm run check:mdx(or equivalent) in stellar-docs should pass.