Skip to content

feat: cleaning up webhooks#212

Open
pengying wants to merge 1 commit intomainfrom
02-19-feat_cleaning_up_webhooks
Open

feat: cleaning up webhooks#212
pengying wants to merge 1 commit intomainfrom
02-19-feat_cleaning_up_webhooks

Conversation

@pengying
Copy link
Contributor

@pengying pengying commented Feb 19, 2026

TL;DR

Updated webhook event type names to be more descriptive and consistent.

What changed?

  • Renamed INCOMING_PAYMENT to TRANSACTIONS_INCOMING_PAYMENT
  • Renamed OUTGOING_PAYMENT to TRANSACTIONS_OUTGOING_PAYMENT
  • Renamed INVITATION_CLAIMED to UMA_INVITATION_CLAIMED
  • Renamed KYC_STATUS to CUSTOMERS_KYC_UPDATE
  • Renamed ACCOUNT_STATUS to INTERNAL_ACCOUNTS_BALANCE_UPDATE
  • Left TEST and BULK_UPLOAD unchanged

How to test?

  1. Verify that webhook subscriptions using the old event types are properly migrated
  2. Create new webhook subscriptions with the updated event types
  3. Trigger events for each webhook type and confirm they are delivered correctly
  4. Check that documentation reflects these new event type names

Why make this change?

The new naming convention provides more context about which domain each webhook belongs to, making the API more intuitive and self-documenting. This improves developer experience by making it clearer what each webhook is used for and helps with organization as we add more webhook types in the future.

Copy link
Contributor Author

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

@pengying pengying marked this pull request as ready for review February 19, 2026 15:42
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 19, 2026

Greptile Summary

This PR renames webhook event types to be more descriptive with domain prefixes (e.g., INCOMING_PAYMENTTRANSACTIONS_INCOMING_PAYMENT). However, the change is incomplete and will break the OpenAPI specification:

  • Schema example values in IncomingPaymentWebhook.yaml, OutgoingPaymentWebhook.yaml, and InvitationClaimedWebhook.yaml still reference old type names
  • Webhook endpoint example payloads in 5 files under openapi/webhooks/ still use old type values
  • Documentation in mintlify/ramps/platform-tools/webhooks.mdx needs updating
  • This is a breaking API change requiring coordination with webhook consumers and backend services

Before merging, update all references to webhook types across the OpenAPI spec and documentation, then run make build and make lint per CLAUDE.md guidelines.

Confidence Score: 1/5

  • This PR will break the OpenAPI spec and documentation due to incomplete updates
  • The enum values were renamed but numerous examples and documentation still reference the old names, which will cause OpenAPI validation failures and inconsistent documentation. Additionally, this is a breaking change that affects existing webhook consumers.
  • All webhook schema and endpoint files need attention, particularly IncomingPaymentWebhook.yaml, OutgoingPaymentWebhook.yaml, InvitationClaimedWebhook.yaml, and the 5 files under openapi/webhooks/, plus mintlify documentation

Important Files Changed

Filename Overview
openapi/components/schemas/webhooks/WebhookType.yaml Webhook type enum values renamed for consistency, but breaks compatibility without updating examples and related schemas

Last reviewed commit: f625355

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment on lines 1 to +9
type: string
enum:
- INCOMING_PAYMENT
- OUTGOING_PAYMENT
- TRANSACTIONS_INCOMING_PAYMENT
- TRANSACTIONS_OUTGOING_PAYMENT
- TEST
- BULK_UPLOAD
- INVITATION_CLAIMED
- KYC_STATUS
- ACCOUNT_STATUS
- UMA_INVITATION_CLAIMED
- CUSTOMERS_KYC_UPDATE
- INTERNAL_ACCOUNTS_BALANCE_UPDATE
Copy link
Contributor

Choose a reason for hiding this comment

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

The enum values have been renamed but the examples in webhook schema files still reference old names. This creates inconsistency:

  • openapi/components/schemas/webhooks/IncomingPaymentWebhook.yaml:12 has example: INCOMING_PAYMENT
  • openapi/components/schemas/webhooks/OutgoingPaymentWebhook.yaml:12 has example: OUTGOING_PAYMENT
  • openapi/components/schemas/webhooks/InvitationClaimedWebhook.yaml:11 has enum: [INVITATION_CLAIMED]

These must be updated to match the new enum values or the OpenAPI spec will be invalid.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/webhooks/WebhookType.yaml
Line: 1-9

Comment:
The enum values have been renamed but the examples in webhook schema files still reference old names. This creates inconsistency:

