Repository navigation
fix: Stripe invoice events, refunded invoices and empty refund token in docs - #203
Merged
Merged
Conversation
…in docs Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…e events everywhere Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch was successfully deployed
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.
What changed
Docs for behavior that went live in affiliate-cms v3.16.139 and v3.16.140 today.
invoice.paidis handled together withinvoice.payment_succeededby the same handler, which records each invoice at most once. Every page that named onlyinvoice.payment_succeedednow names both (stripe, connect-stripe-account, payment-tracking-stripe, quickstart-integration, node-express, attribution, errors).POST /api/v1/track/refundnow answersEmpty Bearer token(sale still answersMissing API token).refund_id(an applied refund is skipped).scripts/retired-claims.json.Why
Runtime changed; the pages described the previous behavior.
Sources (affiliate-cms main)
src/api/webhook-distributor/services/webhook-distributor.ts:850-852(both invoice events share one handler, invoice-locked) anddocs/stripe-connect-events.md"Invoice allocation admission before money" (refunded-before-admission cap; split/shared/partial allocations retry and write no sale).src/api/affiliate-tracking/controllers/v1-tracking.ts:1535-1539(Empty Bearer token),:960(Missing API token).refund_idretries are already documented as safe on the same page.Left out on purpose: details of non-USD invoice handling (pending a separate decision).
How verified
npm run gen:llms,npm run build,check-agent-surface(retired claims included),check-docs-host,check-docs-host-http: all pass. Independent review (different vendor) passed after three rounds. Claims table in the private workspace.🤖 Generated with Claude Code