Webhook Events

SaQ.Digital 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

{
  "type": "QR_CODE_COPY_AND_PASTE_CREATED",
  "data": {
    "amount": 36.8,
    "amount_chargeback": 0,
    "base_64_image": "iVBORw0KGgoAAAANSUhEUgAAAhIAAAISAQAAAACxRhsSAAAE7ElEQVR4nO2dS27jRhCGvwoJaNkEfIAchbxBjjSYI+UG5FF0AAPkcgASlUU/JTueAUZmFOOvhU1RrQ9NoFCvrm6a87uy/PHbCBBDDDHEEEMMMcQQQ4zKsCQ9LMNhNm09ZgPAZmYTh8XhywA2bXn89OB5iCHG+9LHf+MMsL1gBICwAxy9ExxbDIywYuN69M7W7QDY4+Yhhhi/wtiSdfR5S0bV/Xpx4DAIO+7XHv8+pPHR+D5+HmKI8SsMm+jcfe3cpvDDWIbO3a99+Tb9+ex5iCFGK/3dZ4/OH2Cxzi0697D3LBPmbPc/eNA8xBDjI8lqFxzYwKDDY2jKYYxzvOeM68tex7XLA8/yLGJ8ecZiZjHBH1ewabu4TdvFYethvPbYBMRCwMQR0/3Hz0MMMd4Xv5e1c0Z3j0l/unJn9B0Ib8b7/CzPIsbXZUQ9jZfjCjG3n8OOz3T5C88f41UZIj0V4xxG0tNiLPPVjWL6mmoAxEjV3X2mkz0V42zGdnHGWH7qPFlWDoPt4mbDUaLXw1jMLOnzw+chhhjvSmNPk+oVPQ01ILi5N66dNyJ7KsanM0oelRx9vIqO3vccvYY9Rq8+A3lVFcWnYpzFaMv2ox8G4RUj/DAIq8M24Gw9aVU/rABHLLE+cB5iiPGhVHua3Lsnz55zey/3iEN8poYLsqdinMHIvvv2aqbzmu9DrlD5HEqJdZXfF+M0xk2dvxrLlfuqaTKquX6ai1jSUzHOYGQHvnZejWVKq2q+X6sBwW/VVnoqxhmM7LtDiUCjFa1flLJ/8PuYVX5fjJMYrZ4SUnxa1TF9XFMsENW2Saukp2Kcwrgxm/Ves1BKUscSECQJsqdinMYofSilS4rOmz6UMdf5sz31Mk75vhinM8IOpVnfJjq3Ccj9p5esyitlXLa2T/csYnxVRrMemhqkDqttfix/7pgNh1G29aV+6gfPQwwx/kUavx8lZEf/TswaF6qSdKpLiXEWo3Sa+O2SaU7/azNKVNFcv8pplfRUjDMYrRKmrtOudO7teG2kmusXa6c+aTFOZTTrpk05v/Tzp80nTV9fl9N/1fnFOJ2RDkDpYbyaMV4vbt9iMnVYyrJqMwo6D0WMcxlF2Tpn+csxgsMyYL4M3Q5h7228XtxSqv9qQI+zDeaPm4cYYnword+n83bn88rbzXw5Zm02n8jvi/HpjPt2k7o/L62bhrL5hFJnpV2Zkp6K8fmMku+3nSbxytc8ZA6lLaWmWqqfinEeo+mXaixr7ZdqfPxarOgK6usT40xGPqd3BRv/ftnjhv14c+tTCLAMGATHxqvhbADbS16uepZnEePrMppdUcmLl03PyXZ23nT2J2l3TcueivH5jJtzJlZyMl/uRan9/Oub30pPxfh8xv15fcT+U6A9r68smc7Q7uiTnopxJqN530k67KS0RcVe08NSgrXWe6VF9bmeRYwvzBibwj7YN99J75HIe6Bt2szyxz2+oefx8xBDjPel1k9z597eBqmt3GZUqvOL8Z8yOjcbwL/Hk83zjr6YVm1mdb9pimOf+FnE+CKMt68v2QyHAxvXAcb5MKDDl+G1Z1xfdlus2131UzFOZLQHmtWj+YuxrMf4pGXU0NavlO+LcRKjPZ+f2huVdTcOmSn7o5p76pcS4zSG+c/H/ESWZ3kWMcQQQwwxxBBDDDH+/4x/ABEm/nnBU6XVAAAAAElFTkSuQmCC",
    "base_64_image_url": "https://saq-api-files.s3-sa-east-1.amazonaws.com/media/5481da5d-b96b-46ae-999c-d5da2a3404a5.png",
    "debtor_document": "xxxxxxxxxxx",
    "debtor_name": "xxxxxx xxxxxx xxxxxx",
    "due_date": "2024-05-20T14:45:45.269Z",
    "expiration_date": "2024-05-20 14:45:46.269000",
    "fee": 0,
    "fine": 0,
    "fine_date": "2024-05-20T14:45:46.269Z",
    "pix_copy_and_paste": "00020101021226970014br.gov.bcb.pix2575qr-h.cornerpix.com.br/11581339/v2/cobv/9be93fde-5443-4c11-ba2e-b3a52db47caf5204000053039865802BR5914BMP MONEY PLUS6009SAO PAULO62070503***6304D95E",
    "qr_code_id": "xxxxxx",
    "status": "NEW",
    "type_document": "CPF",
    "type_fine": "NONE",
    "worked": true
  }
}
FieldDescription
typeQR_CODE_COPY_AND_PASTE_CREATED - Payment generated, awaiting payment by the customer
QR_CODE_COPY_AND_PASTE_PAID - Payment successfully completed QR_CODE_COPY_AND_PASTE_REFUNDED - Payment successfully refunded
amountReturns the amount
amount_chargebackIf a refund occurs, this field will be filled with the refunded amount.
base_64_imageReturns the generated QRCode image in base64 format
base_64_image_urlReturns the link with the generated QRCode image
debtor_documentReturns the Payer's document
debtor_nameReturns the Payer's name
due_dateReturns the due date
expiration_dateReturns the expiration date
feeReturns the fee that will be charged to the SaQ.Digital customer (if applicable)
fineReturns the fine value
fine_dateReturns the fine date
pix_copy_and_pasteThis field returns the generated copy and paste code that the customer can pay directly through their bank
qr_code_idUnique payment identifier generated.
statusNEW - Payment generated, awaiting payment by the customer
PAID - Payment successfully completed
CANCELED - Payment canceled / expired
type_documentReturns the Payer's type document
type_fineReturns the fine type
workedReturns true or false confirming whether it was successful or not.

