Webhook Events

The events are structured and transmitted to the partner in JSON format. The following are the details of the fields sent, categorized by transaction type.

PIX CASH IN QR CODE CREATE

{
  "type": "QR_CODE_COPY_AND_PASTE_CREATED",
  "data": {
    "amount": 10,
    "amount_chargeback": 0,
    "base_64_image": null,
    "base_64_image_url": "https://api-v3.saq.digital/v2/finance/image/qrcode/978e3d40******8b558f4.png",
    "account_number": "00001",
    "agency_number": "0001",
    "debtor_document": "0******32",
    "debtor_name": "Fulano de tal",
    "due_date": null,
    "expiration_date": "2024-01-01 00:00:00.000000+00:00",
    "fee": 0,
    "fine": null,
    "fine_date": null,
    "pix_copy_and_paste": "00020101021226880014br.gov.bcb.pix2566qrcodes.saq.digital/v2/qr/cob/******SAQ INSTITUICAO DE PAGAME6009SAO PAULO62070503***63040ED3",
    "qr_code_id": 1,
    "status": "NEW",
    "tag": "NONE",
    "tx_id": "978e3d40d3******e88b558f4",
    "type_document": "CPF",
    "type_fine": "NONE",
    "worked": true
  }
}
FieldTypeDescription
typeStringQR_CODE_COPY_AND_PASTE_CREATED - Payment generated, awaiting payment by the customer
amountDecimalReturns the amount
amount_chargebackDecimalIf a refund occurs, this field will be filled with the refunded amount.
base_64_imageStringReturns the generated QRCode image in base64 format (This field will be deprecated)
base_64_image_urlStringReturns the link with the generated QRCode image
account_numberStringReturn the paye'rs document
agency_numberStringReturn the payer'rs agency
debtor_documentStringReturns the Payer's document
debtor_nameStringReturns the Payer's name
due_dateDatetimeReturns the due date
expiration_dateDatetimeReturns the expiration date
feeDecimalReturns the fee that will be charged to the customer (if applicable)
fineDecimalReturns the fine value
fine_dateDatetimeReturns the fine date
pix_copy_and_pasteStringThis field returns the generated copy and paste code that the customer can pay directly through their bank
qr_code_idDecimalUnique payment identifier generated.
statusStringNEW - Payment generated, awaiting payment by the customer
tagStringReturns the tag (if applicable)
tx_idStringUnique payment identifier generated.
type_documentStringReturns the Payer's type document
type_fineStringReturns the fine type
workedBooleanReturns true or false confirming whether it was successful or not.

PIX CASH IN QR CODE PAID

{
  "type": "QR_CODE_COPY_AND_PASTE_PAID",
  "data": {
    "amount": 100,
    "amount_chargeback": 0,
    "base_64_image": null,
    "base_64_image_url": "https://api-v3.saq.digital/v2/finance/image/qrcode/431c561f79******ac7bc.png",
    "account_number": "0001",
    "agency_number": "0001",
    "debtor_document": "75******20",
    "debtor_institution": "BANK",
    "debtor_institution_number": "000001",
    "debtor_name": "Fulano de tal",
    "due_date": null,
    "end_to_end": "E18236120******02eb560ffa",
    "expiration_date": "2024-01-01 12:00:00.000000+00:00",
    "fee": 0,
    "fine": null,
    "fine_date": null,
    "payment_date": "2024-01-01 12:00:00.000001+00:00",
    "pix_copy_and_paste": "00020101021226880014br.gov.bcb.pix2566qrcodes.saq.digital/v2/qr/cob/******SAQ INSTITUICAO DE PAGAME6009SAO PAULO62070503***63040ED3",
    "qr_code_id": 1,
    "status": "PAID",
    "tag": "NONE",
    "tx_id": "431c561f7******d8cac7bc",
    "type_document": "CPF",
    "type_fine": "NONE",
    "worked": true
  }
}
typeTypeDescription
typeStringQR_CODE_COPY_AND_PASTE_PAID - Payment paid for custumer
amountDecimalReturns the amount
amount_chargebackDecimalIf a refund occurs, this field will be filled with the refunded amount.
base_64_imageStringReturns the generated QRCode image in base64 format (This field will be deprecated)
base_64_image_urlStringReturns the link with the generated QRCode image
account_numberStringReturn the paye'rs document
agency_numberStringReturn the payer'rs agency
debtor_documentStringReturns the Payer's document
debtor_nameStringReturns the Payer's name
due_dateDatetimeReturns the due date
expiration_dateDatetimeReturns the expiration date
feeDecimalReturns the fee that will be charged to the customer (if applicable)
fineDecimalReturns the fine value
fine_dateDatetimeReturns the fine date
pix_copy_and_pasteStringThis field returns the generated copy and paste code that the customer can pay directly through their bank
qr_code_idDecimalUnique payment identifier generated.
statusStringNEW - Payment generated, awaiting payment by the customer
tagStringReturns the tag (if applicable)
tx_idStringUnique payment identifier generated.
type_documentStringReturns the Payer's type document
type_fineStringReturns the fine type
workedBooleanReturns true or false confirming whether it was successful or not.

