跳转到主要内容
DELETE
删除 Webhook
删除 webhook。Yuno 会停止向其 url 发送通知,并返回已删除的 webhook,以便您保留其订阅事件的记录。 如需停止通知但保留配置,请改用 更新 Webhook 将 state 设置为 INACTIVE。

授权

public-api-key
string
header
默认值:<Your public-api-key>
必填
private-secret-key
string
header
默认值:<Your private-secret-key>
必填

路径参数

webhook_id
string
必填

webhook 的唯一标识符,由列出 Webhook返回。

示例:

"12345"

查询参数

account_id
string<uuid>
必填

webhook 所属账户的唯一标识符。

示例:

"493e9374-510a-4201-9e09-de669d75f256"

响应

您删除的 webhook。

id
string

webhook 的唯一标识符。

示例:

"12345"

account_id
string<uuid>

webhook 所属账户的唯一标识符。

示例:

"493e9374-510a-4201-9e09-de669d75f256"

name
string

您为 webhook 起的名称。

示例:

"Production payments listener"

state
enum<string>

ACTIVE 的 webhook 会接收通知,INACTIVE 的不会。webhook 创建时为 ACTIVE。

可用选项:
ACTIVE,
INACTIVE
示例:

"ACTIVE"

url
string

Yuno 发送通知的目标 endpoint。

示例:

"https://api.acme.com/yuno/webhooks"

api_key
string | null

以 *** 掩码显示;如果您尚未配置,则为 null。

示例:

"***"

secret
string | null

以 *** 掩码显示;如果您尚未配置,则为 null。

示例:

"***"

hmac_client_secret
string | null

以 *** 掩码显示;如果您尚未配置,则为 null。

示例:

"***"

oauth2_authentication_url
string | null

您的令牌 endpoint。

示例:

"https://api.acme.com/oauth/token"

oauth2_client_secret
string | null

以 *** 掩码显示;如果您尚未配置,则为 null。

示例:

"***"

oauth2_client_id
string | null

Yuno 用于身份验证的客户端标识符。

示例:

"acme_client_id"

oauth2_grant_type
string | null

Yuno 请求令牌时使用的授权类型。

示例:

"client_credentials"

oauth2_scope
string | null

请求令牌时使用的范围。

示例:

"webhooks:write"

oauth2_authorization_name
string | null

Yuno 发送令牌所使用的标头。

示例:

"Authorization"

oauth2_include_client_id
boolean

Yuno 是否同时在令牌请求中将客户端标识符作为标头发送。

示例:

true

enrollment_triggers
string[] | null

webhook 订阅的注册事件。

示例:
payment_triggers
string[] | null

webhook 订阅的支付事件。

示例:
report_triggers
string[] | null

webhook 订阅的报告事件。

示例:
subscription_triggers
string[] | null

webhook 订阅的订阅事件。

示例:
onboarding_triggers
string[] | null

webhook 订阅的 onboarding 事件。

示例:
renewal_days
integer | null

Yuno 在续订前多少天发送 CLOSE_TO_RENEWAL 通知。

示例:

5

created_at
string<date-time>

webhook 的创建日期和时间,采用 ISO 8601。

示例:

"2026-07-09T13:05:36.482913Z"

updated_at
string<date-time>

webhook 的最近更新日期和时间,采用 ISO 8601。在您首次更新 webhook 之前,它与 created_at 相同。

示例:

"2026-07-11T16:20:44.918330Z"