Skip to content

Auth Webhook 配置

配置 Slash 在实时交易授权/拒绝决策时调用的授权 webhook。

Get Config

POST/partner/channel/slash/auth-webhook/get internal

获取某个账户当前的授权 webhook 配置。

Request Body

使用 SecureChannelRequest<AuthWebhookGetRequest> 包裹:

NameTypeRequiredDescription
accountIdstringRequiredSlash account ID

Response

返回 AuthorizationWebhook


Set Config

POST/partner/channel/slash/auth-webhook/set internal

设置(创建或替换)授权 webhook 配置。

Request Body

使用 SecureChannelRequest<AuthWebhookSetRequest> 包裹:

NameTypeRequiredDescription
accountIdstringRequiredSlash account ID
requestSetAuthorizationWebhookRequestRequiredWebhook 配置(URL、secret、events)

Response

返回配置后的 AuthorizationWebhook


Update Config

POST/partner/channel/slash/auth-webhook/update internal

对授权 webhook 配置做部分更新。

Request Body

使用 SecureChannelRequest<AuthWebhookUpdateRequest> 包裹:

NameTypeRequiredDescription
accountIdstringRequiredSlash account ID
requestAuthorizationWebhookPatchRequestRequired需要 patch 的字段

Response

返回更新后的 AuthorizationWebhook

SlaunchX Internal Documentation