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

# List Charges



## OpenAPI

````yaml GET /payment-method/{id}/payment
openapi: 3.1.0
info:
  title: Compago API
  version: 1.0.0
  description: >-
    Public and private API endpoints for Compago's payment infrastructure. This
    specification currently includes endpoints for one-time payments. More
    endpoints will be added as the platform evolves.
servers:
  - url: https://demo.api.harmony.compago.com/api
  - url: https://api.harmony.compago.com/api
security: []
tags:
  - name: OneTimePayment
    description: Endpoints for creating and processing one-time payment links
  - name: PaymentMethod
    description: >-
      Endpoints for saving cards, charging saved payment methods, and processing
      refunds
  - name: PaymentIntent
    description: >-
      Endpoints for creating and managing card-present payment intents for POS
      terminal integrations
paths:
  /payment-method/{id}/payment:
    get:
      tags:
        - PaymentMethod
      summary: List payments for a payment method
      operationId: listPaymentMethodPayments
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The unique identifier of the payment method
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
          description: Page number for pagination
        - name: pageSize
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
          description: Number of items per page (max 500)
        - name: status
          in: query
          schema:
            type: string
            enum:
              - NOT_INITIALIZED
              - PENDING
              - CONFIRMED
              - CANCELLED
              - REFUNDED
          description: Filter by payment status
      responses:
        '200':
          description: Paginated list of payments
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPaymentResponse'
        '401':
          description: Unauthorized – missing or invalid API key
        '404':
          description: Payment method not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ListPaymentResponse:
      type: object
      description: Paginated list of payments for a payment method
      properties:
        count:
          type: integer
          description: Total number of payments matching the filter criteria
          example: 10
        page:
          type: integer
          description: Current page number
          example: 1
        pageSize:
          type: integer
          description: Number of items per page
          example: 100
        items:
          type: array
          description: Array of payment objects
          items:
            $ref: '#/components/schemas/PaymentItem'
      required:
        - count
        - page
        - pageSize
        - items
    PaymentItem:
      type: object
      description: A payment item in list responses
      properties:
        id:
          type: string
          format: uuid
          example: 11111111-2222-3333-4444-555555555555
        status:
          type: string
          enum:
            - NOT_INITIALIZED
            - PENDING
            - CONFIRMED
            - CANCELLED
            - REFUNDED
          example: CONFIRMED
        amount:
          type: number
          format: decimal
        currency:
          type: string
          example: MXN
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````