API Reference
Remover webhook
DELETE /v1/pix-accounts/:accountId/webhooks/:webhookId — desativa o endpoint.
Remove endpoint de webhook
Desativa o webhook (soft delete). O registro permanece para auditoria, mas eventos futuros deixam de ser entregues. Para reativar, basta criar um novo webhook.
DELETE/v1/pix-accounts/:accountId/webhooks/:webhookId
É um soft delete: o registro continua aparecendo em listagens com enabled: false. Eventos pix.* deixam de ser entregues imediatamente para esta URL.
Path params
- accountIdObrigatóriostringID da conta Pix.
- webhookIdObrigatóriostringIdentificador do webhook.
Headers
- AuthorizationObrigatóriostringBearer SUA_API_KEY
- Idempotency-KeyObrigatóriostringUUID para retry seguro.
Exemplo de requisição
bash
curl -X DELETE https://api.staterpay.io/v1/pix-accounts/cmoxample0001qkxyzaccount/webhooks/cmoxample0001qkxyzwebhook \ -H "Authorization: Bearer SUA_API_KEY" \ -H "Idempotency-Key: 56dbefc2-0506-4d49-b723-46ded961585e"Resposta
- idstringIdentificador do webhook desativado.
- enabledbooleanSempre false após DELETE.
json
{ "id": "cmoxample0001qkxyzwebhook", "enabled": false}URL base:
https://api.staterpay.io