Update a webhook endpoint
POST / v1 / webhook_endpoints /:id
Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.
Parameters
- description string An optional description of what the webhook is used for.
- enabled _ events array of enums The list of events to enable for this endpoint. You may specify
['*']to enable all events, except those that require explicit selection. Possible enum valuesaccount.application.authorizedOccurs whenever a user authorizes an application. Sent to the related application only.account.application.deauthorizedOccurs whenever a user deauthorizes an application. Sent to the related application only.account.external_account.createdOccurs whenever an external account is created.account.external_account.deletedOccurs whenever an external account is deleted.account.external_account.updatedOccurs whenever an external account is updated.account.updatedOccurs whenever an account status or property has changed.application_fee.createdOccurs whenever an application fee is created on a charge.application_fee.refund.updatedOccurs whenever an application fee refund is updated.application_fee.refundedOccurs whenever an application fee is refunded, whether from refunding a charge or from refunding the application fee directly. This includes partial refunds.balance.availableOccurs whenever your Stripe balance has been updated (e.g., when a charge is available to be paid out). By default, Stripe automatically transfers funds in your balance to your bank account on a daily basis. This event is not fired for negative transactions. Show 225 more - metadata map Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata. - url string The URL of the webhook endpoint.
More parameters
- disabled boolean
Returns
The updated webhook endpoint object if successful. Otherwise, this call raises an error.
Response
{ "id": "we_1Mr5jULkdIwHu7ix1ibLTM0x", "object": "webhook_endpoint", "api_version": null, "application": null, "created": 1680122196, "description": null, "enabled_events": [ "charge.succeeded", "charge.failed" ], "livemode": false, "metadata": {}, "status": "disabled", "url": "https://example.com/new_endpoint"}
Retrieve a webhook endpoint
GET / v1 / webhook_endpoints /:id
Retrieves the webhook endpoint with the given ID.
Parameters
No parameters.
Returns
Returns a webhook endpoint if a valid webhook endpoint ID was provided. Raises an error otherwise.
Response
List all webhook endpoints
GET / v1 / webhook_endpoints
Returns a list of your webhook endpoints.
Parameters
No parameters.
More parameters
- ending _ before string
- limit integer
- starting _ after string
Returns
A dictionary with a data property that contains an array of up to limit webhook endpoints, starting after webhook endpoint starting_after. Each entry in the array is a separate webhook endpoint object. If no more webhook endpoints are available, the resulting array will be empty. This request should never raise an error.
Response
