curl --request POST \
--url https://api.owem.com.br/v4/i/webhooks/config \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>",
"authHeader": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["*"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1766523042000,
"updatedAt": 1766523042000,
"deletedAt": null
}
}
Cria uma configuração de webhook para receber eventos da Owem. Configure notificações em tempo real para PIX IN, PIX OUT e MEDs.
curl --request POST \
--url https://api.owem.com.br/v4/i/webhooks/config \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>",
"authHeader": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["*"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1766523042000,
"updatedAt": 1766523042000,
"deletedAt": null
}
}
Basic {Base64(API_KEY:API_SECRET)}34.134.50.53, 35.238.101.57["*"] para todos os eventos, ou liste
específicos.Authorization em todas as chamadas de webhook.| Evento | Descrição |
|---|---|
pix_in:qrcode_paid | Pagamento via QR Code |
pix_in:credited | Crédito via chave PIX |
pix_in:refunded_processing | Estorno de PIX IN iniciado |
pix_out:processing | PIX OUT registrado |
pix_out:refunded_processing | Devolução de PIX OUT |
med:received | MED recebido |
* | Todos os eventos |
Mostrar data
Authorization nos envios{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["*"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1766523042000,
"updatedAt": 1766523042000,
"deletedAt": null
}
}
| HTTP | Descrição |
|---|---|
| 201 | Configuração criada |
| 400 | Payload inválido |
| 401 | Credenciais inválidas |
| 403 | IP não allowlisted |
| 409 | Conflito (config duplicada) |
| 429 | Rate limit excedido |
| 500 | Erro interno |
{
"event": ["*"],
"targetUrl": "https://hooks.cliente.com/owem",
"authHeader": "Bearer whsec_abc123example"
}
authHeader como segredo e rotacione periodicamente.Esta página foi útil?