- `openapi/components/schemas/webhooks/IncomingPaymentWebhook.yaml:12` has `example: INCOMING_PAYMENT`
- `openapi/components/schemas/webhooks/OutgoingPaymentWebhook.yaml:12` has `example: OUTGOING_PAYMENT`  
- `openapi/components/schemas/webhooks/InvitationClaimedWebhook.yaml:11` has `enum: [INVITATION_CLAIMED]`

These must be updated to match the new enum values or the OpenAPI spec will be invalid.

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines 1 to +9
type: string
enum:
- INCOMING_PAYMENT
- OUTGOING_PAYMENT
- TRANSACTIONS_INCOMING_PAYMENT
- TRANSACTIONS_OUTGOING_PAYMENT
- TEST
- BULK_UPLOAD
- INVITATION_CLAIMED
- KYC_STATUS
- ACCOUNT_STATUS
- UMA_INVITATION_CLAIMED
- CUSTOMERS_KYC_UPDATE
- INTERNAL_ACCOUNTS_BALANCE_UPDATE
Copy link
Contributor

Choose a reason for hiding this comment

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

Webhook endpoint example payloads still use old type names. These files need updating:

  • openapi/webhooks/incoming-payment.yaml lines 101, 127: type: INCOMING_PAYMENT
  • openapi/webhooks/outgoing-payment.yaml lines 87, 122: type: OUTGOING_PAYMENT
  • openapi/webhooks/invitation-claimed.yaml line 73: type: INVITATION_CLAIMED
  • openapi/webhooks/kyc-status.yaml line 61: type: KYC_STATUS
  • openapi/webhooks/account-status.yaml line 70: type: ACCOUNT_STATUS

After running make build, these will propagate to the bundled spec.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/webhooks/WebhookType.yaml
Line: 1-9

Comment:
Webhook endpoint example payloads still use old type names. These files need updating:

- `openapi/webhooks/incoming-payment.yaml` lines 101, 127: `type: INCOMING_PAYMENT`
- `openapi/webhooks/outgoing-payment.yaml` lines 87, 122: `type: OUTGOING_PAYMENT`
- `openapi/webhooks/invitation-claimed.yaml` line 73: `type: INVITATION_CLAIMED`
- `openapi/webhooks/kyc-status.yaml` line 61: `type: KYC_STATUS`
- `openapi/webhooks/account-status.yaml` line 70: `type: ACCOUNT_STATUS`

After running `make build`, these will propagate to the bundled spec.

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines 1 to +9
type: string
enum:
- INCOMING_PAYMENT
- OUTGOING_PAYMENT
- TRANSACTIONS_INCOMING_PAYMENT
- TRANSACTIONS_OUTGOING_PAYMENT
- TEST
- BULK_UPLOAD
- INVITATION_CLAIMED
- KYC_STATUS
- ACCOUNT_STATUS
- UMA_INVITATION_CLAIMED
- CUSTOMERS_KYC_UPDATE
- INTERNAL_ACCOUNTS_BALANCE_UPDATE
Copy link
Contributor

Choose a reason for hiding this comment

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

Documentation in mintlify/ramps/platform-tools/webhooks.mdx still references old webhook type names (OUTGOING_PAYMENT, ACCOUNT_STATUS, KYC_STATUS) in code examples on lines 17, 41, 50, 66, 75, and 81. These need updating to match the new naming convention.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/webhooks/WebhookType.yaml
Line: 1-9

Comment:
Documentation in `mintlify/ramps/platform-tools/webhooks.mdx` still references old webhook type names (`OUTGOING_PAYMENT`, `ACCOUNT_STATUS`, `KYC_STATUS`) in code examples on lines 17, 41, 50, 66, 75, and 81. These need updating to match the new naming convention.

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines 1 to +9
type: string
enum:
- INCOMING_PAYMENT
- OUTGOING_PAYMENT
- TRANSACTIONS_INCOMING_PAYMENT
- TRANSACTIONS_OUTGOING_PAYMENT
- TEST
- BULK_UPLOAD
- INVITATION_CLAIMED
- KYC_STATUS
- ACCOUNT_STATUS
- UMA_INVITATION_CLAIMED
- CUSTOMERS_KYC_UPDATE
- INTERNAL_ACCOUNTS_BALANCE_UPDATE
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a breaking change for existing webhook consumers. Verify that backend services parsing the type field are updated to handle new names, and check if a migration path exists for existing webhook subscriptions.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/webhooks/WebhookType.yaml
Line: 1-9

Comment:
This is a breaking change for existing webhook consumers. Verify that backend services parsing the `type` field are updated to handle new names, and check if a migration path exists for existing webhook subscriptions.

How can I resolve this? If you propose a fix, please make it concise.

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

Comments