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": "whsec_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
}