PIX CASH IN QR CODE REFUNDED

{
  "type": "QR_CODE_COPY_AND_PASTE_REFUNDED",
  "data": {
    "amount": 100,
    "amount_chargeback": 100,
    "chargeback_id": 1,
    "debtor_document": "58******87",
    "account_number": "0001",
    "agency_number": "0001",
    "debtor_name": "ROSA MARIA DA SILVA",
    "end_to_end": "D35535240******MG3VDK2N",
    "fee": 0,
    "fine": null,
    "fine_date": null,
    "origin_chargeback_id": 1,
    "origin_end_to_end": "E00360305******2c56b47a3c6",
    "tag": "description",
    "tx_id": "05b85cd026******631e62f4",
    "status": "CHARGEBACK",
    "type_document": "CPF",
    "type_fine": "NONE",
    "worked": true
  }
}
FieldTypeDescription
typeStringQR_CODE_COPY_AND_PASTE_REFUNDED - Payment successfully refunded
amountDecimalReturns the amount
amount_chargebackDecimalIf a refund occurs, this field will be filled with the refunded amount.
chargeback_idDecimalUnique chargeback identifier generated.
debtor_documentStringReturns the Payer's document
account_numberStringReturn the paye'rs document
agency_numberStringReturn the payer'rs agency
debtor_nameStringReturns the Payer's name
end_to_endStringPayment identifier.
feeDecimalReturns the fee that will be charged to thE customer (if applicable)
fineDecimalReturns the fine value
fine_dateDatetimeReturns the fine date
origin_chargeback_idStringUnique identifier for original transaction
origin_end_to_endStringUnique payment identifier original transaction generated.
tagStringReturns the tag (if applicable)
tx_idStringUnique identifier transaction generated.
statusStringCHARGEBACK - Payment refunded all value
type_documentStringReturns the Payer's type document
type_fineStringReturns the fine type
workedBooleanReturns true or false confirming whether it was successful or not.

PIX CASH IN QR CODE REFUNDED ERROR

