Skip to content

docs(platform-fees): simplify configuration guide and remove AI-generated content warning - #67

Merged
rodrigopavezi merged 1 commit into
mainfrom
03-02-docs_api-features_rewrite_platform-fees_as_implementation-focused_guide_refactor_api-features_platform-fees.mdx_to_document_platform-fee_configuration_clearly_and_accurately_for_v2_api_consumers._-_remove_ai_placeholder_framing_
May 12, 2026
Merged

docs(platform-fees): simplify configuration guide and remove AI-generated content warning#67
rodrigopavezi merged 1 commit into
mainfrom
03-02-docs_api-features_rewrite_platform-fees_as_implementation-focused_guide_refactor_api-features_platform-fees.mdx_to_document_platform-fee_configuration_clearly_and_accurately_for_v2_api_consumers._-_remove_ai_placeholder_framing_

Conversation

@aimen74

@aimen74aimen74 commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Rewrote the Platform Fees documentation to be more concise and focused on practical implementation.

What changed?

  • Removed AI-generated content warning and disclaimer
  • Simplified the overview section to focus on core functionality
  • Replaced the mermaid diagram and lengthy explanations with direct parameter documentation
  • Restructured content to prioritize required parameters and validation rules upfront
  • Converted JavaScript examples to cURL examples for better API reference alignment
  • Added step-by-step integration guide
  • Removed extensive use case descriptions and theoretical explanations
  • Streamlined the related pages section to focus on relevant documentation

How to test?

  • Verify that the cURL examples work correctly with the API endpoints
  • Test the fee parameter validation rules described in the documentation
  • Confirm that the step-by-step integration guide accurately reflects the implementation process
  • Check that links to related pages and API reference are functional

Why make this change?

The original documentation was verbose and contained AI-generated disclaimers that reduced credibility. The new version provides a cleaner, more actionable reference that developers can quickly scan to understand requirements and implement platform fees without unnecessary complexity.

@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): rewrite platform-fees as implementation-focused guide Refactor api-features/platform-fees.mdx to document platform-fee configuration clearly and accurately for v2 API consumers. - remove AI placeholder framing and unsupported/ambiguodocs(platform-fees): simplify configuration guide and remove AI-generated content warningMar 2, 2026
@aimen74
aimen74 marked this pull request as ready for review March 2, 2026 14:33
@greptile-apps

greptile-appsBot commented Mar 2, 2026

Copy link
Copy Markdown

Greptile Summary

This PR rewrites api-features/platform-fees.mdx to remove the AI-generated content disclaimer and simplify the page from 182 lines to 121 lines, replacing JavaScript snippets with cURL examples and adding a structured Steps component.

  • The page structure is improved: overview, required parameters, validation rules, endpoint list, step-by-step guide, and integration examples are all clearly separated.
  • The three cURL examples cover all supported endpoints (GET /v2/request/{requestId}/pay, POST /v2/payouts, POST /v2/payouts/batch) and use realistic-looking body data; the GET example still contains an unresolved {requestId} path template.
  • Response examples (both success and error shapes) are absent from all three cURL samples, which is required by the AGENTS.md style guide.

Confidence Score: 5/5

Documentation-only rewrite with no code changes; safe to merge.

The change touches a single MDX documentation file with no logic, schema, or API contract modifications. The content accurately reflects the three supported endpoints and their parameter types. The two gaps (unfilled path template in the GET example and absent response examples) are documentation quality issues that do not affect API behaviour or developer correctness in a blocking way.

api-features/platform-fees.mdx — the GET cURL example and the absence of response samples are worth a quick pass before merging.

Important Files Changed

FilenameOverview
api-features/platform-fees.mdxRewrote platform fees page to remove AI-generated disclaimer and verbose prose; replaced JS examples with cURL, added Steps component and endpoint usage list. Two style guide gaps: copy-paste-unfriendly {requestId} placeholder in the GET cURL example, and no response examples for any of the three cURL calls.

Sequence Diagram

sequenceDiagram
participant App as Developer App
participant API as Request Network API
participant SC as Smart Contract
App->>API: "GET /v2/request/{requestId}/pay?feePercentage=2.5&feeAddress=0x..."
API-->>App: Payment payload (includes feeAmount in token decimals)
App->>SC: Execute transaction (amount + feeAmount)
SC-->>App: Payee receives amount, feeAddress receives fee
App->>API: POST /v2/payouts (body: feePercentage, feeAddress)
API-->>App: Payout payload with fee calldata
App->>SC: Execute payout transaction
SC-->>App: Vendor receives amount, feeAddress receives fee
App->>API: POST /v2/payouts/batch (body: feePercentage, feeAddress, requests[])
API-->>App: Batch payout payload with fee calldata
App->>SC: Execute batch transaction
SC-->>App: All payees receive amounts, feeAddress receives aggregate fee
Loading

Reviews (2): Last reviewed commit: "docs(api-features): rewrite platform-fee..." | 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, 3 comments

Edit Code Review Agent Settings | Greptile

Comment threadapi-features/platform-fees.mdx
Comment threadapi-features/platform-fees.mdx
Comment threadapi-features/platform-fees.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:34 PM UTC: Graphite rebased this pull request as part of a merge.
  • May 12, 4:35 PM UTC: @rodrigopavezi merged this pull request with Graphite.

@rodrigopavezi
rodrigopavezi changed the base branch from 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 to graphite-base/67May 12, 2026 16:32
@rodrigopavezi
rodrigopavezi changed the base branch from graphite-base/67 to mainMay 12, 2026 16:33
…uide
Refactor `api-features/platform-fees.mdx` to document platform-fee configuration clearly and accurately for v2 API consumers.
- remove AI placeholder framing and unsupported/ambiguous wording
- focus page scope on platform fee setup (`feePercentage`, `feeAddress`)
- document validation constraints and required parameter pairing
- correct endpoint usage for fee parameters:
- GET /v2/request/{requestId}/pay
- POST /v2/payouts
- POST /v2/payouts/batch
- add cURL examples with `x-api-key` auth style
- add cross-links to Protocol Fees and Fee Breakdowns
- point users to canonical OpenAPI docs for full schemas
@rodrigopavezi
rodrigopaveziforce-pushed the 03-02-docs_api-features_rewrite_platform-fees_as_implementation-focused_guide_refactor_api-features_platform-fees.mdx_to_document_platform-fee_configuration_clearly_and_accurately_for_v2_api_consumers._-_remove_ai_placeholder_framing_ branch from ab88d80 to 00caa29CompareMay 12, 2026 16:34
@rodrigopavezi
rodrigopavezi merged commit c4dbb59 into mainMay 12, 2026
1 check passed
@rodrigopavezi
rodrigopavezi deleted the 03-02-docs_api-features_rewrite_platform-fees_as_implementation-focused_guide_refactor_api-features_platform-fees.mdx_to_document_platform-fee_configuration_clearly_and_accurately_for_v2_api_consumers._-_remove_ai_placeholder_framing_ branch May 12, 2026 16:35
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