[GET] /payment/:id
Solicita os detalhes de uma cobrança
Endpoints
Método GET
Sandbox (firebanking.dev)
Produção (firebanking.com.br)
Requisição
Headers
Campo |
Valor |
Tipo |
Descrição |
---|---|---|---|
Content-Type |
application/json |
string |
Define o conteúdo como JSON |
x-api-key |
123 |
string |
Sua chave API |
Parâmetros da rota
Campo |
Obrigatório |
Descrição |
---|---|---|
id |
Sim |
Identificador único da transação. Pode ser informado tanto o |
cURL
curl --request GET \
--url 'https://api-gateway.firebanking.dev/credit-card/v1/payment/:id' \
--header 'x-api-key: <sua-chave-api>'
Exemplo de resposta
Campos a serem recebidos
{
"id": "27a1bc0e-86ee-43b3-a8e2-e32ec7106b7d",
"externalId": "38d25346-f14b-4a9a-82f4-ecef7840fcc3",
"status": "PAID",
"value": 50,
"installments": 2,
"providerCustomerId": "12345678909",
"customer": {
"name": "João Silva",
"document": "12345678909",
"email": "[email protected]",
"phone": "11999999999",
"countryCode": "+123",
"address": {
"country": "BR",
"state": "SP",
"city": "São Paulo",
"district": "Centro",
"street": "Rua das Flores",
"zipCode": "01234-567",
"number": "123",
"complement": "Apto 45"
}
},
"additionalInfo": {
"customerIp": "192.128.0.1",
"orderId": "order-123",
"customerId": "customer-123"
},
"title": "iPhone Pro Max 256GB",
"description": "Smartphone Apple Pro Max",
"callbackUrl": null,
"charges": [
{
"id": "879f0d79-8358-4c85-80d8-e939976db5f1",
"status": "PAID",
"value": 50,
"type": "FEE_TO_SELLER",
"creditCardBrand": "mastercard",
"creditCardBin": "51868825",
"creditCardLastDigits": "5601",
"creditCardAuthorizationCode": null,
"creditCardNsu": null,
"dueDate": "2025-08-03",
"captureDate": "2025-08-04",
"paymentDate": "2025-08-04",
"refundDate": null,
"createdAt": "2025-08-05T04:45:54.183Z",
"updatedAt": "2025-08-05T04:45:54.183Z"
}
],
"createdAt": "2025-08-05T04:45:54.183Z",
"updatedAt": "2025-08-05T04:45:54.183Z"
}