PIX CASH IN REFUNDED

{
  "type": "QR_CODE_COPY_AND_PASTE_REFUNDED",
  "data": {
    "amount": 0.01,
    "amount_chargeback": 0.01,
    "chargeback_id": 10,
    "end_to_end": "D355352402025072116460PSEEHRSVDQ",
    "account_number": "900002",
    "agency_number": "0001",
    "debtor_document": "12345678911",
    "debtor_name": "Fulado de tal",
    "fee": 0,
    "fine": null,
    "fine_date": null,
    "origin_chargeback_id": 21863592,
    "origin_end_to_end": "E3030629420250721164500000000000",
    "status": "CHARGEBACK",
    "tag": "description",
    "type_document": "CPF",
    "type_fine": "NONE",
    "worked": true
  }
}
FieldDescription
typeQR_CODE_COPY_AND_PASTE_REFUNDED - Payments refunded by the origin that are returned to the destiny account statement
QR_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 SaQ.Digital 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.

CHARGEBACK/MED

{
  "type": "PIX_MED_RECEIVE",
  "data": {
    "pix_med_id": 2,
    "name": "Matheus xxxxxx Falcao",
    "cpf": "xxxxxxxxxxx",
    "amount": 10000,
    "due_date": "2024-05-16T15:00:00Z",
    "e2e": "E18xxxxxx4xxxxAA9Rxxxx",
    "qr_code_id": "xxxxxx",
    "qr_code_status": "CHARGEBACK",
    "qr_code_copy_and_paste": "00020101021226970014br.gov.bcb.pix2575qr-h.cornerpix.com.br/11581339/v2/cobv/fafaf5d3-f8a6-45bc-8b80-e4e94f99c92d5204000053039865802BR5914BMP MONEY PLUS6009SAO PAULO62070503***63048904"
  }
}
FieldDescription
typePIX_MED_RECEIVE - Generated dispute over a PIX by the Central Bank PIX_MED_RESPONSE_SEND - Response sent regarding the Chargeback/MED, accepting or rejecting the request. PIX_MED_RESPONSE_RECEIVE - Response received regarding the Chargeback/MED
dataReturns the date
nameReturns the Payer's name
cpfReturns the Payer's document (cpf)
amountReturns the amount
due_dateReturns the due date
e2eReturns the e2e (End-to-End), a unique identifier used in financial transactions to facilitate the identification and tracking of operations.
qr_code_idUnique payment identifier generated. This value never repeats, and it enables querying endpoints to confirm the payment status, refunds, etc.
qr_code_statusNEW - Payment generated, awaiting payment by the customer
PAID - Payment successfully completed
CANCELED - Payment canceled / expired
qr_code_copy_and_pasteReturns the QRCode Copy and Paste

