Skip to main content

Refund Payload

Refund Payloads​

Webhooks of type Reembolso Recebido (Refund received) send objects with the following fields in their payload:

  • event: The type of event that occurred
  • charge: The charge, if any, that the refund's original transaction belongs to
  • pixQrCode: The QR Code, if any, that the refund's original transaction belongs to
  • pix: Object with the Pix refund details
  • company: Company the transaction belongs to
  • account: Details of the account the transaction belongs to

You can tell whether the refund is Partial or Full from the partial field inside the pix object

Note that the pix object belongs to the refund itself, not to the original transaction.

Example​

{
"event": "OPENPIX:TRANSACTION_REFUND_RECEIVED",
"charge": {
"customer": null,
"value": 151,
"comment": "",
"identifier": "c37368e176894eea9b35fe0ea8ef2b7d",
"transactionID": "c37368e176894eea9b35fe0ea8ef2b7d",
"status": "COMPLETED",
"additionalInfo": [],
"giftbackAppliedValue": 0,
"discount": 0,
"valueWithDiscount": 151,
"createdAt": "2022-09-16T13:57:26.300Z",
"correlationID": "5e1f0740-4a18-4030-a5a7-686d3d8ec419",
"paymentLinkID": "47478762-f0fb-4996-a972-519edae95681",
"updatedAt": "2022-09-16T14:02:59.159Z",
"expiresIn": 2591999,
"pixKey": "c4249323-b4ca-43f2-8139-874baab09b93",
"brCode": "00020101021226990014br.gov.bcb.pix2577pix-h.bpp.com.br/23114447/qrs1/v2/01jAVrYybMRhanrjbpgCDIxFrHxa7zdBSdcIinjmXbp52040000530398654041.515802BR5912Your_Company6009Sao_Paulo62290525c37368e176894eea9b35fe0ea63047E32",
"paymentLinkUrl": "http://localhost:8777/pay/47478762-f0fb-4996-a972-519edae95681",
"qrCodeImage": "https://api.woovi.com/openpix/openpix/charge/brcode/image/47478762-f0fb-4996-a972-519edae95681.png",
"globalID": "Q2hhcmdlOjYzMjQ4MGM4MDIxM2I4YTA2Y2FlYjAxZg=="
},
"pixQrCode": null,
"pix": {
"customer": null,
"charge": {
"customer": null,
"value": 151,
"comment": "",
"identifier": "c37368e176894eea9b35fe0ea8ef2b7d",
"transactionID": "c37368e176894eea9b35fe0ea8ef2b7d",
"status": "COMPLETED",
"additionalInfo": [],
"giftbackAppliedValue": 0,
"discount": 0,
"valueWithDiscount": 151,
"createdAt": "2022-09-16T13:57:26.300Z",
"correlationID": "5e1f0740-4a18-4030-a5a7-686d3d8ec419",
"paymentLinkID": "47478762-f0fb-4996-a972-519edae95681",
"updatedAt": "2022-09-16T14:02:59.159Z",
"expiresIn": 2591999,
"brCode": "00020101021226990014br.gov.bcb.pix2577pix-h.bpp.com.br/23114447/qrs1/v2/01jAVrYybMRhanrjbpgCDIxFrHxa7zdBSdcIinjmXbp52040000530398654041.515802BR5912Your_Company6009Sao_Paulo62290525c37368e176894eea9b35fe0ea63047E32",
"paymentLinkUrl": "http://localhost:8777/pay/47478762-f0fb-4996-a972-519edae95681",
"qrCodeImage": "https://api.woovi.com/openpix/openpix/charge/brcode/image/47478762-f0fb-4996-a972-519edae95681.png",
"globalID": "Q2hhcmdlOjYzMjQ4MGM4MDIxM2I4YTA2Y2FlYjAxZg=="
},
"value": 151,
"time": "2022-09-16T14:15:39.597Z",
"endToEndId": "D23114447202209161415HPf0GiKMeR4",
"createdAt": "2022-09-16T14:15:41.909Z",
"pixKey": "c4249323-b4ca-43f2-8139-874baab09b93",
"partial": false,
"globalID": "UGl4VHJhbnNhY3Rpb246NjMyNDg1MGQ3OTE4NTgxZDczOGNkZjg0"
},
"company": {
"id": "61240394529a1b71ee70d855",
"name": "CASAS AMERICANAS",
"taxID": "05460236000124"
},
"account": {
"clientId": "71034651-61E0-1FAD-4688-D967F095CFBF"
},
"refunds": []
}