Skip to main content
POST
/
v1
/
webhooks
Register webhook endpoint
curl --request POST \
  --url https://api-sandbox.y.uno/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'private-secret-key: <api-key>' \
  --header 'public-api-key: <api-key>' \
  --data '
{
  "url": "https://example.com/webhooks/yuno",
  "events": [
    "payment.succeeded",
    "payment.failed",
    "payment.refunded"
  ],
  "secret": "whsec_abc123def456"
}
'
{
  "id": "wh_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "url": "https://example.com/webhooks/yuno",
  "events": [
    "payment.succeeded",
    "payment.failed",
    "payment.refunded"
  ],
  "status": "ACTIVE",
  "secret": "whsec_abc123def456",
  "created_at": "2026-03-01T10:00:00.000Z"
}
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:
[
"payment.succeeded",
"payment.failed",
"payment.refunded"
]
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:
[
"payment.succeeded",
"payment.failed",
"payment.refunded"
]
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"