Skip to main content
POST
Register webhook endpoint
This endpoint may return 404 in the sandbox environment. Configure webhooks through the Dashboard for sandbox testing.
To list, update, or delete webhook endpoints, use Dashboard > Settings > Webhooks. The API currently supports webhook registration only. Full CRUD via API is on the roadmap.

Supported Event Types

When registering a webhook, you can subscribe to any of the following payment event types:
  • payment.created
  • payment.succeeded
  • payment.failed
  • payment.declined
  • payment.cancelled
  • payment.expired
  • payment.refunded
  • payment.partially_refunded
See the Webhook Events reference for the full list of event types across all resources (subscriptions, payouts, customers, disputes, and BaaS).

Authorizations

public-api-key
string
header
required

Your public API key from the Yuno Dashboard

private-secret-key
string
header
required

Your private secret key (server-side only)

Body

application/json
url
string<uri>
required

Webhook endpoint URL

Example:

"https://example.com/webhooks/yuno"

events
string[]
required

Event types to subscribe to

Example:
secret
string

Shared secret for signature verification

Example:

"whsec_abc123def456"

Response

Webhook registered successfully

id
string<uuid>
Example:

"wh_a1b2c3d4-e5f6-7890-abcd-ef1234567890"

url
string<uri>
Example:

"https://example.com/webhooks/yuno"

events
string[]
Example:
status
enum<string>
Available options:
ACTIVE,
INACTIVE
Example:

"ACTIVE"

secret
string

Shared secret for HMAC signature verification

Example:

"whsec_abc123def456"

created_at
string<date-time>
Example:

"2026-03-01T10:00:00.000Z"