PayZuDocs

创建 webhook

注册一个接收回调的 URL,并可选生成仅显示一次的 HMAC 密钥。

Confira nosso tutorial
POSThttps://api.payzu.processamento.com/v1/user/webhooks
POST
/user/webhooks

Body Params

Responses

curl -X POST "https://api.payzu.processamento.com/v1/user/webhooks" \  -H "Authorization: Bearer {{token}}" \  -H "Content-Type: application/json" \  -d '{    "url": "https://sualoja.com.br/webhook"  }'
{
"id": "cm3w7k1t40000q8f2r5b9x3ad",
"url": "https://sualoja.com.br/webhook",
"active": true,
"hasSecret": true,
"createdAt": "2026-08-10T12:00:00.000Z",
"updatedAt": "2026-08-10T12:00:00.000Z",
"secret": "whsec_9f8a2b7c6d5e4f3a2b1c0d9e8f7a6b5c"
}