Webhooks API
Base URL: https://api.peakgateway.co
List webhook endpoints
GET /v1/webhooks
Returns configured webhook endpoints and their delivery settings.
Event types
Common payment lifecycle events include:
transaction.createdtransaction.authorizedtransaction.capturedtransaction.refundedsubscription.createdsettlement.generated
Signature verification
Verify incoming webhook signatures before processing payloads:
- Read the raw request body
- Compute an HMAC using your webhook signing secret
- Compare against the signature header in constant time
- Reject requests with invalid signatures
Also enforce timestamp drift limits and replay protection.