Update Webhook Endpoint
Introduction
Interface
PUT /v1/webhook_endpoints
Request Params
Field | Name | Type | Range | Example | Default | Optional | Remark | Rule |
---|---|---|---|---|---|---|---|---|
url | URL | string | [1, 64] | required | ||||
event_types | Event Type | array | [1,64] | required | ||||
description | Description | string | [1,64] | optional |
Response Example
200 success:
{
"id": "we_anjHm9TG8O0SSGWH",
"object": "webhook_endpoint",
"livemode": true,
"url": "https://merchant.com/notify-receiver",
"event_types": [
"payment.succeeded"
],
"account": "acct_******",
"secret": "whsec_live_4y98G0Duj5GO50ez*****",
"description": "some description",
"time_created": "2022-12-12T14:22:57+08:00"
}