Bunne Docs
Webhooks

Habilitar um endpoint de webhook.

Retoma a entrega a um endpoint previamente desabilitado. Exige a permissão webhooks:update.

POST
/webhook-endpoints/{id}/enable

Retoma a entrega a um endpoint previamente desabilitado. 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/enable"
{  "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"}