curl --request PUT \
--url https://api.owem.com.br/v4/i/webhooks/config/{configId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1766523042000,
"updatedAt": 1766526642000,
"deletedAt": null,
"id": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"uid": "wc_bd121426-4da1-4de4-b420-1b063aef81ee"
}
}
Atualiza os campos de uma configuração de webhook existente. Modifique URL, eventos e autenticação.
curl --request PUT \
--url https://api.owem.com.br/v4/i/webhooks/config/{configId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1766523042000,
"updatedAt": 1766526642000,
"deletedAt": null,
"id": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"uid": "wc_bd121426-4da1-4de4-b420-1b063aef81ee"
}
}
Basic {Base64(API_KEY:API_SECRET)}["*"] para todos ou liste eventos específicos.event e targetUrl são aceitos. Campos não enviados não são
alterados.Mostrar data
Authorization{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1766523042000,
"updatedAt": 1766526642000,
"deletedAt": null,
"id": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"uid": "wc_bd121426-4da1-4de4-b420-1b063aef81ee"
}
}
| HTTP | Descrição |
|---|---|
| 200 | Configuração atualizada |
| 400 | Payload inválido |
| 401 | Credenciais inválidas |
| 403 | IP não allowlisted |
| 404 | configId não encontrado |
| 409 | Conflito de configuração |
| 429 | Rate limit excedido |
| 500 | Erro interno |
{
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://novo-endpoint.cliente.com/owem"
}
Esta página foi útil?