Pix charge paid

Webhook sent by the system when a pix charge is paid.

Flow: cashin

Event: capture

Webhook triggered when a PIX charge (QR Code) generated on our platform is paid. The system delivers a POST request in the format below.

Payload Example

{
   "event":"capture",
   "transaction":{
      "id":"123-456-789",
      "merchant_id":"123-456-789",
      "user_id":"123-456-789",
      "processor_id":"123-456-789",
      "merchant_transaction_id":"0000001",
      "transaction_type":"pix",
      "first_name":"Foo",
      "last_name":"Bar",
      "email":"[email protected]",
      "document_number":"12345678067",
      "status":"success",
      "flow_type":"cashin",
      "e2e_id":"e00500002120220200000048r0xxv9wwww0l",
      "created_at":"2022-02-02T21:34:07+0000",
      "updated_at":"2022-02-02T21:36:03+0000",
      "error":null,
      "events":[
         {
            "id":"123-456-789",
            "success":true,
            "status":"success",
            "event_type":"capture",
            "amount":"1.00",
            "ip_address":null,
            "processor_code":null,
            "processor_message":null,
            "processor_transaction_id":null,
            "batch_id":null,
            "qrcode":null,
            "qrcode_image":"",
            "pix_key_type":null,
            "pix_key_value":null,
            "pix_message":null,
            "created_at":"2022-02-02T21:36:03+0000",
            "updated_at":"2022-02-02T21:36:03+0000"
         },
         {
            "id":"123-456-789",
            "success":true,
            "status":"success",
            "event_type":"auth",
            "amount":"1.00",
            "ip_address":null,
            "processor_code":"1",
            "processor_message":"pending",
            "processor_transaction_id":"123-456-789",
            "batch_id":null,
            "qrcode":"COPYPASTEPIXCODE",
            "qrcode_image":"data:image/png;base64,123123456546789789",
            "pix_key_type":null,
            "pix_key_value":null,
            "pix_message":null,
            "created_at":"2022-02-02T21:34:07+0000",
            "updated_at":"2022-02-02T21:34:10+0000"
         }
      ],
      "statement":[
         {
            "e2e_id":"e10573521202202121748r0xxv9anj0l",
            "bank_statement_id":"123456",
            "transaction_id":"123-456-789",
            "date":"2022-02-02 17:48:26",
            "amount":"100.00",
            "status":"CONFIRMED",
            "payer_ispb":"12312311",
            "payer_bank_code":"33333",
            "payer_bank_name":"Banco Foo S.A.",
            "payer_bank_agency":"0001",
            "payer_acc_number":"1122333",
            "payer_acc_type":"checking",
            "payer_document":"12345678067",
            "payer_document_type":"CPF",
            "payer_name":"Foo Bar",
            "created_at":"2022-02-02T17:48:27.000000Z"
         }
      ]
   }
}