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.releasedFunds have been released to the seller
contract.disputedA dispute has been raised on the contract
contract.completedContract has been fully completed
refund.full-initiatedContract full refund has been initiated
refund.full-succeededContract full refund has been succeeded
milestone.payment.completedMilestone payment has been completed
milestone.releasedMilestone has been released
milestone.disputedMilestone has been disputed
milestone.completedMilestone has been fully completed
milestone.refund.full-initiatedMilestone full refund has been initiated
milestone.refund.full-succeededMilestone full refund has been succeeded
dispute.createdDispute has been created
dispute.resolvedDispute has been resolved
webhook.testTest webhook (sent via /webhooks/test endpoint)