When This Webhook is Sent
Trigger Event
Sent to banks when a merchant calls
POST /v1/billing/intent to request billing permission from a customer.billing.intent
Recipient: Banks
Frequency: Real-time (immediate)
Webhook Payload Structure
Headers
Payload Schema
Field Descriptions
Payload Field Details
Payload Field Details
Webhook Metadata
Webhook Metadata
- entityId: Your bank’s unique identifier - entityType: Always “bank” for bank webhooks - webhookType: Always “billing.intent” for this webhook - timestamp: ISO 8601 timestamp when webhook was sent - batchId: Unique identifier for this webhook batch - itemCount: Number of billing intents in this webhook
Customer Information
Customer Information
- customerId: Your internal customer identifier - customerEmail: Customer’s email address - lookupPhrase: Phrase used by merchant to find customer - agreementPhrase: Phrase to be used for future billing (if approved)
Merchant Information
Merchant Information
- merchant.id: Merchant’s unique identifier in Peere Network - merchant.name: Business name displayed to customer - merchant.icon: Logo URL for customer recognition - merchant.email: Merchant contact email - merchant.website: Merchant website URL
Request Details
Request Details
- currency: Currency code for billing (e.g., “NGN”) - description: Merchant’s description of billing purpose - reference: Unique reference for this billing intent - dueDate: When customer decision is expected
Implementation Guide
1. Webhook Endpoint Setup
2. Customer Notification Implementation
- FCM Push Notification
- Email Notification
- In-App Notification
3. Customer Response Handling
After receiving the billing intent webhook, you need to collect the customer’s decision and respond:Testing Your Implementation
1. Webhook Testing
2. Integration Testing
Customer Notification
Test that customers receive notifications via your chosen channels (FCM, email, in-app)
Best Practices
Security
- Always verify webhook signatures - Use HTTPS for webhook endpoints - Implement rate limiting - Log security events
Reliability
- Handle webhook retries gracefully - Implement idempotency checks - Use database transactions - Monitor webhook processing
User Experience
- Send timely notifications - Provide clear merchant information - Make decision process simple - Show spending limit options
Monitoring
- Track webhook delivery rates - Monitor customer response times - Log processing errors - Set up alerting for failures
Next Steps
Bank Response Webhook
Handle customer responses to billing requests
Intent Response Webhook
Process customer decisions on billing intents
Webhook Security
Learn advanced webhook security practices
API Reference
Explore bank API endpoints