feat(webhooks): Adding event search option in the webhooks page#9907
Merged
Conversation
Changed Files
|
2 tasks
| message: | ||
| "Either only `object_id` must be specified, or one or more of \ | ||
| `created_after`, `created_before`, `limit`, `offset`, `event_classes` and `event_types` must be specified" | ||
| "Either only `object_id` / `event_id` must be specified, or one or more of \ |
Contributor
There was a problem hiding this comment.
"Either only 'object_id' or 'event_id; must be specified
| /// Refund ID, etc.) | ||
| pub object_id: Option<String>, | ||
|
|
||
| // Filter all events associated with the specified Event_id |
Contributor
There was a problem hiding this comment.
please use documentation comment, that will update the description in openapi_spec.json, thats why its null right now , use triple ///
sai-harsha-vardhan
approved these changes
Oct 23, 2025
apoorvdixit88
approved these changes
Oct 23, 2025
Comment on lines
+1823
to
+1831
| (Some(object_id), None) => Ok(Self::ObjectIdFilter { | ||
| event_id: object_id.clone(), | ||
| object_id, | ||
| }), | ||
|
|
||
| (None, Some(event_id)) => Ok(Self::ObjectIdFilter { | ||
| object_id: event_id.clone(), | ||
| event_id, | ||
| }), |
Member
There was a problem hiding this comment.
Why are we passing object ID as event ID and vice-versa? Won't this slow down the database queries significantly?
drdholu
pushed a commit
to drdholu/hyperswitch
that referenced
this pull request
Oct 30, 2025
…ay#9907) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
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.
Type of Change
Description
Additional Changes
Motivation and Context
event_id, making it difficult to debug or verify individual events.How did you test it?
{ "events": [ { "event_id": "evt_300000000000000000000000000000002", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000002", "event_type": "payment_failed", "event_class": "payments", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000002", "created": "2025-10-16T11:05:00.000Z" }, { "event_id": "evt_300000000000000000000000000000016", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000005", "event_type": "dispute_challenged", "event_class": "disputes", "is_delivery_successful": false, "initial_attempt_id": "evt_300000000000000000000000000000016", "created": "2025-10-15T13:15:00.000Z" }, { "event_id": "evt_300000000000000000000000000000001", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000005", "event_type": "payment_succeeded", "event_class": "payments", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000001", "created": "2025-10-15T10:00:00.000Z" }, { "event_id": "evt_300000000000000000000000000000015", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "dp_30000015", "event_type": "dispute_cancelled", "event_class": "disputes", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000015", "created": "2025-09-29T12:10:00.000Z" }, { "event_id": "evt_300000000000000000000000000000013", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "dp_30000013", "event_type": "dispute_expired", "event_class": "disputes", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000013", "created": "2025-09-27T10:00:00.000Z" }, { "event_id": "evt_300000000000000000000000000000012", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "dp_30000012", "event_type": "dispute_opened", "event_class": "disputes", "is_delivery_successful": false, "initial_attempt_id": "evt_300000000000000000000000000000012", "created": "2025-09-26T21:55:00.000Z" }, { "event_id": "evt_300000000000000000000000000000027", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "dp_30000027", "event_type": "dispute_opened", "event_class": "disputes", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000027", "created": "2025-09-26T12:10:00.000Z" }, { "event_id": "evt_300000000000000000000000000000011", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "rfnd_30000011", "event_type": "refund_failed", "event_class": "refunds", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000011", "created": "2025-09-25T20:50:00.000Z" }, { "event_id": "evt_300000000000000000000000000000026", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "pay_30000026", "event_type": "payment_captured", "event_class": "payments", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000026", "created": "2025-09-25T11:05:00.000Z" }, { "event_id": "evt_300000000000000000000000000000010", "merchant_id": "merchant_dummy", "profile_id": "pro_dummy", "object_id": "rfnd_30000010", "event_type": "refund_succeeded", "event_class": "refunds", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000010", "created": "2025-09-24T19:45:00.000Z" } ], "total_count": 24 }{ "events": [ { "event_id": "evt_300000000000000000000000000000002", "merchant_id": "mer_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000002", "event_type": "payment_failed", "event_class": "payments", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000002", "created": "2025-10-16T11:05:00.000Z" } ], "total_count": 1 }{ "events": [ { "event_id": "evt_300000000000000000000000000000016", "merchant_id": "mer_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000005", "event_type": "dispute_challenged", "event_class": "disputes", "is_delivery_successful": false, "initial_attempt_id": "evt_300000000000000000000000000000016", "created": "2025-10-15T13:15:00.000Z" }, { "event_id": "evt_300000000000000000000000000000001", "merchant_id": "mer_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000005", "event_type": "payment_succeeded", "event_class": "payments", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000001", "created": "2025-10-15T10:00:00.000Z" }, { "event_id": "evt_300000000000000000000000000000005", "merchant_id": "mer_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000005", "event_type": "payment_partially_authorized", "event_class": "payments", "is_delivery_successful": true, "initial_attempt_id": "evt_300000000000000000000000000000005", "created": "2025-09-19T14:20:00.000Z" }, { "event_id": "evt_300000000000000000000000000000004", "merchant_id": "mer_dummy", "profile_id": "pro_dummy", "object_id": "pay_3000005", "event_type": "payment_cancelled", "event_class": "payments", "is_delivery_successful": false, "initial_attempt_id": "evt_300000000000000000000000000000004", "created": "2025-09-18T13:15:00.000Z" } ], "total_count": 4 }event_ids.primary_object_idandevent_id.event_id.Where to test it?
Checklist
event_idsearch