Eventos
Contexto transaction
transaction| Nome | Descrição |
|---|---|
| transaction.refunded | Enviado quando uma parcela é reembolsada. |
| transaction.done | Enviado quando uma parcela é concluída. |
| transaction.cancelled | Enviado quando uma parcela é cancelada. |
Exemplo
Evento: transaction.refunded
{
"context": "transaction",
"event": "transaction.refunded",
"establishment": "ddf39042-47b4-41fd-b3c7-ff5e0e797168",
"timestamp": "2024-08-19T18:19:44.433Z",
"version": "1",
"data": {
"establishment_id": "ddf39042-47b4-41fd-b3c7-ff5e0e797168",
"id_transaction": "txn_abcdef123456",
"id_order": "ord_1234567890",
"id_merchant": "merch_9876543210",
"id_split": "split_1234567890",
"status": "refund",
"installment": 3,
"nsu": "nsu_123456",
"amount_gross": 10000,
"amount_mdr": 300,
"amount_anticipation": 200,
"amount_net": 9500,
"payment_date": "2024-08-19T12:34:56Z",
"updated_at": "2024-08-19T12:34:56Z"
}
}Evento: transaction.done
{
"context": "transaction",
"event": "transaction.done",
"establishment": "ddf39042-47b4-41fd-b3c7-ff5e0e797168",
"timestamp": "2024-08-19T18:18:01.005Z",
"version": "1",
"data": {
"establishment_id": "ddf39042-47b4-41fd-b3c7-ff5e0e797168",
"id_transaction": "txn_abcdef123456",
"id_order": "ord_1234567890",
"id_merchant": "merch_9876543210",
"id_split": "split_1234567890",
"status": "done",
"installment": 3,
"nsu": "nsu_123456",
"amount_gross": 10000,
"amount_mdr": 300,
"amount_anticipation": 200,
"amount_net": 9500,
"payment_date": "2024-08-19T12:34:56Z",
"updated_at": "2024-08-19T12:34:56Z"
}
}Evento: transaction.cancelled
{
"context": "transaction",
"event": "transaction.cancelled",
"establishment": "ddf39042-47b4-41fd-b3c7-ff5e0e797168",
"timestamp": "2024-08-19T18:18:01.005Z",
"version": "1",
"data": {
"establishment_id": "ddf39042-47b4-41fd-b3c7-ff5e0e797168",
"id_transaction": "txn_abcdef123456",
"id_order": "ord_1234567890",
"id_merchant": "merch_9876543210",
"id_split": "split_1234567890",
"status": "cancelled",
"installment": 3,
"nsu": "nsu_123456",
"amount_gross": 10000,
"amount_mdr": 300,
"amount_anticipation": 200,
"amount_net": 9500,
"payment_date": "2024-08-19T12:34:56Z",
"updated_at": "2024-08-19T12:34:56Z"
}
}