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

# Get dispute

> Returns a payment dispute by id.



## OpenAPI

````yaml /openapi.yaml get /v1/disputes/{id}
openapi: 3.1.0
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
security:
  - organizationApiKey: []
  - oauthAccessToken: []
tags:
  - name: Auth
  - name: Management
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
  - name: Messaging
paths:
  /v1/disputes/{id}:
    get:
      tags:
        - Payments
      summary: Get dispute
      description: Returns a payment dispute by id.
      operationId: disputes_get_by_id
      parameters:
        - schema:
            type: string
            description: Identifier of the dispute.
          required: true
          description: Identifier of the dispute.
          name: id
          in: path
      responses:
        '200':
          description: Dispute details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Dispute'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '404':
          description: Dispute not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    Dispute:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the dispute.
          example: dis_1234567890abcdefghij
        createdAt:
          type: string
          format: date-time
          description: When the dispute was created.
          example: '2025-01-15T18:30:00.000Z'
        updatedAt:
          type: string
          format: date-time
          description: When the dispute was last updated.
          example: '2025-01-15T18:30:00.000Z'
        status:
          type: string
          enum:
            - PENDING_RESPONSE
            - IN_REVIEW
            - CLOSED
            - LOST
            - WON
          description: Current status of the dispute.
          example: PENDING_RESPONSE
        respondBy:
          type:
            - string
            - 'null'
          format: date-time
          description: Deadline for submitting evidence to the issuer.
          example: null
        reason:
          type:
            - string
            - 'null'
          enum:
            - BANK_CANNOT_PROCESS
            - CHECK_RETURNED
            - CREDIT_NOT_PROCESSED
            - CUSTOMER_INITIATED
            - DEBIT_NOT_AUTHORIZED
            - DUPLICATE_CHARGE
            - FRAUDULENT
            - GENERAL
            - INCORRECT_ACCOUNT_DETAILS
            - INSUFFICIENT_FUNDS
            - NONCOMPLIANT
            - PRODUCT_NOT_RECEIVED
            - PRODUCT_UNACCEPTABLE
            - SUBSCRIPTION_CANCELED
            - UNRECOGNIZED_CHARGE
            - null
          description: Reason the customer disputed the charge.
          example: null
        paymentId:
          type: string
          description: Identifier of the disputed payment.
          example: p_1234567890abcdefghij
        madeById:
          type:
            - string
            - 'null'
          description: Identifier of the user who recorded the dispute, if any.
          example: u_1234567890abcdefghij
        resolvedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the dispute was resolved, if applicable.
          example: null
        lostReason:
          type:
            - string
            - 'null'
          description: Reason the dispute was lost, if applicable.
          example: null
        resolvedById:
          type:
            - string
            - 'null'
          description: Identifier of the user who resolved the dispute, if any.
          example: null
        payoutId:
          type:
            - string
            - 'null'
          description: Identifier of the related payout, if any.
          example: null
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - respondBy
        - reason
        - paymentId
        - madeById
        - resolvedAt
        - lostReason
        - resolvedById
        - payoutId
      description: A dispute recorded for a payment.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'
    oauthAccessToken:
      type: http
      scheme: bearer
      bearerFormat: OAuth 2.1
      description: 'OAuth access token using `Authorization: Bearer qoa_at_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.