added
Changelog API Grafeno: 2024-06-26
2 months ago by Mario Dias
Added: Criação do evento de webhook "cobranca-criada" para determinar a criação de um PIX Cobrança.
Não existia nenhum evento de notificação para determinar a criação de uma cobrança na modalidade de pagamento PIX Cobrança. Para maior facilidade em controlar e gerir as cobranças criadas, desenvolvemos o evento "cobranca-criada" para confirmar que um PIX Cobrança foi criado.
Exemplo de retorno do novo evento
{
"signature": "I5V3WXZf19gVJiuCsxi2+rBofju8C0N/TX4sZDveXLrZ1rkMjy+JvllYa4Qu\n1qqQdAAeoMt1pUcPA3fDgr/1DVOBI1or7c9Z+Jybfg6snJzK5YsZcvEux2k7\nhkkKUY+FBQtFHsS0/8ApxJquU2sHQVVKFYXnIFHqA8w7ecgcHr6GRbYxtQ+7\n/iIlj8DN3gb3CF478GQsKT3wU9xXEZIwxTu8d1xWuzxXPP3j5sT2C0OgGvIx\niyINzHXtXEc3K6nkVewkrblKlUU7I6j2OQlST3lbXVCF5iPfS2EKqvC3BHk0\nqmsfCYQrEmDISU9J8HB+6JIqa/WC3QKkk5l+g9Cp7yt6Q3MsJMcu9ovpJh5p\njQEE+6hLSewqDK8fHgi7WaTlH6+1DZs7/d2OEAI1oAjAPHxTv4p4lco/vP5z\nmVo1yy2VP/Z8lZ5hSRl3BnAN3CT4lbdxnUeBDqNRxg4W3skcP6eAj2f/niLs\njDh1+h4Fq2NsP8RhFhxoT8jhtg8zDNCkBtve/pfBPXCbvfeHHv/R2AGl0PTY\nuGSWNQZt1zFuk9OmSVUdtsip8tBCbIrmEwccEXJRnApNru2kyOz1w94DT0PB\nqBqzHCCOAkgfpfiz/aDp4OKYytxRc2n/V91EnUeIzhy/ixWRuXgAtu8IdMZA\nYnHe8ExJkTQ/RJJIpM8saZc=\n",
"change": "cobranca-criada",
"data": {
"createdAt": "2024-06-21T15:53:05.197-03:00",
"updatedAt": "2024-06-21T15:53:05.197-03:00",
"status": "pending",
"paymentMethod": "pix",
"dueDate": "2024-12-30",
"value": "699.09",
"discount": {
"range": "2024-10-30",
"discountType": "percentage",
"discountValue": "20.0"
},
"abatementValue": "5.2",
"interestType": "percentage",
"interestValue": "2.0",
"applicableFine": "2.0",
"payer": {
"data": {
"type": "payer",
"attributes": {
"name": "Dwight Kurt Schrute",
"documentNumber": "12345679891",
"email": "[email protected]",
"address": {
"street": "Rua Dr. Albuquerque Lins",
"number": "2222",
"complement": "Apt 222",
"zipCode": "01230-000",
"neighborhood": "Santa Cecília",
"city": "São Paulo",
"state": "SP"
},
"phone": {
"countryCode": "55",
"areaCode": "51",
"number": "995562211"
}
}
}
},
"grantor": {
"data": null
},
"fees": {
"data": [
{
"id": "123019",
"type": "event",
"attributes": {
"kind": "charge_pix_registered_cost",
"value": "0.0"
}
}
]
},
"payments": {
"data": []
},
"clientControlNumber": "7543649847645556555553425",
"origin": "api",
"receiptNumber": null,
"expiresAfter": 90,
"uuid": "6442f3ce-49c9-4e15-9994-dbf33e9825c9",
"titleType": "several",
"pixData": {
"data": {
"id": "aea576b8-0f44-459b-9f38-10617e9a1ec8",
"type": "pix",
"attributes": {
"emv": "some long emv",
"encodedImage": "some long base 64 string"
}
}
}
}
}