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.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds end-user and API documentation for the SDP “Reports” feature (PDF exports), including new OpenAPI definitions and Docusaurus API reference navigation updates.
Changes:
- Added Admin Guide page documenting the Reports UI and feature-flag behavior.
- Added OpenAPI
Reportstag plus two PDF export endpoints (/reports/statement,/reports/payment/{id}) and corresponding API reference pages. - Updated the API Reference sidebar to include a new “Reports” section.
Reviewed changes
Copilot reviewed 6 out of 10 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/platforms/stellar-disbursement-platform/admin-guide/user-interface/reports.mdx | New Admin Guide page describing Reports UI, feature flag, and PDF layouts. |
| docs/platforms/stellar-disbursement-platform/api-reference/reports.tag.mdx | New “Reports” tag landing page for the API reference. |
| docs/platforms/stellar-disbursement-platform/api-reference/get-statement-export.api.mdx | New API reference page for statement PDF export. |
| docs/platforms/stellar-disbursement-platform/api-reference/get-payment-export.api.mdx | New API reference page for payment transaction notice PDF export. |
| docs/platforms/stellar-disbursement-platform/api-reference/sidebar.ts | Adds “Reports” category and links to the new endpoints. |
| openapi/stellar-disbursement-platform/main.yaml | Adds Reports tag + two new report paths (and applies substantial formatting updates). |
| openapi/stellar-disbursement-platform/bundled.yaml | Mirrors the Reports tag/paths in the bundled spec used by docs/tooling. |
| static/assets/SDP/SDP49.1.png | New screenshot asset for Reports UI. |
| static/assets/SDP/SDP49.2.png | New screenshot asset for statement PDF example. |
| static/assets/SDP/SDP49.3.png | New screenshot asset for transaction notice PDF example. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
JiahuiWho
reviewed
Apr 21, 2026
JiahuiWho
reviewed
Apr 21, 2026
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 disabled by default. Organization owners can enable it from the Settings page using the "Enable Reports" toggle. This sets thereporting_enabledflag on the organization (stored in the database), which is served via the/app-configendpoint. When disabled, the Reports entry is hidden from the sidebar and the/reportsroute returns 404.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)
reporting_enabledorganization flag (toggled from Settings, served via/app-config) and when Reports is hidden.Testing / checks
npm run check:mdx(or equivalent) in stellar-docs should pass.