PayZuDocs

Rotate webhook secret

Generates a new HMAC secret, invalidates the previous one and shows the value only in this response.

Confira nosso tutorial
POSThttps://api.payzu.processamento.com/v1/user/webhooks/{id}/rotate-secret
POST
/user/webhooks/{id}/rotate-secret

Path Params

Webhook id.

Responses

curl -X POST "https://api.payzu.processamento.com/v1/user/webhooks/cm3w7k1t40000q8f2r5b9x3ad/rotate-secret" \  -H "Authorization: Bearer {{token}}"
{
"secret": "q7Kx2mV9pL4sR8tW1nB6cY3hJ5dF0gZ-aE_uT7iO2kM"
}