PayZuDocs

Set default key

Replaces the account default key with the given key.

PUThttps://api.hub.payzu.com.br/api/v1/transactions/pix-keys/{pixKeyId}/default
PUT
/transactions/pix-keys/{pixKeyId}/default

Path Params

Key identifier (id), not its value.

Responses

curl -X PUT "https://api.hub.payzu.com.br/api/v1/transactions/pix-keys/cmu5k2x0a000301s6ab12cd34/default" \  -H "Authorization: Bearer {{token}}"
{
"id": "cmu5k2x0a000301s6ab12cd34",
"key": "b3c7e9a2-4f1d-4c8a-9e2b-7d5f6a8c1e03",
"type": "EVP",
"status": "ACTIVE",
"isDefault": true,
"createdAt": "2026-09-17T14:32:05.123Z",
"updatedAt": "2026-09-17T14:32:05.123Z"
}