# List payments

Returns a paginated list of Payments for the specified site. Supports filtering and sorting.

Endpoint: GET /site/{siteId}/ahds/v1/payment
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

## Query parameters:

  - `page` (number)
    Page number (0-indexed)

  - `pageSize` (number)
    Number of items per page

  - `sortBy` (string)
    Field to sort by

  - `sortOrder` (string)
    Sort order

  - `clientId` (string)
    Identifier of the client associated with this payment.

  - `comments` (string)
    Internal comments or notes about the payment.

  - `currency` (string)
    ISO 4217 currency code for the payment amount.

  - `isActive` (boolean)
    Indicates whether the payment record is active.

  - `ownershipId` (string)
    Identifier for the owning organization or practice.

  - `paymentDetails` (string)
    Free-text or structured details about the payment method (e.g., last 4 digits, reference number).

  - `paymentMethod` (string)
    Method used to make the payment.

  - `status` (string)
    Lifecycle status of the payment.

## Response 200:

  - `200` (unknown)
    Paginated list of Payments

## Response 401:

  - `401` (unknown)
    Unauthorized

