The webhook object
A webhook is a callback configuration that tells Orafi where to deliver event notifications. Each business profile can have one active webhook.Unique identifier for the webhook configuration.
Publicly accessible HTTPS endpoint that receives event payloads.
Shared secret used to sign webhook payloads. Use this to verify that incoming requests originate from Orafi.
Event types the webhook is subscribed to. Only listed events are delivered.
When the webhook was created.
When the webhook was last updated.
Business profile that owns this webhook.
Available event types
| Event | Description |
|---|---|
payment.success | A payment was completed successfully |
payment.failed | A payment attempt failed |
Get webhook details
GET
Returns the current webhook configuration for the authenticated profile.
/webhookGet event types
GET
Returns all event types available for webhook subscriptions.
/webhook/eventsRegister a webhook
POST
Registers or updates the webhook endpoint for your business profile. Orafi generates a /webhook/registersecret automatically that you can use to verify payloads.
Request body
Publicly accessible HTTPS URL to receive webhook events.
Subscribe to an event
POST
Adds an event type to your existing webhook subscription.
/webhook/subscribeRequest body
The event type to subscribe to (e.g.
payment.failed).