API Reference
Log In
API Reference

Pix sent Webhook

šŸ“˜

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

About Webhooks

When a Pix is debited from your account, the best way to receive updates regarding the payment is using the webhook PIX_PAYMENT_UPDATED. As soon as the transaction's status is updated, aPIX_PAYMENT_UPDATED weboohk is sent.

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

Headers

NameDescription
x-delbank-api-keyRequired. API key

Body

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

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

{
   "eventType":"PIX_PAYMENT_EFFECTIVE",
   "endToEndId":"E3822485720231013020122659082578",
   "idempotencyKey":"idempotencyKey999999",
   "status":"PIX_EFFECTIVE",
   "amount":20.0,
   "createdAt":"2023-10-13T05:01:22.953Z",
   "description":"description",
   "payer":{
      "number":"999999",
      "branch":"0001",
      "type":"CURRENT",
      "participant":{
         "ispb":"38224857"
      },
      "holder":{
         "name":"EXAMPLE EXAMPLE",
         "document":"111111111111111",
         "type":"LEGAL"
      }
   },
   "beneficiary":{
      "number":"1234556",
      "branch":"0001",
      "type":"PAYMENT",
      "participant":{
         "ispb":"08561701"
      },
      "holder":{
         "name":"HOLDER NAME",
         "document":"11111111111",
         "type":"NATURAL"
      }
   }
}

Here's an example of a webhook of an error in a pix sent:

{
   "eventType":"PIX_PAYMENT_ERROR",
   "endToEndId":"E3822485720231013015126180935816",
   "idempotencyKey":"idempotencyKey12345",
   "status":"PIX_ERROR",
   "error":{
      "code":"AC06",
      "description":"Conta transacional do usuƔrio recebedor encontra-se bloqueada."
   },
   "amount":100.0,
   "createdAt":"2023-10-13T04:51:26.84Z",
   "description":"description",
   "payer":{
      "number":"12345",
      "branch":"0001",
      "type":"CURRENT",
      "participant":{
         "ispb":"38224857"
      },
      "holder":{
         "name":"EXAMPLE EXAMPLE",
         "document":"11111111111111",
         "type":"LEGAL"
      }
   },
   "beneficiary":{
      "number":"12345",
      "branch":"3231",
      "type":"CURRENT",
      "participant":{
         "ispb":"90400888"
      },
      "holder":{
         "name":"HOLDER NAME",
         "document":"11111111111",
         "type":"NATURAL"
      }
   }
}

Here are the attributes that are passed by the PIX_PAYMENT_UPDATED 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.
idempotencyKeyAn identifier provided for tracking the payment across systems.
statusThe status of the transaction (e.g., "PIX_PAYMENT_EFFECTIVE")
amountThe monetary value of the PIX transaction.
createdAtThe timestamp indicating when the PIX transaction was created.
descriptionDescription of the transaction assigned by the payer
payerObject containing information about the payer
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., "PAYMENT").
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., "18236120").
payer.holderAn object containing information about the holder of the account that was used to pay
payer.holder.nameThe name of the payer account holder
payer.holder.documentThe document of the payer account holder
payer.holder.typeThe type of the payer's account (NATURAL or LEGAL)
beneficiaryAn object containing information about the beneficiary of the Pix transaction.
beneficiary.numberThe account number of the beneficiary.
beneficiary.branchThe branch number of the beneficiary
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., "18236120").
beneficiary.holder.nameThe name of the beneficiary account holder
beneficiary.holder.documentThe document of the beneficiaryaccount holder
beneficiary.holder.typeThe type of the beneficiary's account (NATURAL or LEGAL)