Register a webhook
The publicly accessible HTTPS URL of your webhook endpoint. Example:
"https://yourapp.com/webhooks/pik"List of event types to subscribe to. Available values:
payment.confirmed, payment.settled, payment.failed201 Created
Unique webhook endpoint ID. Prefix:
wh_The registered webhook URL.
The list of subscribed event types.
HMAC-SHA256 signing secret. Only returned at creation. Use this to verify incoming webhook signatures.
Webhook status:
active or disabled.ISO 8601 timestamp of registration.
List webhooks
200 OK
Webhook event payload
Every webhook request PIK sends to your endpoint includes a JSON body with the following structure:The event type:
payment.confirmed, payment.settled, or payment.failedUnique event ID. Prefix:
evt_ISO 8601 timestamp of when the event was generated.
Event-specific data. For payment events, contains transaction details.
Signature verification
Each webhook request includes aPIK-Signature header containing an HMAC-SHA256 signature. Verify this signature to confirm the request came from PIK.
See Receive payment events with PIK Webhooks for code examples in Node.js and Python.