Rotate webhook secret
Generates a new HMAC secret, invalidates the previous one and shows the value only in this response.
Confira nosso tutorial
POST
https://api.payzu.processamento.com/v1/user/webhooks/{id}/rotate-secretResponses
curl -X POST "https://api.payzu.processamento.com/v1/user/webhooks/cm3w7k1t40000q8f2r5b9x3ad/rotate-secret" \ -H "Authorization: Bearer {{token}}"fetch("https://api.payzu.processamento.com/v1/user/webhooks/cm3w7k1t40000q8f2r5b9x3ad/rotate-secret", { method: "POST", headers: { "Authorization": "Bearer {{token}}" }})import requestsurl = "https://api.payzu.processamento.com/v1/user/webhooks/cm3w7k1t40000q8f2r5b9x3ad/rotate-secret"response = requests.request("POST", url, headers = { "Authorization": "Bearer {{token}}"})print(response.text)