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

# 列出交易记录

> 列出最近的账单交易记录，包括使用费用和信用购买。

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.arouter.ai/api/v1/transactions \
    -H "Authorization: Bearer lr_live_xxxx"
  ```

  ```python Python theme={null}
  import requests

  resp = requests.get(
      "https://api.arouter.ai/api/v1/transactions",
      headers={"Authorization": "Bearer lr_live_xxxx"},
  )
  print(resp.json())
  ```

  ```typescript Node.js theme={null}
  const response = await fetch("https://api.arouter.ai/api/v1/transactions", {
    headers: {
      Authorization: "Bearer lr_live_xxxx",
    },
  });

  console.log(await response.json());
  ```
</RequestExample>

## 响应

```json theme={null}
{
  "transactions": [
    {
      "id": "txn_xxx",
      "type": "usage",
      "amount": -0.0042,
      "description": "openai/gpt-5.4 - 500 input tokens, 200 output tokens",
      "created_at": "2026-04-03T10:00:00Z"
    },
    {
      "id": "txn_yyy",
      "type": "credit",
      "amount": 50.0,
      "description": "Credit purchase",
      "created_at": "2026-04-01T09:00:00Z"
    }
  ]
}
```

| 字段            | 描述                        |
| ------------- | ------------------------- |
| `id`          | 唯一交易 ID                   |
| `type`        | 交易类型，如 `usage` 或 `credit` |
| `amount`      | 信用购买为正值，使用费用为负值           |
| `description` | 交易的人类可读描述                 |
| `created_at`  | 交易记录时间的 RFC3339 时间戳       |

## 说明

* 结果按从新到旧排序。
* 使用费用反映规范化的 ARouter 核算，包括适用时的缓存 Token 和推理 Token。
* 如需控制台导出以及按模型或 API key 分组，请参阅[活动导出](/zh/guides/administration/activity-export)。
