fixed
Changelog API Grafeno: 2024-06-07
6 months ago by Mario Dias
Fixed: [Webhooks] Inclusão do UUID da cobrança no evento de webhook "paid" para PIX Cobrança
As notificações de pagamento de cobranças da modalidade "PIX Cobrança", não estavam enviando o UUID da cobrança no payload, após algumas análises, efetuamos a correção da notificação para que este dado seja enviado corretamente.
Exemplo de retorno com o uuid da cobrança
{
"signature": "yUHJJEsdBjUFieEN7Eo1sxiO5UGuNUuZwNNwyp6tFJYlBvW3dhD5ZqSiwESq\nmf/MgQQQV1doeBDYzybvYZgXp3iRkkmibVW5sV7JkGGN3lvDFvRrgXTsf0Qx\nmTyUlQMfOADEjY0wA7h6mcVh0D19GRxBHJlo67VDIZEbz1+BciFYG2qS6g2o\n9Bx6la0reQgvN9T6e46Rc4SDTfgRyIfes5kgG4vhcMjWq6+lIEqu3Ojcz0nM\nJLbZtk4wZYc1y1Tm13XuQLkiw62UeNv6F9iEcnu56c9lgg5hQpWY5Wn8KE3K\n/prllLac322a2E7qg/mGXM/tlPQpqiqPSSwVYpWrbrAHCSP8DLHoCqEPOhUW\nPiR7L1hr0Tve86ZIdxoBtJyIgU/6WBnIkUfh3zZ3t2eIiiAHZh3A5LRDGm4z\nKShfWCEN4NnUQ9dAREAVi5SjXzrHTxuANg7dXRypnOcIpcjg8Zn2Nw50H/vI\nV9wKbLZL1vld3CL2BvLK4B3u4tAY0dhnzWMrULNzqlyaMthKFKmCmDVZBHL7\nwmBspSV72dBsSHBpnHd5IzOaC9NLLaiMrVa/BZYrUhxGj8CV0+zZZy9t1vgy\n7jq25io7o0cmcQJc9y4qYiNDVDV3TUvo0Aj2MWD7KHUib79s00yo2CFvk78Z\nurpB8kRBd06hrvXiLQaJqSM=\n",
"change": "status-alterado",
"data": {
"createdAt": "2024-06-06T11:01:12.579-03:00",
"updatedAt": "2024-06-06T11:01:36.024-03:00",
"status": "paid",
"paymentMethod": "pix",
"dueDate": "2024-07-30",
"value": "699.09",
"discount": {
"range": null,
"discountType": null,
"discountValue": null
},
"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": "122173",
"type": "event",
"attributes": {
"kind": "charge_pix_registered_cost",
"value": "0.0"
}
}
]
},
"payments": {
"data": [
{
"id": "c649261a-8341-4c34-81fc-51e373614211",
"type": "payment",
"attributes": {
"value": "699.09",
"receivedAt": "2024-06-06",
"processedAt": "2024-06-06T11:01:35.966-03:00",
"paymentBankCode": null,
"paymentAgency": null
}
}
]
},
"clientControlNumber": "7543649847645556555553425",
"origin": "api",
"receiptNumber": null,
"expiresAfter": 90,
"uuid": "20cde8e0-b05f-4907-892f-dd36fed590e6",
"titleType": "several",
"pixData": {
"data": {
"id": "1a1ef53d-0a14-43e7-98cf-ecf807afda1f",
"type": "pix",
"attributes": {
"emv": "00020101021226970014br.gov.bcb.pix2575qr-h.cornerpix.com.br/11581339/v2/cobv/3b7012ff-3446-4628-ab9d-574b5f67482f5204000053039865802BR5914BMP MONEY PLUS6009SAO PAULO62070503***63041A39",
"encodedImage": "iVBORw0KGgoAAAANSUhEUgAAAhIAAAISAQAAAACxRhsSAAAE90lEQVR4nO2dTWrkSBCFX4wEvZSgDuCjpG5m5kh9A+kodQCDtCyQeLPIyB/ZbvdAl5OamhcLY6WkjxQEkfGXWUb8qSx//TECEEMMMcQQQwwxxBBDjMIwlx5m1gPLeJjZeFi5AeAwsxGwaUvD053nIYYYXzICSXL1QZu2HgA6AgOJwB1mI0Cuh3FGR5LkmXGPeYghxpeMLVnHsALAsMdh8tqDf4+HIaptkmRj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