Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Rattray (Stripe) rattrayalex-stripe

View GitHub Profile
View webhook_endpoints_spec3.toml
[paths."/v1/webhook_endpoints"]
[paths."/v1/webhook_endpoints".get]
description = "<p>Returns a list of your webhook endpoints.</p>"
operationId = "NotificationWebhookEndpointAll"
[[paths."/v1/webhook_endpoints".get.parameters]]
description = "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list."
in = "query"
name = "ending_before"
View webhook_create_spec3.toml
[paths."/v1/webhook_endpoints".post]
description = "<p>A webhook endpoint must have a <code>url</code> and a list of <code>enabled_events</code>. You may optionally specify the Boolean <code>connect</code> parameter. If set to true, then a Connect webhook endpoint that notifies the specified <code>url</code> about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified <code>url</code> only about events from your account is created. You can also create webhook endpoints in the <a href=\"https://dashboard.stripe.com/account/webhooks\">webhooks settings</a> section of the Dashboard.</p>"
operationId = "NotificationWebhookEndpointCreate"
[paths."/v1/webhook_endpoints".post.requestBody]
required = true
[paths."/v1/webhook_endpoints".post.requestBody.content]
[paths."/v1/webhook_endpoints".post.requestBody.content."application/x-www-form-urlencoded"]