Skip to content

Conversation

@DavidAmunga
Copy link
Owner

@DavidAmunga DavidAmunga commented Nov 12, 2025

Description

This PR introduces a new webhook service that allows users to send statement transaction data to external webhook endpoints for reconciliation and integration with external systems.

Changes

New Features

  • Webhook Service (src/services/webhookService.ts):

    • New service for sending transaction data as JSON to any HTTP/HTTPS webhook endpoint
    • URL validation and protocol enforcement
    • Comprehensive error handling with user-friendly messages
    • Response body capture and display (both JSON and text)
    • Network error detection and CORS error handling

    Screenshot(s)

CleanShot 2025-11-12 at 2  06 08@2x

Use Cases

  • Integration with accounting systems
  • Automated transaction reconciliation
  • Real-time transaction syncing with external databases
  • Custom webhook integrations for payment processors

Technical Details

  • Uses the existing JsonService for consistent data formatting
  • Respects all export options (filters, sorting, etc.) when sending data
  • POST request with Content-Type: application/json
  • Handles both JSON and plain text responses
  • Validates URLs and restricts to HTTP/HTTPS protocols only

Testing

Tested with local webhook endpoints and verified:

  • Successful data transmission with 2xx responses
  • Error handling for invalid URLs
  • Network error detection
  • Response body display (JSON and text)
  • Loading states and user feedback

@DavidAmunga DavidAmunga self-assigned this Nov 12, 2025
@DavidAmunga DavidAmunga merged commit d324731 into main Nov 12, 2025
11 of 12 checks passed
@DavidAmunga DavidAmunga deleted the feat/add-webhook-service branch November 12, 2025 11:11
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.

2 participants