{
  "type": "QR_CODE_COPY_AND_PASTE_REFUNDED_ERROR",
  "data": {
    "amount": 0.01,
    "amount_chargeback": 0.01,
    "chargeback_id": 10,
    "end_to_end": "D35535240******60PSEEHRSVDQ",
    "account_number": "00001",
    "agency_number": "0001",
    "debtor_document": "12******11",
    "debtor_name": "Fulado de tal",
    "fee": 0,
    "fine": null,
    "fine_date": null,
    "origin_chargeback_id": 1,
    "origin_end_to_end": "E30306294******4500000000000",
    "status": "CHARGEBACK",
    "tag": "description",
    "type_document": "CPF",
    "type_fine": "NONE",
    "worked": true
  }
}
FieldDescription
typeQR_CODE_COPY_AND_PASTE_REFUNDED_ERROR - Error refunded payment
amountReturns the amount
amount_chargebackIf a refund occurs, this field will be filled with the refunded amount.
chargeback_idUnique chargeback identifier generated.
end_to_endPayment identifier.
account_numberReturn the paye'rs document
agency_numberReturn the payer'rs agency
debtor_documentReturns the Payer's document
debtor_nameReturns the Payer's name
feeReturns the fee that will be charged to the customer (if applicable)
fineReturns the fine value
fine_dateReturns the fine date
origin_chargeback_idReturns the QRCode ID origin payment.
origin_end_to_endReturns the QRCode End To End origin payment
statusCHARGEBACK- Payment refunded sucessfully completed
tagReturns the tag (if applicable)
type_documentReturns the Payer's type document
type_fineReturns the fine type
workedReturns true or false confirming whether it was successful or not.

PIX CASHIN RECEIVED

{
  "type": "PIX_CASHIN_RECEIVED",
  "data": {
    "amount": 0.01,
    "debtor_account": "0001",
    "debtor_branch_identifier": "1",
    "debtor_institution": "000001",
    "debtor_legal_id": "12******11",
    "debtor_name": "Fulano de tal",
    "debtor_account_type": "CURRENT_ACCOUNT",
    "end_to_end": "E3030629******422000020aeJxs",
    "fee": 0,
    "from_account": "000001",
		"from_agency": "0001",
    "from_account_key": "6efc7203-b4b9-4009-ced9-2d89951427ee",
    "payment_date": "2024-01-01 12:00:00.000000+00:00",
    "type_transfer": "key",
    "worked": true
  }
}
  <th>
    Type
  </th>

  <th>
    Description
  </th>
</tr>
  <td>
    String
  </td>

  <td>
    PIX_CASHIN_RECEIVED - Payment received via bank-to-bank transfer
  </td>
</tr>

<tr>
  <td>
    **amount**
  </td>

  <td>
    Decimal
  </td>

  <td>
    Returns the amount
  </td>
</tr>

<tr>
  <td>
    **debtor_account**
  </td>

  <td>
    String
  </td>

  <td>
    Return the paye'rs account number
  </td>
</tr>

<tr>
  <td>
    **debtor_branch_identifier**
  </td>

  <td>
    String
  </td>

  <td>
    Return the paye'rs account branch
  </td>
</tr>

<tr>
  <td>
    **debtor_institution**
  </td>

  <td>
    String
  </td>

  <td>
    Return the payer'rs bank institution ISPB number
  </td>
</tr>

<tr>
  <td>
    **debtor_legal_id**
  </td>

  <td>
    String
  </td>

  <td>
    Returns the Payer's document
  </td>
</tr>

<tr>
  <td>
    **debtor_name**
  </td>

  <td>
    String
  </td>

  <td>
    Returns the Payer's name
  </td>
</tr>

<tr>
  <td>
    **debtor_account_type**
  </td>

  <td>
    String
  </td>

  <td>
    Return the paye'rs account type  
    may be one of the following:

    * *CURRENT_ACCOUNT** - Standard current/checking account
    * *SALARY_ACCOUNT** - Account designated for salary payments
    * *SAVINGS_ACCOUNT**	 - Savings account
    * *PAYMENT_ACCOUNT **- Payment account (e.g., digital wallet)
  </td>
</tr>

<tr>
  <td>
    **end_to_end**
  </td>

  <td>
    String
  </td>

  <td>
    Returns the e2e (End-to-End), a unique identifier used in financial transactions to facilitate the identification and tracking of operations.
  </td>
</tr>

<tr>
  <td>
    **fee**
  </td>

  <td>
    Decimal
  </td>

  <td>
    Returns the fee that will be charged to the SaQ.Digital customer (if applicable)
  </td>
</tr>

<tr>
  <td>
    **from_account**
  </td>

  <td>
    String
  </td>

  <td>
    Returns the account number where the transfer was received
  </td>
