Webhook Overview
Webhooks provide real-time notifications when events occur in your Request Network integration. Instead of polling for updates, webhooks push event data to your application immediately when payments are detected, requests are created, or other significant events happen.Webhook Events
Payment Events
payment_detected
When: Payment transaction is detected on blockchainUse Cases:
- Show โPayment Pendingโ status to users
- Start order preparation
- Send confirmation emails
payment_confirmed
When: Payment is confirmed on blockchain (sufficient confirmations)Use Cases:
- Complete order fulfillment
- Update accounting systems
- Release digital goods
payment_failed
When: Payment transaction fails or is revertedUse Cases:
- Notify customer of payment failure
- Reset order status
- Trigger retry workflows
payment_partially_completed
When: Partial payment is received for a requestUse Cases:
- Update outstanding balance
- Notify of partial payment
- Allow additional payments
Request Events
request_created
When: New payment request is createdPayload Includes:
- Request ID and details
- Payment information
- Custom metadata
request_updated
When: Request metadata or status is modifiedPayload Includes:
- Updated fields
- Previous values
- Change timestamp
Subscription Events
subscription_renewed
When: Recurring payment is successfully processedUse Cases:
- Extend subscription period
- Send renewal confirmation
- Update billing systems
subscription_failed
When: Recurring payment failsUse Cases:
- Notify customer of failed payment
- Initiate payment retry
- Manage subscription status
Webhook Configuration
Setting Up Webhooks
1
Configure Endpoint
Set up a webhook endpoint URL in the Request Portal
2
Select Events
Choose which event types you want to receive
3
Test Endpoint
Use the test webhook feature to verify your endpoint
4
Go Live
Enable webhooks for production traffic
Webhook Endpoint Requirements
Endpoint Specifications:
- Must be publicly accessible HTTPS URL
- Should return 2xx status code for successful processing
- Timeout limit: 30 seconds
- Must handle duplicate events (idempotency)
Webhook Payloads
Payment Confirmed Event
Integration Examples
E-commerce Order Processing
Database Integration
Testing Webhooks
Webhook Testing Tools
ngrok
Local Development:
- Expose local server to internet
- Test webhooks during development
- Secure tunnels with authentication
Webhook.site
Quick Testing:
- Temporary webhook endpoints
- Inspect webhook payloads
- No setup required
- Go to webhook.site
- Copy the unique URL
- Use as webhook endpoint
- View received webhooks in browser
Test Event Simulation
Test Webhooks in Request PortalUse the Request Portal to send test webhook events to your endpoint for development and testing.