Skip to main content

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.
string
Unique identifier for the webhook configuration.
string
Publicly accessible HTTPS endpoint that receives event payloads.
string
Shared secret used to sign webhook payloads. Use this to verify that incoming requests originate from Orafi.
string[]
Event types the webhook is subscribed to. Only listed events are delivered.
datetime
When the webhook was created.
datetime
When the webhook was last updated.
string
Business profile that owns this webhook.

Available event types


Get webhook details

GET /webhook
Returns the current webhook configuration for the authenticated profile.

Get event types

GET /webhook/events
Returns all event types available for webhook subscriptions.

Register a webhook

POST /webhook/register
Registers or updates the webhook endpoint for your business profile. Orafi generates a secret automatically that you can use to verify payloads.

Request body

string
required
Publicly accessible HTTPS URL to receive webhook events.

Subscribe to an event

POST /webhook/subscribe
Adds an event type to your existing webhook subscription.

Request body

string
required
The event type to subscribe to (e.g. payment.failed).