</tr>

<tr>
  <td>
    **from_agency**
  </td>

  <td>
    String
  </td>

  <td>
    Returns the agency number where the transfer was received
  </td>
</tr>

<tr>
  <td>
    **from_account_key**
  </td>

  <td>
    String
  </td>

  <td>
    Returns the Pix key of the account that received the transfer. If the transfer was made manually (without a Pix key), this field will be empty
  </td>
</tr>

<tr>
  <td>
    **type_transfer**
  </td>

  <td>
    String
  </td>

  <td>
    Indicates whether the transfer was received via Pix key or Manual transfer

    * *key** - Received payment from pix key account
    * *manual** - Received payment from account number account
  </td>
</tr>

<tr>
  <td>
    **worked**
  </td>

  <td>
    Boolean
  </td>

  <td>
    Shows the status of the received transfer
  </td>
</tr>
Field
**type**

PIX CASH OUT CREATED

{
  "type": "PIX_CASHOUT_CREATED",
  "data": {
    "amount": 100,
    "code_transaction": "01000000-da69-7a52-f189-08ddf4bc330b",
    "fee": 0,
    "from_accout": "463339",
    "key": "05967095101",
    "status": "NEW",
    "tag": "2509161025357691309986",
    "transaction_id": 961588700187,
    "worked": true
  }
}
FieldTypeDescription
typeStringPIX_CASHOUT_CREATED - Payment generated or awaiting approval
amountDecimalReturns the amount
code_transactionStringReturns a unique identifier (This field will be deprecated)
feeDecimalReturns the fee that will be charged to the customer (if applicable)
from_accoutStringReturns information about the originating account.
keyStringReturns the Pix key.
tagStringReturns the tag (if applicable)
transaction_idStringA unique payment identifier has been generated. This value never repeats and allows querying endpoints to check the status of a Pix Cash Out
workedBooleanReturns true or false confirming whether it was successful or not.

PIX CASH OUT SUCCESS

{
  "type": "PIX_CASHOUT_SUCCESS",
  "data": {
    "amount": 100,
    "transaction_id": 1,
		"end_to_end": "E355352402****840W36G858B7",
    "fee": 0,
    "from_accout": "463339",
    "key": "05967095101",
    "payment_date": "2024-01-01 12:00:00.000000+00:00",
    "recipient_account_id": "0000001",
    "recipient_branch_identifier": "1",
    "recipient_instution": "000000",
    "recipient_legal_id": "05******01",
    "recipient_name": "Fulano de tal",
    "status": "SUCCESS",
    "tag": "description",    
    "worked": true
  }
}
FieldTypeDescription
typeStringPIX_CASHOUT_SUCCESS - Payment successfully completed
amountDecimalReturns the amount
code_transactionStringReturns a unique identifier (EndtoEnd)
end_to_endStringEnd to end transaction
errorStringDescriptor error transaction
feeDecimalReturns the fee that will be charged to the customer (if applicable)
from_accoutStringReturns information about the originating account.
keyStringReturns the Pix key.
recipient_account_idStringDestiny account number
recipient_branch_identifierStringDestiny account branch
recipient_instutionStringISPB institution to received transfer
recipient_legal_idStringDocument user
recipient_nameStringRecipient name
statusStringReturns the status
tagStringReturns the tag (if applicable)
transaction_idDecimalA unique payment identifier has been generated. This value never repeats and allows querying endpoints to check the status of a Pix Cash Out
workedBooleanReturns true or false confirming whether it was successful or not.

PIX CASH OUT ERROR

