Português (BR)
cURL
curl --request POST \ --url https://api-gateway.firebanking.dev/credit-card/v1/payment/{paymentId}/refund \ --header 'x-api-key: <api-key>'
{ "id": "<string>", "status": "<string>", "amount": 123, "installments": 123, "externalId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Estornar um pagamento completado
completed
curl -X POST "https://api-gateway.firebanking.com.br/credit-card/v1/payment/payment-123/refund" \ -H "x-api-key: SUA_CHAVE_DE_API"
{ "id": "payment-123", "status": "refunded", "amount": 10000, "installments": 1, "externalId": "ext-payment-12345", "refunded": true, "refundedAt": "2024-01-16T14:30:00Z", "refundAmount": 10000, "createdAt": "2024-01-15T10:30:00Z" }
Chave de API para autenticação
ID do pagamento a estornar
Pagamento estornado com sucesso
ID do pagamento
Status do pagamento
Valor do pagamento em reais
Número de parcelas
ID de referência externa
Timestamp de criação