Skip to content

docs(query-payments): rewrite with practical implementation focus and remove AI warning - #66

Merged
rodrigopavezi merged 1 commit into
mainfrom
03-02-docs_api-features_rebuild_reconciliation_query_pages_with_correct_v2_endpoints_refactor_query-requests_and_query-payments_docs_to_align_with_actual_api_behavior_and_fix_endpoint_linking_issues_in_openapi_references._-_removed_ai
May 12, 2026
Merged

docs(query-payments): rewrite with practical implementation focus and remove AI warning#66
rodrigopavezi merged 1 commit into
mainfrom
03-02-docs_api-features_rebuild_reconciliation_query_pages_with_correct_v2_endpoints_refactor_query-requests_and_query-payments_docs_to_align_with_actual_api_behavior_and_fix_endpoint_linking_issues_in_openapi_references._-_removed_ai

Conversation

@aimen74

@aimen74aimen74 commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Rewrote the Query Payments documentation page to provide clearer, more actionable guidance with step-by-step instructions and practical implementation details.

What changed?

  • Removed AI-generated content warning and disclaimer
  • Replaced mermaid diagram with structured Steps component explaining the query process
  • Added comprehensive filter documentation organized by category (Identity/Transaction, Type/Currency, Time/Pagination)
  • Included practical implementation notes about search semantics, batch transactions, and idempotency considerations
  • Added related pages section linking to Query Requests, Payment Detection, and Webhooks & Events
  • Restructured content to focus on the core GET /v2/payments endpoint with direct API reference links

How to test?

  • Review the documentation page to ensure all filter parameters and their usage are clearly explained
  • Verify that the step-by-step process accurately reflects the API behavior
  • Test that internal links to related pages work correctly
  • Confirm the API reference link points to the correct OpenAPI documentation

Why make this change?

The original documentation was AI-generated with a disclaimer about potential inaccuracies. This rewrite provides developers with more reliable, structured guidance that focuses on practical implementation patterns and real-world usage scenarios for payment querying and reconciliation workflows.

@aimen74Graphite App

aimen74 commented Mar 2, 2026

Copy link
Copy Markdown
ContributorAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@aimen74aimen74 self-assigned this Mar 2, 2026
@aimen74aimen74 changed the title docs(api-features): rebuild reconciliation query pages with correct v2 endpoints Refactor query-requests and query-payments docs to align with actual API behavior and fix endpoint linking issues in OpenAPI references. - removed AI-generated warning badocs(query-payments): rewrite with practical implementation focus and remove AI warningMar 2, 2026
@aimen74
aimen74 marked this pull request as ready for review March 2, 2026 12:12
@greptile-apps

greptile-appsBot commented Mar 2, 2026

Copy link
Copy Markdown

Greptile Summary

This PR rewrites the Query Payments documentation page, removing the AI-generated content disclaimer and replacing the mermaid diagram with a Steps component, a structured filter reference, practical notes on AND semantics and idempotency, and a related-pages card group.

  • Replaced the generic mermaid flow with a concrete three-step walkthrough covering required parameters, optional filters, and response shape.
  • Added filter categories (Identity/Transaction, Type/Currency, Time/Pagination) with the specific parameter names used by the API, and linked directly to the OpenAPI reference.
  • All three internal href links resolve to existing files in the repository.

Confidence Score: 5/5

Documentation-only change with no runtime impact; safe to merge.

The change is a documentation rewrite with no code, schema, or configuration changes. Internal links all resolve to existing files, the API endpoint references are consistent throughout the body, and the filter/response fields described match the API contract confirmed in prior review threads.

No files require special attention.

Important Files Changed

FilenameOverview
api-features/query-payments.mdxRewrote the Query Payments docs page: removed AI-generated warning, replaced mermaid diagram with a Steps flow, added structured filter reference, practical notes, and related-pages cards. All three internal hrefs resolve to existing files. Content is accurate against the API behavior described.

Sequence Diagram

sequenceDiagram
participant Dev as Developer
participant API as GET /v2/payments
Dev->>API: Request with at least one required filter (txHash, walletAddress, requestId, etc.)
API-->>Dev: Validation error if no filter provided
Dev->>API: Add optional filters (fromDate, toDate, limit, offset)
API-->>API: "Validate date range (toDate >= fromDate)"
API-->>Dev: payments[] + pagination total/limit/offset/hasMore
alt hasMore is true
Dev->>API: Repeat with incremented offset
API-->>Dev: Next page of payments
end
Loading

Reviews (2): Last reviewed commit: "docs(api-features): rebuild reconciliati..." | Re-trigger Greptile

