Obter cobrança
curl --request GET \
--url https://api.upag.io/v1/charges/{chargeId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/charges/{chargeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/charges/{chargeId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Cobranças
Obter cobrança
Consulta uma cobrança pelo ID
GET
https://api.upag.io
/
v1
/
charges
/
{chargeId}
Obter cobrança
curl --request GET \
--url https://api.upag.io/v1/charges/{chargeId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/charges/{chargeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/charges/{chargeId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Endpoint
curl https://api.upag.io/v1/charges/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer sk_test_your_api_key" \
-G -d "includes=customer"
Parâmetros
string (uuid)
required
ID da cobrança.
string
customer — inclui o objeto cliente.Resposta
200 OK
Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "pix",
"status": "paid",
"amount": 9900,
"description": "Pedido #10482",
"customer": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"name": "Maria Pagadora",
"email": "maria@example.com",
"document": { "number": "39053344705", "type": "cpf" },
"phone": null,
"address": null,
"createdAt": "2026-03-18T11:45:00.000Z",
"updatedAt": "2026-03-18T11:45:00.000Z"
},
"pix": {
"reference": "tx-qr-1",
"qrCode": "00020126580014br.gov.bcb.pix...",
"expiresAt": "2026-03-18T12:00:00.000Z"
},
"splits": [],
"createdAt": "2026-03-18T11:50:00.000Z",
"updatedAt": "2026-03-18T12:05:00.000Z"
}
includes=customer, customer vem expandido como acima; sem include, é apenas o UUID.