- API Introduction
- Error Code
- Payment Intents
- Charges
- Payment Methods
- Refunds
- Webhooks
- Events
- Files
- Disputes
- Payouts
- Balance
- Products
- Prices
- Payment Links
- Checkout
- Customers
- Setup Intents
- Invoices
- Invoice Items
- Invoice Line Item
- Subscriptions
- Subscription Items
- Issuing
- Authorizations
- Cardholders
- Cards
- Transactions
- Coupons
- Promotion Code
- Accounts
Update a Webhook
POST
/v1/webhook_endpoints/{id}
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic YWRtaW46MTIzNDU2
Path Params
id
string
required
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Body Params application/json
description
string
optional
enabled_events
array[string]
optional
metadata
object
optional
url
string
optional
disabled
boolean
optional
Example
{
"url": "https://another_address.com"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apitest.wooshpay.com/v1/webhook_endpoints/?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"url": "https://another_address.com"
}'
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
Default:
"webhook_endpoint"
api_version
string
optional
created
integer
optional
description
string
optional
enabled_events
array[string]
optional
livemode
boolean
optional
metadata
object
optional
status
string
optional
secret
string
optional
url
string
optional
Example
{
"id": "we_1M3fqHHTdYyGj2Y6LeGVaamQ",
"object": "webhook_endpoint",
"api_version": null,
"created": 1668344601,
"description": "This is my webhook, I like it a lot",
"enabled_events": [
"payment_intent.succeeded",
"payment_intent.payment_failed",
"charge.refund.updated",
"charge.dispute.updated"
],
"livemode": false,
"metadata": {},
"status": "enabled",
"url": "https://example.com/my/webhook/endpoint",
"secret": "whsec_9rMfZUGWM3gTTBtn0f8kPEfmiIJCmzQi"
}
Modified at 2024-02-27 07:33:25