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

# Pix Reconciliation

> Use Pagou read APIs to verify transaction state when a webhook is delayed, missed, or operationally ambiguous.

Use reconciliation when the payment state is uncertain after a timeout, worker crash, or delayed webhook.

## Read APIs

* `GET /v2/transactions`
* `GET /v2/transactions/{id}`

## Example request

```bash theme={null}
curl --request GET \
  --url https://api.pagou.ai/v2/transactions/018f1f2e-7b42-7c9a-8d3e-1a2b3c4d5e6f \
  --header "Authorization: Bearer YOUR_TOKEN"
```

## Example response

```json theme={null}
{
  "success": true,
  "requestId": "0190a2b4-18a7-7de0-9a43-69b7cf261201",
  "data": {
    "id": "018f1f2e-7b42-7c9a-8d3e-1a2b3c4d5e6f",
    "external_ref": "order_1001",
    "status": "paid",
    "method": "pix",
    "amount": 1500,
    "currency": "BRL",
    "paid_at": "2026-03-16T14:03:10.000Z",
    "updated_at": "2026-03-16T14:03:10.000Z"
  }
}
```

## Common error

Status `404`

```json theme={null}
{
  "type": "https://api.pagou.ai/problems/not-found",
  "title": "Resource Not Found",
  "status": 404,
  "detail": "The requested transaction does not exist."
}
```

Fix: verify the transaction ID and your own order-to-transaction mapping before retrying the lookup.

## Reconciliation flow

1. Load the Pagou transaction ID from your payment record or webhook store.
2. Fetch the latest transaction state.
3. Apply only forward-safe transitions in your system.
4. Keep webhooks as the normal update path after recovery.

## Next steps

* [Payment Events](/webhooks/payment-events)
* [Retries and Reconciliation](/webhooks/retries-and-reconciliation)
