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

# List invoice payment disputes

> Returns a list of payment disputes (chargebacks) associated with a specific invoice. The disputes are sorted by creation date, with the most recent entries appearing first.



## OpenAPI

````yaml get /ext/v2/invoices/{invoice_id}/payment-disputes/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/invoices/{invoice_id}/payment-disputes/:
    get:
      tags:
        - Invoices
      summary: List invoice payment disputes
      description: >-
        Returns a list of payment disputes (chargebacks) associated with a
        specific invoice. The disputes are sorted by creation date, with the
        most recent entries appearing first.
      operationId: invoices_get_payment_disputes
      parameters:
        - description: The ID of the invoice to fetch disputes for
          in: path
          name: invoice_id
          required: true
          schema:
            description: The ID of the invoice to fetch disputes for
            title: Invoice Id
            type: integer
        - description: When provided, filters to objects with these IDs.
          in: query
          name: ids
          required: false
          schema:
            anyOf:
              - items:
                  type: integer
                type: array
              - type: 'null'
            description: When provided, filters to objects with these IDs.
            title: Ids
        - description: >-
            A cursor used for pagination. Fetches the page of results ending
            immediately before the object with the given ID. Cannot be used at
            the same time as `starting_after`.
          in: query
          name: ending_before
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              A cursor used for pagination. Fetches the page of results ending
              immediately before the object with the given ID. Cannot be used at
              the same time as `starting_after`.
            title: Ending Before
        - description: >-
            A cursor used for pagination. Fetches the page of results starting
            immediately after the given ID. Cannot be used at the same time as
            `ending_before`.
          in: query
          name: starting_after
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              A cursor used for pagination. Fetches the page of results starting
              immediately after the given ID. Cannot be used at the same time as
              `ending_before`.
            title: Starting After
        - description: The maximum number of items to return per page.
          in: query
          name: limit
          required: false
          schema:
            default: 10
            description: The maximum number of items to return per page.
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoicePaymentDisputesList'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    InvoicePaymentDisputesList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ExternalInvoicePaymentDisputeSchema'
          title: Data
          type: array
        has_more:
          default: false
          description: Whether there are more pages or data in this list.
          title: Has More
          type: boolean
        next_page:
          description: A URL linking to the next page of this list.
          title: Next Page
          type: string
        type:
          default: list
          description: Type of this object. Always `list`.
          title: Type
          type: string
      required:
        - data
        - next_page
      title: InvoicePaymentDisputesList
      type: object
    ExternalInvoicePaymentDisputeSchema:
      description: Invoice payment disputes represents all disputes on an invoice payment.
      properties:
        created:
          description: The time at which this dispute was created
          format: date-time
          title: Created
          type: string
        created_by_id:
          description: The ID of the user who created this dispute
          title: Created By Id
          type: integer
        id:
          description: The unique identifier for the payment dispute
          title: Id
          type: integer
        payment_id:
          description: The payment ID associated with this dispute
          title: Payment Id
          type: integer
        resolved_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The time at which this dispute was resolved, if resolved
          title: Resolved At
        resolved_by_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: The ID of the user who marked this dispute as resolved, if resolved
          title: Resolved By Id
        status:
          $ref: '#/components/schemas/PaymentDisputeStatus'
          description: The status of this dispute
      required:
        - id
        - created
        - payment_id
        - status
        - created_by_id
        - resolved_at
        - resolved_by_id
      title: InvoicePaymentDisputes
      type: object
    PaymentDisputeStatus:
      description: Internal payment dispute status
      enum:
        - ACCEPTED
        - DECLINED
        - PENDING
        - UNKNOWN
      title: PaymentDisputeStatus
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````