Skip to main content
PATCH
Update a webhook endpoint

Authorizations

Authorization
string
header
required

Your API key in Authorization: Bearer <key>. Use vk_test_… keys against the sandbox and vk_live_… keys against production.

Path Parameters

webhookEndpointId
integer<uint64>
required

Webhook endpoint id. Unsigned 64-bit integer (ids and large counters). May exceed 2^53; parse with a BigInt-safe JSON parser in JavaScript.

Required range: 0 <= x <= 18446744073709552000

Body

application/json

Changes; eventTypes is replaced as a whole.

url
string<uri>

Receiver URL.

description
string | null

Description.

Maximum string length: 200
eventTypes
enum<string>[]

Event types (1-30).

Required array length: 1 - 30 elements

A consumer webhook type. Billing types (invoice-*, payment-failed, payment-method-deactivated) need view-consumer-billing, price-terms-* types need view-consumer-pricing. Treat as an open set: new values may be added.

Available options:
redemption-created,
redemption-voided,
redemption-entity-created,
redemption-link-exhausted,
redemption-link-expired,
catalog-voucher-set-available,
catalog-voucher-set-updated,
catalog-voucher-set-activation-scheduled,
catalog-voucher-set-activated,
catalog-voucher-set-deactivation-scheduled,
catalog-voucher-set-deactivated,
catalog-voucher-set-unavailable,
catalog-voucher-set-stock-low,
catalog-voucher-set-depleted,
webhook-endpoint-test,
invoice-finalised,
invoice-paid,
invoice-overdue,
invoice-voided,
payment-failed,
payment-method-deactivated,
price-terms-change-scheduled,
price-terms-acceptance-required,
price-terms-accepted

Response

OK

Single-object envelope around a WebhookEndpoint.

data
object
required

A webhook endpoint (secrets are never returned after they are issued).