Truztcube Docs

Payment webhook

Webhook endpoint for payment gateway events. Used by Paystack to notify payment status.

POST/v1/payments/webhook

Header Parameters

x-paystack-signature*string

Paystack webhook signature for verification

user-agent*string

Response Body

application/json

curl -X POST "https://example.com/v1/payments/webhook" \  -H "x-paystack-signature: string" \  -H "user-agent: string"
{  "success": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2025-10-20T16:30:00.000Z",  "path": "/v1/auth/register",  "data": {    "success": true,    "event": "charge.success",    "reference": "REF_1634567890123",    "message": "Webhook processed successfully"  }}