Esse webhook é acionado e envia uma notificação via POST a cada alteração do status de uma transação. Ele é aplicado para todas as formas de pagamento e compreende todo o ciclo de vida de uma transação.
AtençãoEntrega das notificações
- Se o webhook de um status mais recente for entregue com sucesso (código HTTP 2xx), todos os eventos anteriores ainda pendentes da mesma transação não serão enviados.
Eventos
{
"IdTransaction": 2091328,
"TransactionStatus": {
"Id": 1,
"Code": "1",
"Name": "Pendente"
},
"PaymentMethod": {
"Id": 1,
"Code": "1",
"Name": "Boleto"
},
"Application": "Venda Rápida",
"Vendor": "Vendedor 1",
"Amount": 1,
"IncluedDate": "2020-02-13T14:57:20.9",
"InstallmentQuantity": 0,
"SecretKey": "SECRET_KEY",
"Reference": "Pedido 48",
"DiscountAmount": 0.05
}
{
"IdTransaction": 2086999,
"TransactionStatus": {
"Id": 2,
"Code": "2",
"Name": "Processamento"
},
"PaymentMethod": {
"Id": 1,
"Code": "1",
"Name": "Boleto"
},
"Application": "Sistema de Gestão",
"Vendor": "Vendedor",
"Amount": 191.89,
"PaymentDate": "2020-02-13T15:00:00",
"IncluedDate": "2020-02-13T10:18:41.51",
"InstallmentQuantity": 0,
"SecretKey": "SECRET_KEY",
"PaidValue": 191.89,
"AdditionValue": 0,
"DiscountValue": 0,
"Reference": "91137"
}
{
"IdTransaction": 1985277,
"TransactionStatus": {
"Id": 6,
"Code": "6",
"Name": "Estornado"
},
"PaymentMethod": {
"Id": 2,
"Code": "2",
"Name": "Cartão de Crédito"
},
"Application": "Aplicação de teste",
"Vendor": "Vededor Teste",
"Amount": 5,
"PaymentDate": "2020-01-30T09:44:43.917",
"IncluedDate": "2020-01-30T09:44:39.463",
"InstallmentQuantity": 0,
"SecretKey": "SECRET_KEY",
"Reference": ""
}
{
"IdTransaction": 2081106,
"TransactionStatus": {
"Id": 7,
"Code": "7",
"Name": "Baixado"
},
"PaymentMethod": {
"Id": 1,
"Code": "1",
"Name": "Boleto"
},
"Application": "NF-e",
"Vendor": "Não informado",
"Amount": 530,
"IncluedDate": "2020-02-12T11:56:44.663",
"InstallmentQuantity": 0,
"SecretKey": "SECRET_KEY",
"Reference": "1229"
}
{
"IdTransaction": 2036495,
"TransactionStatus": {
"Id": 11,
"Code": "11",
"Name": "Liberado"
},
"PaymentMethod": {
"Id": 1,
"Code": "1",
"Name": "Boleto"
},
"Application": "safe2pay-integration",
"Vendor": "safe2pay-tests",
"Amount": 100,
"IncluedDate": "2020-02-05T14:07:42.27",
"InstallmentQuantity": 0,
"SecretKey": "SECRET_KEY",
"Reference": "1229"
}
Eventos de pagamentos autorizados
{
"IdTransaction": 2081955,
"TransactionStatus": {
"Id": 3,
"Code": "3",
"Name": "Autorizado"
},
"CheckingAccounts": [
{
"Description": "CLIENTE DE TESTE (111111111111)",
"Amount": 45.73,
"Tax": 1.7,
"IsTransferred": false,
"ReleaseDate": "2020-02-14T00:00:00"
}
],
"PaymentMethod": {
"Id": 1,
"Code": "1",
"Name": "Boleto"
},
"Application": "Pagamento",
"Vendor": "E-commerce",
"Amount": 47.43,
"PaymentDate": "2020-02-12T00:00:00",
"IncluedDate": "2020-02-12T13:07:59.84",
"EndToEndId": "",
"InstallmentQuantity": 0,
"SecretKey": "SECRET_KEY",
"TaxValue": 1.7,
"NetValue": 45.73,
"PaidValue": 47.43,
"AdditionValue": 0,
"DiscountValue": 0,
"Reference": "147075358"
}
{
"IdTransaction": 1040415,
"TransactionStatus": {
"Id": 3,
"Code": "3",
"Name": "Autorizado"
},
"CheckingAccounts": [
{
"Description": "João da Silva(29742237026)",
"Amount": 0.01,
"Tax": 0,
"IsTransferred": false,
"ReleaseDate": "2019-10-14T00:00:00",
"InstallmentNumber": 1
}
],
"PaymentMethod": {
"Id": 2,
"Code": "2",
"Name": "Cartão de Crédito"
},
"Application": "Teste Safe2Pay",
"Vendor": "Lucas Diogo",
"Amount": 200.0,
"PaymentDate": "2019-09-11T12:57:50.587",
"IncluedDate": "2019-09-11T12:42:54.143",
"EndToEndId": "",
"InstallmentQuantity": 1,
"SecretKey": "SECRET_KEY",
"TaxValue": 205.2,
"NetValue": -5.2,
"Reference": "",
"Tid": "020006495642",
"AuthorizationCode": "205340",
"Splits": [
{
"IdTransactionSplitter": 1040416,
"IdReceiver": 18,
"CodeTaxType": 2,
"Identity": "99999999999",
"Name": "Empresa Teste Marketplace",
"IsPayTax": true,
"Amount": 200,
"CheckingAccounts": [
{
"Description": "Descrição de Teste",
"Amount": 200,
"Tax": 0,
"IsTransferred": false,
"ReleaseDate": "2019-09-11T00:00:00",
"InstallmentNumber": 1
}
]
}
]
}
{
"IdTransaction": 26630087,
"TransactionStatus": {
"Id": 3,
"Code": "3",
"Name": "Autorizado"
},
"CheckingAccounts": [
{
"Description": "Cliente de Teste (1111111111)",
"Amount": 9.03,
"Tax": 0.97,
"IsTransferred": false,
"ReleaseDate": "2022-04-01T00:00:00"
}
],
"PaymentMethod": {
"Id": 6,
"Code": "6",
"Name": "Pix Recebimento",
"Show": false
},
"Application": "Aplicação de teste",
"Vendor": "João da Silva",
"Amount": 10.0,
"PaymentDate": "2020-03-31T25:37:53.33",
"IncluedDate": "2022-03-31T17:37:55.01",
"EndToEndId": "E18236120202404241420s0612999999",
"InstallmentQuantity": 0,
"SecretKey": "",
"Reference": "TESTE"
}