Pular para o conteúdo principal

Payload de Cobrança Paga

Pix Cobrança Paga (CHARGE_COMPLETED)

Os webhooks de Pix Cobrança Paga enviam objetos com os seguintes campos no seu payload:

  • pix: Objeto com detalhes da transação Pix
  • company: Empresa a que a Transação pertence
  • account: Detalhes da conta que a Transação pertence

Exemplo

{
"event": "OPENPIX:CHARGE_COMPLETED",
"charge": {
"customer": {
"name": "cliente",
"email": "[email protected]",
"phone": "+5511973591090",
"taxID": { "taxID": "67784666004", "type": "BR:CPF" },
"correlationID": "4f8093dc-1800-4e6b-bf83-178c24f1e0cd",
"address": {
"zipcode": "",
"street": "",
"number": "",
"neighborhood": "",
"city": "",
"state": "",
"complement": ""
}
},
"value": 10000,
"comment": "",
"identifier": "79a955477ca34fffae213363d5c34070",
"paymentLinkID": "36e4f36d-813c-48e4-916f-fcf061231074",
"transactionID": "79a955477ca34fffae213363d5c34070",
"status": "COMPLETED",
"additionalInfo": [],
"discount": 0,
"valueWithDiscount": 10000,
"expiresDate": "2024-01-25T09:50:56.954Z",
"type": "DYNAMIC",
"correlationID": "b05a3247-5d2b-432b-9b29-253db3125634",
"createdAt": "2024-01-25T09:45:57.562Z",
"updatedAt": "2024-01-25T09:46:15.544Z",
"paidAt": "2024-01-25T09:46:14.824Z",
"payer": {
"name": "EDUARDO MACIEL DE MATOS",
"taxID": { "taxID": "67784666004", "type": "BR:CPF" },
"correlationID": "a191393b-2f72-4cbb-8ce7-e1810153b0db",
"address": {
"zipcode": "13142514",
"street": "Rua OpenPix",
"number": "2019",
"neighborhood": "Casa",
"city": "Sao Paulo",
"state": "SP",
"complement": "Brooklin"
}
},
"brCode": "00020101021226950014br.gov.bcb.pix2573api.openpix.com.br/api/testaccount/qr/v1/79a955477ca34fffae213363d5c340705204000053039865406100.005802BR5914EDUARDO_MACIEL6009Sao_Paulo6229052579a955477ca34fffae213363d6304219B",
"expiresIn": 300,
"pixKey": "5081d2e9-45d0-4075-86b6-64c77bc5b73b",
"paymentLinkUrl": "https://openpix.com.br/pay/36e4f36d-813c-48e4-916f-fcf061231074",
"qrCodeImage": "https://api.openpix.com.br/openpix/charge/brcode/image/36e4f36d-813c-48e4-916f-fcf061231074.png",
"globalID": "Q2hhcmdlOjY1YjIyZGQ1MGU3ODU5YTRhZTNmZDM5NA=="
},
"pix": {
"customer": {
"name": "cliente",
"email": "[email protected]",
"phone": "+5511973591090",
"taxID": { "taxID": "67784666004", "type": "BR:CPF" },
"correlationID": "4f8093dc-1800-4e6b-bf83-178c24f1e0cd",
"address": {
"zipcode": "",
"street": "",
"number": "",
"neighborhood": "",
"city": "",
"state": "",
"complement": "",
"country": "BR",
"location": { "coordinates": [] },
"_id": "6512f4da3343177a352199cb"
}
},
"payer": {
"name": "EDUARDO MACIEL DE MATOS",
"taxID": { "taxID": "67784666004", "type": "BR:CPF" },
"correlationID": "4f8093dc-1800-4e6b-bf83-178c24f1e0cd",
"address": {
"zipcode": "13142514",
"street": "Rua OpenPix",
"number": "2019",
"neighborhood": "Casa",
"city": "Sao Paulo",
"state": "SP",
"complement": "Brooklin",
"country": "BR",
"location": { "coordinates": [] },
"_id": "64e37c0fea92115c2e2a5ecc"
}
},
"charge": {
"customer": {
"name": "rumbling",
"email": "[email protected]",
"phone": "+5511973591090",
"address": {
"zipcode": "",
"street": "",
"number": "",
"neighborhood": "",
"city": "",
"state": "",
"complement": ""
},
"taxID": { "taxID": "67784666004", "type": "BR:CPF" },
"correlationID": "4f8093dc-1800-4e6b-bf83-178c24f1e0cd"
},
"value": 10000,
"comment": "",
"identifier": "79a955477ca34fffae213363d5c34070",
"paymentLinkID": "36e4f36d-813c-48e4-916f-fcf061231074",
"transactionID": "79a955477ca34fffae213363d5c34070",
"status": "COMPLETED",
"additionalInfo": [],
"discount": 0,
"valueWithDiscount": 10000,
"expiresDate": "2024-01-25T09:50:56.954Z",
"type": "DYNAMIC",
"correlationID": "b05a3247-5d2b-432b-9b29-253db3125634",
"createdAt": "2024-01-25T09:45:57.562Z",
"updatedAt": "2024-01-25T09:46:15.544Z",
"paidAt": "2024-01-25T09:46:14.824Z",
"payer": {
"name": "EDUARDO MACIEL DE MATOS",
"taxID": { "taxID": "67784666004", "type": "BR:CPF" },
"correlationID": "a191393b-2f72-4cbb-8ce7-e1810153b0db",
"address": {
"zipcode": "13142514",
"street": "Rua OpenPix",
"number": "2019",
"neighborhood": "Casa",
"city": "Sao Paulo",
"state": "SP",
"complement": "Brooklin"
}
},
"brCode": "00020101021226950014br.gov.bcb.pix2573api.openpix.com.br/api/testaccount/qr/v1/79a955477ca34fffae213363d5c340705204000053039865406100.005802BR5914EDUARDO_MACIEL6009Sao_Paulo6229052579a955477ca34fffae213363d6304219B",
"expiresIn": 300,
"pixKey": "5081d2e9-45d0-4075-86b6-64c77bc5b73b",
"paymentLinkUrl": "https://openpix.com.br/pay/36e4f36d-813c-48e4-916f-fcf061231074",
"qrCodeImage": "https://api.openpix.com.br/openpix/charge/brcode/image/36e4f36d-813c-48e4-916f-fcf061231074.png",
"globalID": "Q2hhcmdlOjY1YjIyZGQ1MGU3ODU5YTRhZTNmZDM5NA=="
},
"value": 10000,
"time": "2024-01-25T09:46:14.824Z",
"endToEndId": "Eac490bf76a684b21a2e458d56f888091",
"transactionID": "79a955477ca34fffae213363d5c34070",
"infoPagador": "OpenPix testing",
"type": "PAYMENT",
"createdAt": "2024-01-25T09:46:15.446Z",
"globalID": "UGl4VHJhbnNhY3Rpb246NjViMjJkZTczNzJlMDNlNDhiZTI0ZDc0"
},
"company": {
"id": "6384cca8cecc7a26b98c49fd",
"name": "Eduardo Maciel",
"taxID": "45036856000155"
},
"account": {}
}