Webhooks and events
PATCH/v1/webhook-endpoints/{ep_id}

Update webhook endpoint

View as .md
curl -X PATCH "https://api.52-28-238-205.sslip.io/v1/webhook-endpoints/{ep_id}" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"url":"https://example.com/resource","event_types":["string"],"description":"Example","status":"active"}'

Changes the URL (SSRF-checked again), event types, description, or status (enabled or disabled). Requires developer:manage.

Server URLhttps://api.52-28-238-205.sslip.io
PATCH/v1/webhook-endpoints/{ep_id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • ep_idstringrequired

    Webhook endpoint id (we_...).

Body

application/json · required. Fields are listed under Request body below.

Requires permissiondeveloper:manage
Held by owner, admin, developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

ep_id*Ep Id

Webhook endpoint id (we_...).

Request Body

application/json
  1. body
url?|

URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.

event_types?array<string>|

Event types the endpoint receives, or * for all.

description?|null
status?|

Current state; the allowed values and moves are in the state machines reference.

Response Body

Success.

application/json
  1. response
endpoint*
[key: string]?any