Bunne Docs
Webhooks

Desabilitar um endpoint de webhook.

Interrompe a entrega ao endpoint sem excluí-lo; o secret e o histórico são mantidos. Reversível via enable. Exige a permissão webhooks:update.

POST
/webhook-endpoints/{id}/disable

Interrompe a entrega ao endpoint sem excluí-lo; o secret e o histórico são mantidos. Reversível via enable. Exige a permissão webhooks:update.

Autorização

ApiKeyAuth
AutorizaçãoBearer <token>

Em: header

Parâmetros de caminho

id*string
Match^whsec_[A-Za-z0-9]+$

Corpo da resposta

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/webhook-endpoints/whsec_endpoint_xxx/disable"
{  "id": "string",  "object": "webhook_endpoint",  "url": "http://example.com",  "description": "string",  "environment": "TEST",  "events": [    "charge.created"  ],  "enabled": true,  "seller_id": "string",  "secret_rotation": {    "status": "active",    "rotated_at": "2019-08-24T14:15:22Z",    "expires_at": "2019-08-24T14:15:22Z",    "warned_at": "2019-08-24T14:15:22Z",    "grace_ends_at": "2019-08-24T14:15:22Z",    "invalidated_at": "2019-08-24T14:15:22Z"  },  "created_at": "2019-08-24T14:15:22Z",  "request_id": "req_xxx"}