Comunidade

Ask a Question
Back to All

Duvida como saber o status do pix??

Estou como saber o status do pix?

Este abaixo é retorno do sandbox

{
    "message": "Pix created successfully",
    "data": {
        "payer_name": "Fulano de Tal",
        "pix_id": "6fe0cd21-2a47-4b82-9188-b4dbfc271e89",
        "tx_id": "9ee39748ab664c1390e004470e19facf",
        "tax_id": "37297902000141",
        "pix_key": "13a066bc-1d02-464a-bed9-c98211a00934",
        "amount": 12.45,
        "type": "cob",
        "url": "https://static.uat.com/pix/dynamic/qrcode/37297902000141/4c972de4-3842-4b89-a2de-99f749a78950.png",
        "location": {
            "id": "6fe0cd21-2a47-4b82-9188-b4dbfc271e89",
            "type": "cob",
            "taxId": "37297902000141",
            "url": "https://static.uat.com/pix/dynamic/qrcode/37297902000141/4c972de4-3842-4b89-a2de-99f749a78950.png"
        },
        "updated_at": "2024-08-29T12:47:19.000000Z",
        "created_at": "2024-08-29T12:47:19.000000Z",
        "id": 3
    }
}

no webhook retorna dados diferentes:

{
  "accountId":"37297902000141-208-50-003886850",
  "date":"2022-03-02T22:01:55.274Z",
    "creditDebitIndicator":"DEBIT",
      "amount":30900,
        "currency":"BRL",
          "transactionId":"33449743"
} 

Como vou saber o status?