Skip to main content
PATCH
Update a webhook endpoint

Path Parameters

endpoint_id
string
required

The webhook endpoint's ID.

Body

application/json

Fields to update on a webhook endpoint. Only the fields you send are changed.

name
string | null

Replaces the endpoint's label. Omit it to leave the current label unchanged.

Example:

"Production events (v2 receiver)"

url
string<uri> | null

Moves delivery to a different HTTPS URL. Events already queued for the old URL are retried against the new one, so cut over only once the new receiver is live.

Example:

"https://api.example.com/webhooks/bachs/v2"

event_types
enum<string>[] | null

Replaces the whole subscription list rather than adding to it, so send every type you still want. Omit the field to leave the current list untouched; sending an empty array is rejected.

Available options:
collection.succeeded,
collection.failed,
collection.underpaid,
checkout.completed,
checkout.expired,
payout.created,
payout.paid,
payout.failed,
refund.created,
refund.paid,
refund.failed,
conversion.completed,
conversion.failed,
customer.created,
customer.updated,
dispute.created,
dispute.updated,
customer.subscription.created,
customer.subscription.updated,
customer.subscription.deleted,
invoice.created,
invoice.paid,
invoice.payment_failed
Example:
event_source
enum<string>

Changes which account's events reach this endpoint. account: only your own account's events. connect: only the events of accounts you own. all: both. Omit it to leave the current setting unchanged.

Available options:
account,
connect,
all
Example:

"all"

enabled
boolean | null

Send false to stop all deliveries to this endpoint, or true to turn it back on. Turning it on clears its failure history, disabled_at and disabled_reason, but events from while it was off are not sent; resend them if you need them. Omit it to leave the endpoint as it is.

Example:

true

Response

The updated endpoint.

A webhook endpoint: a URL Bachs delivers events to, and the events it is subscribed to.

endpoint_id
string
required

Use this identifier to fetch, update, delete, or rotate the secret on this endpoint, and to scope event listings to it.

Example:

"whe_a1e823c073ab743ce5969ceef2db4d42"

name
string
required

The label you gave the endpoint. It is never sent to the endpoint itself.

Example:

"Production events"

url
string<uri>
required

The HTTPS URL we POST each subscribed event to. It must be reachable from the public internet and return a 2xx within 10 seconds. Anything else is recorded as a failed attempt; see Retries for which failures we try again.

Example:

"https://api.example.com/webhooks/bachs"

enabled
boolean
required

When true, matching events are delivered here. When false, nothing is sent to this URL, not even retries that were already queued, and events from while it was off are not sent later. We set it to false ourselves when deliveries keep failing; see disabled_reason and When an endpoint keeps failing.

Example:

true

event_types
enum<string>[]
required

The event types this endpoint receives, stored lowercase. Anything not listed is never delivered here, so add a type before you rely on it.

Available options:
collection.succeeded,
collection.failed,
collection.underpaid,
checkout.completed,
checkout.expired,
payout.created,
payout.paid,
payout.failed,
refund.created,
refund.paid,
refund.failed,
conversion.completed,
conversion.failed,
customer.created,
customer.updated,
dispute.created,
dispute.updated,
customer.subscription.created,
customer.subscription.updated,
customer.subscription.deleted,
invoice.created,
invoice.paid,
invoice.payment_failed
Example:
created_at
string
required

When the endpoint was created, as an ISO 8601 timestamp in UTC.

Example:

"2026-03-09T10:00:00.000Z"

updated_at
string
required

When the endpoint was last changed, as an ISO 8601 timestamp in UTC. Rotating the signing secret updates this.

Example:

"2026-03-09T10:00:00.000Z"

disabled_at
string<date-time> | null

When we turned this endpoint off because its deliveries kept failing, as an ISO 8601 timestamp in UTC. null while the endpoint is enabled, and when you turned it off yourself. See When an endpoint keeps failing.

Example:

"2026-03-12T14:05:00.000Z"

disabled_reason
enum<string> | null

Why we turned this endpoint off. consecutive_failures: every delivery to it failed for at least 72 hours, with no success in between, and we emailed a warning at least 48 hours earlier. null while the endpoint is enabled, and when you turned it off yourself.

Available options:
consecutive_failures,
null
Example:

"consecutive_failures"

event_source
enum<string>

Which account's events reach this endpoint. account: only events that happened on your own account. connect: only events that happened on accounts you own. all: both.

Available options:
account,
connect,
all
Example:

"account"