WebhookTransaction
Representa una transacción o intento de entrega de un evento a un webhook.
id string
Identificador único de la transacción del webhook (token).
Example:
whtx_1B2M2Y8AsgTpgAmY7PhCde
event_id string
Identificador único del evento que generó esta transacción.
Example:
evt_1B2M2Y8AsgTpgAmY7PhCgf
event_name string
Nombre del evento que generó esta transacción.
Example:
agreement.created
response_code integer
Código de respuesta HTTP recibido del endpoint del webhook.
Example:
200
response_body string
Cuerpo de la respuesta recibida del endpoint del webhook.
Example:
{"status": "received"}
response_headers object
Cabeceras de la respuesta recibida del endpoint del webhook.
property name* string
successful boolean
Indica si la entrega del evento fue exitosa.
Example:
true
error_message stringnullable
Mensaje de error en caso de que la entrega haya fallado.
Example:
Connection timed out
created_at date-time
Fecha y hora de creación de la transacción del webhook.
Example:
2024-03-21T10:00:00Z
WebhookTransaction
{
"id": "whtx_1B2M2Y8AsgTpgAmY7PhCde",
"event_id": "evt_1B2M2Y8AsgTpgAmY7PhCgf",
"event_name": "agreement.created",
"response_code": 200,
"response_body": "{\"status\": \"received\"}",
"response_headers": {
"Content-Type": "application/json",
"X-Request-ID": "12345f-abc-6789"
},
"successful": true,
"error_message": "Connection timed out",
"created_at": "2024-03-21T10:00:00Z"
}