Skip to main content

Update Webhook Endpoint

Introduction

Interface

PUT /v1/webhook_endpoints

Request Params

FieldNameTypeRangeExampleDefaultOptionalRemarkRule
urlURLstring[1, 64]required
event_typesEvent Typearray[1,64]required
descriptionDescriptionstring[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"
}