{
  "type": "PIX_CASHOUT_ERROR",
  "data": {
    "amount": 100,
    "code_transaction": null,
    "end_to_end": null,
    "error": "PIX key not found",
    "fee": 0,
    "from_accout": "00001",
    "key": "+55********75",
    "recipient_account_id": null,
    "recipient_branch_identifier": null,
    "recipient_instution": null,
    "recipient_legal_id": null,
    "recipient_name": null,
    "status": "ERROR",
    "tag": "description",
    "transaction_id": 1,
    "worked": false
  }
}
FieldDescription
typePIX_CASHOUT_ERROR - Payment not completed due to errors in the provided
amountReturns the amount
code_transactionReturns a unique identifier (This field will be deprecated)
end_to_endEnd to end transaction
errorDescriptor error transaction
feeReturns the fee that will be charged to the customer (if applicable)
from_accoutReturns information about the originating account.
keyReturns the Pix key.
recipient_account_idDestiny account number
recipient_branch_identifierDestiny account branch
recipient_instutionISPB institution to received transfer
recipient_legal_idDocument user
recipient_nameRecipient name
statusReturns the status
tagReturns the tag (if applicable)
transaction_idA unique payment identifier has been generated. This value never repeats and allows querying endpoints to check the status of a Pix Cash Out
workedReturns true or false confirming whether it was successful or not.

PIX CASH OUT REFUNDED

{
  "type": "PIX_CASHOUT_REFUND",
  "data": {
    "amount": 0.01,
    "transaction_id": 1,
    "end_to_end": "D30306294******60000002Pjdp",
    "fee": 0,
    "from_accout": "900002",
    "key": "14******47",
    "origin_end_to_end": "E35535240******GRGBGLAIRDN",
    "origin_transaction_id": 1,
    "recipient_account_id": "8044331",
    "recipient_branch_identifier": "20",
    "recipient_instution": "30306294",
    "recipient_legal_id": "14******47",
    "recipient_name": "Fulano de tal",
    "status": "REFUNDED",
    "tag": null,
    "worked": true
  }
}
FieldTypeDescription
typeStringPIX_CASHOUT_REFUND - Payments not accepted by the recipient that are returned to the source account statement
amountDecimalReturns the amount
transaction_idDecimalA unique payment identifier has been generated. This value never repeats and allows querying endpoints to check the status of a Pix Cash Out
end_to_endStringPayment identifier.
feeDecimalReturns the fee that will be charged to the customer (if applicable)
from_accoutStringReturns information about the originating account.
keyStringReturns the Pix key.
origin_end_to_endStringReturns the origin End To End transaction
origin_transaction_idStringReturns the ID transactions origin.
recipient_account_idStringReturns the account number
recipient_branch_identifierStringReturns agency number
recipient_instutionStringReturns account ISPB institution
recipient_legal_idStringReturns account document
recipient_nameStringReturn account name
statusStringReturns the status
tagStringReturns the tag (if applicable)
workerBooleanStatus refunded

PIX CASH OUT CANCELED

{
  "type": "PIX_CASHOUT_CANCELED",
  "data": {
    "amount": 0.01,
    "transaction_id": 1,
    "end_to_end": null,
    "fee": 0,
    "from_accout": "900002",
    "key": "14******47",
    "recipient_account_id": "8044331",
    "recipient_branch_identifier": "20",
    "recipient_instution": "30306294",
    "recipient_legal_id": "14******47",
    "recipient_name": "Fulano de tal",
    "status": "CANCELLED",
    "cancel_description": "Insufficient balance",
    "tag": null,
    "worked": true
  }
}
FieldTypeDescription
typeStringPIX_CASHOUT_CANCELED - Payments canceled
amountDecimalReturns the amount
transaction_idDecimalA unique payment identifier has been generated. This value never repeats and allows querying endpoints to check the status of a Pix Cash Out
end_to_endStringPayment identifier.
feeDecimalReturns the fee that will be charged to the customer (if applicable)
from_accoutStringReturns information about the originating account.
keyStringReturns the Pix key.
recipient_account_idStringReturns the account number
recipient_branch_identifierStringReturns agency number
recipient_instutionStringReturns account ISPB institution
recipient_legal_idStringReturns account document
recipient_nameStringReturn account name
statusStringReturns the status
cancel_descriptionStringReturns the cancellation description of the transaction
tagStringReturns the tag (if applicable)
workerBooleanStatus refunded