---
updatedAt: 2026-11-10T16:26:49.000Z
agentTools:
  projectIndex: https://docs.pagaleve.com.br/llms.txt
---

# Obter refunds de um pagamento

Este endpoint é retorna os reembolsos de um pagamento existente pelo payment_id

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "PaymentTransactionDto": {
        "description": "Transação relacionada a um Pagamento",
        "properties": {
          "amount": {
            "description": "Valor da transação de pagamento em centavos",
            "type": "number",
            "example": 2000
          },
          "id": {
            "description": "ID da transação",
            "type": "string",
            "example": "3c0db7b0-c145-4af6-aecd-82fb964665a4"
          },
          "timestamp": {
            "description": "Data e hora em que a transação ocorreu",
            "type": "string",
            "example": "2022-12-09T13:36:00.489Z"
          },
          "reference": {
            "description": "Id do reembolso vindo do lojista",
            "type": "string",
            "example": "PD2L0046"
          }
        },
        "required": [
          "amount",
          "timestamp"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {},
    "description": "API pública",
    "title": "API Endpoints",
    "version": "1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/v1/payments/{id}/refunds": {
      "get": {
        "operationId": "PaymentPublicController_getRefunds",
        "summary": "Obter refunds de um pagamento",
        "description": "Este endpoint é retorna os reembolsos de um pagamento existente pelo payment_id",
        "parameters": [
          {
            "description": "Token de autorização Bearer",
            "in": "header",
            "name": "Authorization",
            "required": true,
            "schema": {
              "type": "string",
              "example": "Bearer eyJhbGciOiJIUzI1NiJ9..."
            }
          },
          {
            "name": "reference",
            "required": false,
            "in": "query",
            "description": "Id do reembolso vindo da loja",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Id do pagamento",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentTransactionDto"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Pagamentos"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Staging server",
      "url": "https://sandbox-api.pagaleve.io"
    },
    {
      "description": "Production server",
      "url": "https://api.pagaleve.com.br"
    },
    {
      "url": "https://pre-analysis.pagaleve.com.br/api/v1",
      "description": "Pre-analysis production server"
    },
    {
      "url": "https://sandbox-pre-analysis.pagaleve.io/api/v1",
      "description": "Pre-analysis staging server"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```