@greptile-appsgreptile-appsBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment threadapi-features/query-payments.mdx
Comment threadapi-features/query-payments.mdx
rodrigopavezi added a commit that referenced this pull request May 11, 2026
Bundles two passes of Greptile feedback:
(A) PR #96 follow-up — the fixes PR itself attracted two new comments:
- use-cases/programmatic-payment-links.mdx: cURL language tag bash → curl
- RN_API_KEY → RN_CLIENT_ID and X-Api-Key → x-client-id renamed across
api-setup/integration-tutorial.mdx, api-setup/getting-started.mdx,
api-features/create-requests.mdx for stack-wide consistency. Zero
RN_API_KEY / X-Api-Key references remain.
(B) Older PRs (51-87) — 23 still-applicable comments out of 51 total.
The other 28 are stale (resolved by the revamp rewriting or removing
the relevant sections/files); those will be resolved on GitHub with a
note explaining staleness.
PR #53 — getting-started.mdx
- Added Express setup (express + app.use(express.json())) before the
webhook handler example so the snippet is runnable.
PR #54 — integration-tutorial.mdx
- Added missing `import { eq } from 'drizzle-orm';`.
- Fixed spelling "succesfully" → "successfully".
PR #55 — create-requests.mdx
- v2 pay endpoint takes requestId, not paymentReference (mermaid +
code sample updated to `${requestId}/pay`).
PR #56 + #87 — crosschain-payments.mdx
- Boundary wording: "under \$1" → "of \$1 or less" to align with the
"greater than 1 USD" half of the sentence.
- viem snippet now imports createPublicClient + http and instantiates
publicClient so `publicClient.waitForTransactionReceipt(...)` works.
PR #57 — batch-payments.mdx
- Code samples now use x-client-id (consistent with rest of docs),
dropped legacy x-platform-id, added `if (!response.ok)` error handling
on both examples.
PR #59 — crypto-to-fiat-payments.mdx
- "I**mportant:" → "**Important:"
- mermaid: {payerId} → {clientUserId} (twice).
- Endpoint paths: /payer → /v2/payer for consistency.
- mermaid: declared "Payee Bank" as a participant (was used but never
declared, breaking the diagram).
PR #66 — query-payments.mdx
- Frontmatter description: /payments → /v2/payments.
PR #67 — platform-fees.mdx
- Clarified query- vs body-param scope: GET /v2/request/{id}/pay uses
query params; POST /v2/payouts and /payouts/batch use body params.
PR #68 — protocol-fees.mdx
- Grammar: "protocol fees applies" → "protocol fee applies".
- Typo: "simple reduce" → "simply reduce".
- Math: payee receives 999.50 USDC (not 999.95). Added intermediate
invoice/fee lines for transparency.
PR #77 — faq.mdx
- On-ramp question now explicitly answered: "Fiat-to-crypto (on-ramp)
payments are not currently supported by the API."
PR #86 — payouts.mdx
- "ERC-712" → "EIP-712" (correct EIP designation).
PR #86 — api-reference/secure-payments.mdx
- expiresAt example: 15 minutes → 7 days, matching the documented
default expiry.
PR #87 — payouts.mdx
- Added "500" row to error-handling table.
mintlify broken-links: zero.
@rodrigopaveziGraphite App

rodrigopavezi commented May 12, 2026

Copy link
Copy Markdown
Contributor

Merge activity

  • May 12, 4:02 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 12, 4:32 PM UTC: Graphite rebased this pull request as part of a merge.
  • May 12, 4:33 PM UTC: @rodrigopavezi merged this pull request with Graphite.

