Skip to main content

Webhook Notifications

Overview​

Webhooks allow you to receive real-time notifications about contract events. Instead of polling the API for updates, WePay will send HTTP POST requests to your specified endpoint whenever important events occur.

Key Benefits:

  • Real-time Updates: Get notified immediately when events occur
  • Reduced API Calls: No need to poll for status changes
  • Reliable Delivery: Automatic retries with exponential backoff
  • Secure: HMAC-SHA256 signature verification

Webhook Event Types​

WePay sends webhooks for the following events:

Event TypeDescription
contract.createdA new contract has been created
contract.approvedContract has been approved by the other party
contract.rejectedContract has been rejected
contract.cancelledContract has been cancelled
payment.completedPayment has been completed and funds are in escrow
contract.deliveredSeller marked the contract as delivered
contract.receivedBuyer confirmed receipt of delivery
contract.releasedFunds have been released to the seller
contract.disputedA dispute has been raised on the contract
contract.refundedContract has been refunded to the buyer
contract.completedContract has been fully completed
webhook.testTest webhook (sent via /webhooks/test endpoint)