Comunidade
PIX
Olá, pessoal, estou utilizando a API [https://dev.pagseguro.uol.com.br/reference/create-qrcode-order] para fechar pedidos com PIX. O pedido fechou corretamente, como podem ver no response abaixo:
{
"id": "ORDE_6EA7315F-C30A-4922-A7C6-58B22307E8FF",
"reference_id": "1995",
"created_at": "2022-11-21T09:39:44.931-03:00",
"customer": {
"name": "Jose da Silva",
"email": "[email protected]",
"tax_id": "12345678909",
"phones": [
{
"type": "MOBILE",
"country": "55",
"area": "11",
"number": "999999999"
}
]
},
"items": [
{
"name": "nome do item",
"quantity": 1,
"unit_amount": 500
}
],
"shipping": {
"address": {
"street": "Avenida Brigadeiro Faria Lima",
"number": "1384",
"complement": "apto 12",
"locality": "Pinheiros",
"city": "São Paulo",
"region_code": "SP",
"country": "BRA",
"postal_code": "01452002"
}
},
"qr_codes": [
{
"id": "QRCO_0C3D87C9-7076-4067-8D34-8A7A02037015",
"expiration_date": "2022-11-22T20:15:59.000-03:00",
"amount": {
"value": 500
},
"text": "00020101021226850014br.gov.bcb.pix2563api-h.pagseguro.com/pix/v2/0C3D87C9-7076-4067-8D34-8A7A0203701527600016BR.COM.PAGSEGURO01360C3D87C9-7076-4067-8D34-8A7A0203701552047994530398654045.005802BR5907SB Corp6009Sao Paulo62070503***6304132E",
"arrangements": [
"PIX"
],
"links": [
{
"rel": "QRCODE.PNG",
"href": "https://sandbox.api.pagseguro.com/qrcode/QRCO_0C3D87C9-7076-4067-8D34-8A7A02037015/png",
"media": "image/png",
"type": "GET"
},
{
"rel": "QRCODE.BASE64",
"href": "https://sandbox.api.pagseguro.com/qrcode/QRCO_0C3D87C9-7076-4067-8D34-8A7A02037015/base64",
"media": "text/plain",
"type": "GET"
}
]
}
],
"notification_urls": [
"https://meusite.com/notificacoes"
],
"links": [
{
"rel": "SELF",
"href": "https://sandbox.api.pagseguro.com/orders/ORDE_6EA7315F-C30A-4922-A7C6-58B22307E8FF",
"media": "application/json",
"type": "GET"
},
{
"rel": "PAY",
"href": "https://sandbox.api.pagseguro.com/orders/ORDE_6EA7315F-C30A-4922-A7C6-58B22307E8FF/pay",
"media": "application/json",
"type": "POST"
}
]
}
Poderiam de me dizer em qual endpoint eu posso bater para retornar o status de pedidos realizados com PÍX e qual campo eu uso?!
Em pedidos com cartão, por exemplo, ele me retorna o charge id e eu busco no endpoint [https://dev.pagseguro.uol.com.br/reference/get-charge].