API Reference
Log In
API Reference

Pix refund sent Webhook

šŸ“˜

To learn more about webhooks in our API, follow the link below:

About Webhooks

When a Pix is credited to your account and a refund has been issued, the best way to receive updates regarding the refund is using the webhook PIX_REFUND_PAYMENT_UPDATED. As soon as the transaction's status is updated, aPIX_REFUND_PAYMENT_UPDATED weboohk is sent.

Here's the simplest way to configure a PIX_REFUND_PAYMENT_UPDATED webhook:

Headers

NameDescription
x-delbank-api-keyRequired. API key

Body

{
  "eventType": "PIX_REFUND_PAYMENT_UPDATED",
  "url": "https://example.com.br/webhooks/v1/pixrefundsent", // Add your own URL here
  "authorization": "NONE,
  "authorizationScheme": "NONE"
}

Here's an example of a webhook of an effective payment of a sent Pix refund:

{
	"eventType": "PIX_REFUND_PAYMENT_EFFECTIVE",
	"operationType": "DEBIT_REFUND",
	"endToEndId": "D3822485720250110140546Z3zRrju5F",
	"originalEndToEndId": "E18236120202501101358s045da5bed3",
	"idempotencyKey": "30178290-69b0-43e0-97ba-e9a93b8e2d04",
	"status": "PIX_EFFECTIVE",
	"amount": 0.01,
	"createdAt": "2025-01-10T11:05:46.703Z",
	"description": "Pedido reembolso",
	"payer":
	{
		"number": "38709",
		"branch": "0001",
		"type": "CURRENT",
		"participant":
		{
			"ispb": "38224857"
		},
		"holder":
		{
				"name": "EMPRESA LTDA",
				"document": "94478450000138",
				"type": "LEGAL"
		}
	},
	"beneficiary":
	{
		"number": "11111111111",
		"branch": "0001",
		"type": "PAYMENT",
		"participant":
		{
			"ispb": "1111111111"
		},
		"holder":
		{
				"document": "***1111111**",
				"type": "NATURAL"
		}
	},
	"payee":
	{
		"number": "11111111111",
		"branch": "0001",
		"type": "PAYMENT",
		"participant":
		{
			"ispb": "1111111111"
		},
		"holder":
		{
				"document": "***1111111**",
				"type": "NATURAL"
		}
	}
}

Here are the attributes that are passed by the PIX_REFUND_PAYMENT_UPDATED webhook:

NameDescription
eventTypeThe type of event that triggered the webhook (e.g., "PIX_REFUND_PAYMENT_EFFECTIVE").
operationTypeThe type of operation being performed
endToEndIdThe unique identifier for the refund Pix transaction.
originalEndToEndIdThe unique identifier for the original Pix transaction that is being refunded.
idempotencyKeyA unique key to ensure idempotency of the event processing.
statusThe status of the refund PIX transaction
amountThe monetary value of the refund Pix transaction.
createdAtThe timestamp indicating when the refund Pix transaction was created.
descriptionA textual description explaining the reason for the refund (e.g., "Pedido reembolso").
payerAn object containing information about the payer of the refund PIX transaction.
payer.numberThe account number of the payer.
payer.branchThe branch number of the payer's account.
payer.typeThe type of the payer's account (e.g., "CURRENT").
payer.participantAn object containing information about the financial institution of the payer.
payer.participant.ispbThe ISPB code of the payer's financial institution (e.g., "38224857").
payer.holderAn object containing information about the holder of the payer's account.
payer.holder.nameThe name of the payer (e.g., "EMPRESA LTDA").
payer.holder.documentThe document number of the payer (e.g., "94478450000138").
payer.holder.typeThe type of payer (e.g., "LEGAL").
beneficiaryAn object containing information about the beneficiary of the refund PIX transaction.
beneficiary.numberThe account number of the beneficiary.
beneficiary.branchThe branch number of the beneficiary's account.
beneficiary.typeThe type of the beneficiary's account (e.g., "PAYMENT").
beneficiary.participantAn object containing information about the financial institution of the beneficiary.
beneficiary.participant.ispbThe ISPB code of the beneficiary's financial institution (e.g., "1111111111").
beneficiary.holderAn object containing information about the holder of the beneficiary's account.
beneficiary.holder.documentThe document number of the beneficiary (e.g., partially masked for security).
beneficiary.holder.typeThe type of beneficiary (e.g., "NATURAL" or "LEGAL").
payeeAn object containing information about the payee of the refund PIX transaction.
payee.numberThe account number of the payee.
payee.branchThe branch number of the payee's account.
payee.typeThe type of the payee's account (e.g., "PAYMENT").
payee.participantAn object containing information about the financial institution of the payee.
payee.participant.ispbThe ISPB code of the payee's financial institution (e.g., "1111111111").
payee.holderAn object containing information about the holder of the payee's account.
payee.holder.documentThe document number of the payee (e.g., partially masked for security).
payee.holder.typeThe type of payee (e.g., "NATURAL" or "LEGAL").