API Reference
Log In
API Reference

Pix received Webhook

šŸ“˜

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

About Webhooks

When a Pix is credited to your account, the best way to receive this information is using the webhook PIX_RECEIVED. As soon as the transaction is concluded the PIX_RECEIVED weboohk is sent.

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

Headers

NameDescription
x-delbank-api-keyRequired. API key

Body

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

Now once a Pix is credited to your account here's what you are going to receive on the registered URL:

{
    "eventType": "PIX_RECEIVED",
    "correlationId": "S110211111111111111111111",
    "referenceId": "E182361202024041911111111111111",
    "endToEndId": "E182361202024041911111111111111",
    "amount": 100.0,
    "createdAt": "2024-04-19T16:20:22.274Z",
    "proof": {
        "eventType": "PIX_PAYMENT_EFFECTIVE",
        "endToEndId": "E182361202024041911111111111111",
        "idempotencyKey": "E182361202024041911111111111111",
        "correlationId": "S110211111111111111111111",
        "status": "PIX_EFFECTIVE",
        "amount": 100.0,
        "payer": {
            "number": "49041111116",
            "branch": "0001",
            "type": "PAYMENT",
            "participant": {
                "name": "NU PAGAMENTOS - IP",
                "ispb": "18236120"
            },
            "holder": {
                "name": "GUSTAVO EXEMPLO",
                "document": "94881558099",
                "type": "NATURAL"
            }
        },
        "beneficiary": {
            "number": "11111",
            "branch": "0001",
            "type": "CURRENT",
            "participant": {
                "name": "DELCRED SCD S.A.",
                "ispb": "38224857"
            },
            "holder": {
                "document": "48689840000130",
                "type": "LEGAL"
            }
        },
        "payee": {
            "number": "11111",
            "branch": "0001",
            "type": "CURRENT",
            "participant": {
                "name": "DELCRED SCD S.A.",
                "ispb": "38224857"
            },
            "holder": {
                "document": "48689840000130",
                "type": "LEGAL"
            }
        }
    }
}

 

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

NameDescription
eventTypeThe type of event that triggered the webhook (e.g., "PIX_RECEIVED").
correlationIdA unique identifier for correlating the event with other related processes.
referenceIdAn identifier provided for tracking the payment across systems.
endToEndIdA unique identifier for the PIX transaction, assigned by the payment system.
amountThe monetary value of the PIX transaction.
createdAtThe timestamp indicating when the PIX transaction was created.
proofAn object containing detailed proof information for the PIX transaction.
proof.eventTypeThe specific type of event within the proof context (e.g., "PIX_PAYMENT_EFFECTIVE").
proof.endToEndIdThe unique identifier for the PIX transaction within the proof context.
proof.idempotencyKeyA unique key to ensure idempotency of the proof event processing.
proof.correlationIdThe correlation ID associated with the proof event.
proof.statusThe status of the PIX transaction within the proof context (e.g., "PIX_EFFECTIVE").
proof.amountThe monetary value of the PIX transaction within the proof context.
proof.payerAn object containing information about the payer of the PIX transaction.
proof.payer.numberThe account number of the payer.
proof.payer.branchThe branch number of the payer's account.
proof.payer.typeThe type of the payer's account (e.g., "PAYMENT").
proof.payer.participantAn object containing information about the financial institution of the payer.
proof.payer.participant.nameThe name of the financial institution of the payer (e.g., "NU PAGAMENTOS - IP").
proof.payer.participant.ispbThe ISPB code of the payer's financial institution (e.g., "18236120").
proof.payer.holderAn object containing information about the holder of the payer's account.
proof.payer.holder.nameThe name of the payer
proof.payer.holder.documentThe document number of the payer (e.g., CPF or CNPJ).
proof.payer.holder.typeThe type of payer (e.g., "NATURAL" or "LEGAL").
proof.beneficiaryAn object containing information about the beneficiary of the PIX transaction.
proof.beneficiary.numberThe account number of the beneficiary.
proof.beneficiary.branchThe branch number of the beneficiary's account.
proof.beneficiary.typeThe type of the beneficiary's account (e.g., "CURRENT").
proof.beneficiary.participantAn object containing information about the financial institution of the beneficiary.
proof.beneficiary.participant.nameThe name of the beneficiary's financial institution (e.g., "DELCRED SCD S.A.").
proof.beneficiary.participant.ispbThe ISPB code of the beneficiary's financial institution (e.g., "38224857").
proof.beneficiary.holderAn object containing information about the holder of the beneficiary's account.
proof.beneficiary.holder.documentThe document number of the beneficiary (e.g., CPF or CNPJ).
proof.beneficiary.holder.typeThe type of beneficiary (e.g., "LEGAL").
proof.payeeAn object containing payee information (can be identical to beneficiary details).
proof.payee.numberThe account number of the payee.
proof.payee.branchThe branch number of the payee's account.
proof.payee.typeThe type of the payee's account (e.g., "CURRENT").
proof.payee.participantAn object containing information about the financial institution of the payee.
proof.payee.participant.nameThe name of the payee's financial institution (e.g., "DELCRED SCD S.A.").
proof.payee.participant.ispbThe ISPB code of the payee's financial institution (e.g., "38224857").
proof.payee.holderAn object containing information about the holder of the payee's account.
proof.payee.holder.documentThe document number of the payee (e.g., CPF or CNPJ).
proof.payee.holder.typeThe type of payee (e.g., "LEGAL").