Skip to content

docs: add webhook event reference page - #93

Open
xikimay wants to merge 9 commits into
mainfrom
docs/webhook-event-reference
Open

docs: add webhook event reference page#93
xikimay wants to merge 9 commits into
mainfrom
docs/webhook-event-reference

Conversation

@xikimay

@xikimay xikimay commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Adds Webhook event reference (payments/webhook-event-reference), the field-level contract of the payment webhook payload (api_version 2026-05-18): envelope and payment-snapshot tables with types and nullability, a stage-object presence matrix per event type, per-object field tables, and one example per event type.

  • Examples are the golden fixtures from the MX repo, verbatim; verified byte-identical against MX main after the contract re-cuts (#930-#933) merged.
  • Cross-linked both ways with the webhooks guide, trimming the guide's stage-block details the reference now owns.
  • Deliberately not in docs.json navigation until the webhooks feature rolls out; reachable by URL, like payments/webhooks. At rollout, add both pages to the merchant group together.

Merge after #92, which corrects two statements on the guide this page relies on.

🤖 Generated with Claude Code

xikimay and others added 2 commits July 31, 2026 11:34
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wc-pay-docs 🟢 Ready View Preview Jul 31, 2026, 9:36 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

The frozen webhook schema is being re-cut to make data.expires_at
non-null before any partner consumes it, aligning with the REST
contract and pay-core, which always defaults expiry to 15 minutes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
xikimay and others added 2 commits July 31, 2026 12:19
Same re-cut rationale as expires_at: reference_id is required at
payment creation in core and in the REST contract, so the webhook
schema is being tightened before any partner consumes it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Core only allows cancellation from requires_action, so the schema is
being tightened to drop the cancelled-after-processing variant before
any partner consumes the webhook.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Trims the stage-block details the reference now owns and points to it
from the payload table and the next-steps cards.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@xikimay
xikimay marked this pull request as ready for review July 31, 2026 16:22
Sign up for free to 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.

1 participant