PIX CASH OUT

{
  "type": "PIX_CASHOUT_CREATED",
  "data": {
    "amount": 0.01,
    "code_transaction": "***********7535f2ee8",
    "fee": 0.0,
    "from_accout": "****",
    "key": "lr*********@gmail.com",
    "status": "NEW",
    "tag": null,
    "transaction_id": ******
  }
}
FieldDescription
typePIX_CASHOUT_CREATED - Payment generated or awaiting approval
PIX_CASHOUT_SUCCESS - Payment successfully completed PIX_CASHOUT_ERROR - Payment not completed due to errors in the provided
amountReturns the amount
code_transactionReturns a unique identifier (EndtoEnd)
feeReturns the fee that will be charged to the SaQ.Digital customer (if applicable)
from_accoutReturns information about the originating account.
keyReturns the Pix key.
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

PIX CASH OUT REFUNDED

{
  "type": "PIX_CASHOUT_REFUND",
  "data": {
    "amount": 0.01,
    "transaction_id": 40400134,
    "end_to_end": "D303062942025072116460000002Pjdp",
    "fee": 0,
    "from_accout": "900002",
    "key": "14481568747",
    "origin_end_to_end": "E35535240202507211646GRGBGLAIRDN",
    "origin_transaction_id": 40300134,
    "recipient_account_id": "8044331",
    "recipient_branch_identifier": "20",
    "recipient_instution": "30306294",
    "recipient_legal_id": "14481568747",
    "recipient_name": "YURI RIBEIRO DOS SANTOS",
    "status": "REFUNDED",
    "tag": null,
    "worked": true
  }
}

FieldDescription
typePIX_CASHOUT_REFUND - Payments not accepted by the recipient that are returned to the source account statement
amountReturns the amount
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
end_to_endPayment identifier.
feeReturns the fee that will be charged to the SaQ.Digital customer (if applicable)
from_accoutReturns information about the originating account.
keyReturns the Pix key.
origin_end_to_endReturns the origin End To End transaction
origin_transaction_idReturns the ID transactions origin.
recipient_account_idReturns the account number
recipient_branch_identifierReturns agency number
recipient_instutionReturns account ISPB institution
recipient_legal_idReturns account document
recipient_nameReturn account name
statusReturns the status
tagReturns the tag (if applicable)
workerStatus refunded