@rodrigopavezi
rodrigopavezi changed the base branch from 03-02-docs_api-features_fix_query-requests_openapi_endpoint_links_and_reconciliation_mapping_update_api-features_query-requests.mdx_to_use_the_correct_openapi_deep_links_for_request_status_and_wallet-level_reconciliation._-_replaced_n to graphite-base/66May 12, 2026 16:30
@rodrigopavezi
rodrigopavezi changed the base branch from graphite-base/66 to mainMay 12, 2026 16:31
…2 endpoints
Refactor `query-requests` and `query-payments` docs to align with actual API behavior and fix endpoint linking issues in OpenAPI references.
- removed AI-generated warning banners from both pages
- replaced outdated/broken API reference paths with canonical OpenAPI links
- corrected endpoint linking strategy for request status and payment search routes
- aligned `query-requests` to request-level reconciliation flow using:
- GET /v2/request/{requestId}
- GET /v2/payments (wallet-level reconciliation context)
- replaced related-page bullet links with CardGroup components for consistency
- rebuilt `query-payments` as endpoint-driven documentation for:
- GET /v2/payments
- required search parameter behavior
- filter groups (identity/tx, type/currency, date/pagination)
- response pagination fields (`total`, `limit`, `offset`, `hasMore`)
- practical reconciliation notes (AND semantics, batch tx behavior, idempotency)
- removed legacy-domain dependencies and invalid internal endpoint links
- kept structure consistent with other migrated API Features pages
@rodrigopavezi
rodrigopaveziforce-pushed the 03-02-docs_api-features_rebuild_reconciliation_query_pages_with_correct_v2_endpoints_refactor_query-requests_and_query-payments_docs_to_align_with_actual_api_behavior_and_fix_endpoint_linking_issues_in_openapi_references._-_removed_ai branch from 821e504 to 68137aeCompareMay 12, 2026 16:32
@rodrigopavezi
rodrigopavezi merged commit 717428f into mainMay 12, 2026
3 checks passed
@rodrigopavezi
rodrigopavezi deleted the 03-02-docs_api-features_rebuild_reconciliation_query_pages_with_correct_v2_endpoints_refactor_query-requests_and_query-payments_docs_to_align_with_actual_api_behavior_and_fix_endpoint_linking_issues_in_openapi_references._-_removed_ai branch May 12, 2026 16:33
rodrigopavezi added a commit that referenced this pull request May 12, 2026
Bundles two passes of Greptile feedback:
(A) PR #96 follow-up — the fixes PR itself attracted two new comments:
- use-cases/programmatic-payment-links.mdx: cURL language tag bash → curl
- RN_API_KEY → RN_CLIENT_ID and X-Api-Key → x-client-id renamed across
api-setup/integration-tutorial.mdx, api-setup/getting-started.mdx,
api-features/create-requests.mdx for stack-wide consistency. Zero
RN_API_KEY / X-Api-Key references remain.
(B) Older PRs (51-87) — 23 still-applicable comments out of 51 total.
The other 28 are stale (resolved by the revamp rewriting or removing
the relevant sections/files); those will be resolved on GitHub with a
note explaining staleness.
PR #53 — getting-started.mdx
- Added Express setup (express + app.use(express.json())) before the
webhook handler example so the snippet is runnable.
PR #54 — integration-tutorial.mdx
- Added missing `import { eq } from 'drizzle-orm';`.
- Fixed spelling "succesfully" → "successfully".
PR #55 — create-requests.mdx
- v2 pay endpoint takes requestId, not paymentReference (mermaid +
code sample updated to `${requestId}/pay`).
PR #56 + #87 — crosschain-payments.mdx
- Boundary wording: "under \$1" → "of \$1 or less" to align with the
"greater than 1 USD" half of the sentence.
- viem snippet now imports createPublicClient + http and instantiates
publicClient so `publicClient.waitForTransactionReceipt(...)` works.
PR #57 — batch-payments.mdx
- Code samples now use x-client-id (consistent with rest of docs),
dropped legacy x-platform-id, added `if (!response.ok)` error handling
on both examples.
PR #59 — crypto-to-fiat-payments.mdx
- "I**mportant:" → "**Important:"
- mermaid: {payerId} → {clientUserId} (twice).
- Endpoint paths: /payer → /v2/payer for consistency.
- mermaid: declared "Payee Bank" as a participant (was used but never
declared, breaking the diagram).
PR #66 — query-payments.mdx
- Frontmatter description: /payments → /v2/payments.
PR #67 — platform-fees.mdx
- Clarified query- vs body-param scope: GET /v2/request/{id}/pay uses
query params; POST /v2/payouts and /payouts/batch use body params.
PR #68 — protocol-fees.mdx
- Grammar: "protocol fees applies" → "protocol fee applies".
- Typo: "simple reduce" → "simply reduce".
- Math: payee receives 999.50 USDC (not 999.95). Added intermediate
invoice/fee lines for transparency.
PR #77 — faq.mdx
- On-ramp question now explicitly answered: "Fiat-to-crypto (on-ramp)
payments are not currently supported by the API."
PR #86 — payouts.mdx
- "ERC-712" → "EIP-712" (correct EIP designation).
PR #86 — api-reference/secure-payments.mdx
- expiresAt example: 15 minutes → 7 days, matching the documented
default expiry.
PR #87 — payouts.mdx
- Added "500" row to error-handling table.
mintlify broken-links: zero.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation - Merge Mintlify docs and replace legacy docs

2 participants

@aimen74@rodrigopavezi