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

# List Credit Notes by Account

List all credit notes for an account with pagination.

<ParamField path="id" type="string" required>
  The account ID.
</ParamField>

<ParamField query="page" type="integer">
  Page number (default: 1).
</ParamField>

<ParamField query="limit" type="integer">
  Items per page (default: 20, max: 100).
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.alguna.io/account/acc_abc123/credit-notes?page=1&limit=20" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const creditNotes = await alguna.creditNotes.list('acc_abc123', {
    page: 1,
    limit: 20
  });
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "items": [
      {
        "id": "cn_xyz789",
        "accountId": "acc_abc123",
        "status": "issued",
        "total": "100.00",
        "currency": "USD",
        "createdAt": "2024-01-20T10:00:00Z"
      },
      {
        "id": "cn_abc456",
        "accountId": "acc_abc123",
        "status": "applied",
        "total": "50.00",
        "currency": "USD",
        "createdAt": "2024-01-15T08:00:00Z"
      }
    ],
    "pageCount": 1,
    "limit": 20
  }
  ```
</ResponseExample>

<ResponseField name="items" type="array">
  Array of credit note objects.
</ResponseField>

<ResponseField name="pageCount" type="integer">
  Total number of pages.
</ResponseField>

<ResponseField name="limit" type="integer">
  Items per page.
</ResponseField>
