Webhook de resultado da Dataprev
curl --request POST \
--url https://api.example.com/offers/result \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"result": {},
"status": "<string>",
"endpoint": "<string>",
"request_id": "<string>",
"status_code": "<string>",
"processed_at": "<string>",
"correlation_id": "<string>"
}
'import requests
url = "https://api.example.com/offers/result"
payload = {
"result": {},
"status": "<string>",
"endpoint": "<string>",
"request_id": "<string>",
"status_code": "<string>",
"processed_at": "<string>",
"correlation_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
result: {},
status: '<string>',
endpoint: '<string>',
request_id: '<string>',
status_code: '<string>',
processed_at: '<string>',
correlation_id: '<string>'
})
};
fetch('https://api.example.com/offers/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Ofertas
Webhook de resultado da Dataprev
Webhook interno que informa o resultado do envio da oferta à DATAPREV
POST
/
offers
/
result
Webhook de resultado da Dataprev
curl --request POST \
--url https://api.example.com/offers/result \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"result": {},
"status": "<string>",
"endpoint": "<string>",
"request_id": "<string>",
"status_code": "<string>",
"processed_at": "<string>",
"correlation_id": "<string>"
}
'import requests
url = "https://api.example.com/offers/result"
payload = {
"result": {},
"status": "<string>",
"endpoint": "<string>",
"request_id": "<string>",
"status_code": "<string>",
"processed_at": "<string>",
"correlation_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
result: {},
status: '<string>',
endpoint: '<string>',
request_id: '<string>',
status_code: '<string>',
processed_at: '<string>',
correlation_id: '<string>'
})
};
fetch('https://api.example.com/offers/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Endpoint interno — recebido pela Zipdin, não é uma chamada que o parceiro faz. Documentado aqui para
referência do formato do evento.
Corpo do evento
object
Resultado do processamento
string
Status do processamento (ex.:
completed)string
Endpoint de origem (ex.:
contract/averbacao)string
Identificador da requisição
string
Código HTTP do processamento
string
Data/hora do processamento
string
ID de correlação
Exemplo
{
"result": {},
"status": "completed",
"endpoint": "contract/averbacao",
"request_id": "e7f8a9b0-c1d2-3456-e7f8-a9b0c1d23456",
"status_code": "200",
"processed_at": "2026-05-20T10:15:32.520-03:00",
"correlation_id": "b2c3d4e5-f6a7-8901-bcde-f23456789012"
}
