> ## Documentation Index
> Fetch the complete documentation index at: https://nasten.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar Reembolsos

> Liste as vendas reembolsadas com o filtro de status da listagem de transações.

Reembolso é uma venda com status `refund`. Não há rota própria: use a [listagem de transações](https://nasten.mintlify.site/pages/transactions/get.md) com `status=refund`, combinada com os outros filtros (período, forma de pagamento, cliente).

```
GET /v1/transactions?status=refund
```

## Requisição

```bash theme={null}
curl 'https://api.nasten.net/v1/transactions?status=refund&initialDate=2026-09-01T00:00:00-03:00&finalDate=2026-09-30T23:59:59-03:00' \
  -H 'Authorization: Bearer <seu_token>'
```

## Resposta `200`

O formato é o da [listagem](https://nasten.mintlify.site/pages/transactions/get.md#campos-da-venda). Exemplo resumido:

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": "clm8x9y0z1234567890abcdef",
      "paymentMethod": "pix",
      "amount": 5000,
      "netAmount": 4850,
      "fees": 150,
      "status": "refund",
      "description": "Pedido 1042",
      "createdAt": "2026-09-22T14:30:00.000Z",
      "canSubmitContest": true,
      "customer": {
        "id": "clcustomer234567890abcdef",
        "name": "Cliente Exemplo",
        "phone": null,
        "documentType": "CPF",
        "document": "01234567890",
        "emails": [{ "email": "cliente@exemplo.com" }]
      },
      "saleType": "producer",
      "paymentLink": null,
      "payments": []
    }
  ],
  "totalRows": 3
}
```

## Combinações úteis

| Objetivo | Query |
| - | - |
| Reembolsos do mês | `?status=refund&initialDate=2026-09-01T00:00:00-03:00&finalDate=2026-09-30T23:59:59-03:00` |
| Reembolsos e chargebacks | `?status=refund&status=chargeback` |
| Reembolsos de cartão digitado | `?status=refund&paymentMethod=credit_card` |
| Reembolsos de venda dividida | `?status=refund&paymentMethod=card_pix` (Cartão + Pix) ou `card_card` (2 cartões) |
| Reembolsos de um cliente | `?status=refund&document=01234567890` |

> [!NOTE]
>
> * O período filtra pela **data de criação da venda**, não pela data do reembolso.
> * `status` pode ser repetido para combinar estados (OU). A paginação é de 10 em 10 com `offset`.
> * `paymentMethod=credit_card` traz só o cartão digitado, pago de uma vez: não traz vendas por Apple Pay e Google Pay nem vendas divididas. Para as divididas, use `card_pix` ou `card_card`.
> * A chave de produção lista só vendas reais; a [chave de teste](https://nasten.mintlify.site/pages/sandbox.md), só vendas de teste.

## Conciliação de estornos

```mermaid theme={null}
flowchart LR
    A["Webhook<br/>transaction_refunded"] --> B["Baixa no pedido"]
    C["Rotina diária<br/>GET ?status=refund"] --> D["Confere com o financeiro"]
    B --> D
```

O webhook `transaction_refunded` chega tanto no reembolso (`status: "refund"`) quanto no chargeback (`status: "chargeback"`). Combine o webhook (tempo real) com uma listagem periódica (conferência) para fechar o financeiro.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.