docs: add receipts guide for payouts & B2B#570
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Greptile SummaryAdds a new developer-facing Receipts guide to the Payouts & B2B section, explaining that platforms using Grid's money-transmitter licenses must send a compliant receipt to their customer after every completed transaction.
Confidence Score: 3/5The guide has an unresolved verbatim mismatch in a mandatory legal disclosure, plus several previously-flagged gaps in the JS code example that would cause runtime errors or produce non-compliant receipt content on the INCOMING payment path. The fraud-reporting text in the regulatory disclosures table ("customer services") contradicts the wording in the rendered receipt component ("customer service"). Because this is a required verbatim disclosure, both instances must be identical — and one of them is wrong. Combined with the remaining open issues from earlier rounds (undefined confirmReceiptDelivery, tx.sentAmount crash on incoming payments, raw tx.fees integer bypassing the formatter, missing Total derivation, and no error handling), the snippet has multiple correctness problems on a compliance-critical document. The navigation and page-wrapper changes are clean. mintlify/snippets/receipts.mdx — the JS webhook example and the regulatory disclosure tables both need attention before this guide is published.
|
| Filename | Overview |
|---|---|
| mintlify/snippets/receipts.mdx | New receipts snippet with sample receipt component, regulatory disclosure tables, field-mapping table, and a JS webhook handler example — several pre-existing issues in the example code (undefined function references, missing type coercions, incoming-payment field gaps) plus a new verbatim disclosure mismatch between the table and the rendered component. |
| mintlify/payouts-and-b2b/payment-flow/receipts.mdx | Thin wrapper page that imports the receipts snippet; frontmatter is complete and correct. |
| mintlify/docs.json | Adds the new receipts page to the navigation in the correct position (after list-transactions, before reconciliation). |
Sequence Diagram
sequenceDiagram
participant Grid
participant Platform as Platform Webhook Handler
participant Customer
participant GridAPI as Grid API
Grid->>Platform: "POST /webhooks/grid<br/>OUTGOING_PAYMENT.COMPLETED<br/>or INCOMING_PAYMENT.COMPLETED"
Platform->>Platform: Verify X-Grid-Signature
Platform->>Platform: "Assemble receipt fields<br/>(regulatory disclosures + tx data)"
Platform->>Customer: "Send receipt<br/>(email / in-app / PDF)"
Platform->>GridAPI: "POST /transactions/{id}/confirm<br/>{ receiptDeliveryConfirmedAt }"
GridAPI-->>Platform: 200 OK
Platform-->>Grid: "200 { received: true }"
Reviews (13): Last reviewed commit: "docs: use UUID for sample receipt transa..." | Re-trigger Greptile
99db4ea to
a4a9dcb
Compare
a4a9dcb to
949601d
Compare
949601d to
3c8768c
Compare
3c8768c to
cf3309d
Compare
cf3309d to
5cd929b
Compare
5cd929b to
393c115
Compare
393c115 to
bbd233c
Compare
bbd233c to
d0e1a8f
Compare
Add developer-facing documentation explaining that platforms must send a compliant receipt to their customer for every completed transaction where Lightspark Payments, LLC is the licensed money transmitter. Covers when to send (OUTGOING/INCOMING_PAYMENT.COMPLETED), required content (Lightspark regulatory disclosures + data-driven transaction fields), mapping Grid transaction data to receipt fields, a webhook-triggered example, the sample receipt layout, and confirming delivery via the confirmReceiptDelivery endpoint. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
5e43174 to
4581ac3
Compare
f5a983a to
351c4b4
Compare
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
351c4b4 to
20b0c75
Compare

Summary
Adds developer-facing documentation educating platforms on sending receipts to their customers. Receipts are required for regulatory compliance on every completed transaction where Lightspark Payments, LLC is the licensed money transmitter.
Based on the Grid: Receipts PRD.
What's included
mintlify/snippets/receipts.mdxand pagemintlify/payouts-and-b2b/payment-flow/receipts.mdx(in the Sending payments group, after List transactions).OUTGOING_PAYMENT.COMPLETED/INCOMING_PAYMENT.COMPLETED; only completed transactions; freeze issued receipts.sentAmount,receivedAmount,fees,exchangeRate,reconciliationInstructions, etc.) to each receipt field.confirmReceiptDeliveryendpoint.Verification
make lint→ Redocly bundle + lint pass (no OpenAPI changes; pre-existing card-webhook warnings only). Thespectralstep fails due to a pre-existing tooling issue unrelated to this change.docs.jsonvalidated as JSON; API-reference link targets (confirmReceiptDelivery,getTransactionById) confirmed present in the spec.🤖 Generated with Claude Code