Retorna as informações completas de um pagamento específico pelo seu ID.
Endpoint
curl https://api.upag.io/v1/payments/pay_xyz789abc \
-H "Authorization: Bearer {token}"
Parâmetros
ID único do pagamento, começando com pay_.
Resposta
{
"id": "pay_xyz789abc",
"livemode": false,
"customer": {
"id": "cus_ahwDXrgYvur89iPs",
"name": "John Doe",
"email": "[email protected]"
},
"paymentMethod": {
"id": "pm_abc123xyz",
"type": "credit_card",
"lastDigits": "1111",
"brand": "visa"
},
"amount": 10000,
"gross": 10000,
"mdr": 0,
"net": 10000,
"interest": 0,
"currency": "BRL",
"status": "paid",
"pixQrCode": null,
"refuseReason": null,
"installments": 1,
"createdAt": 1731622178441,
"updatedAt": 1731622178441,
"dueAt": null
}