> ## 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.

# Respond to dispute

> Submits a response to a payment dispute through its processor. Submitted responses are final. Requires a user OAuth token.



## OpenAPI

````yaml /openapi.yaml post /v1/dispute-responses
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/dispute-responses:
    post:
      tags:
        - Payments
      summary: Respond to dispute
      description: >-
        Submits a response to a payment dispute through its processor. Submitted
        responses are final. Requires a user OAuth token.
      operationId: disputes_respond
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                input:
                  type: object
                  properties:
                    disputeId:
                      type: string
                    statement:
                      type: string
                      minLength: 1
                      maxLength: 20000
                    productDescription:
                      type: string
                      maxLength: 20000
                    serviceDate:
                      type: string
                    evidence:
                      type: array
                      items:
                        type: object
                        properties:
                          file:
                            type: object
                            properties:
                              name:
                                type: string
                              key:
                                type: string
                              size:
                                type: number
                            required:
                              - name
                              - key
                              - size
                            additionalProperties: false
                          kind:
                            type: string
                            enum:
                              - CANCELLATION_POLICY
                              - CUSTOMER_COMMUNICATION
                              - CUSTOMER_SIGNATURE
                              - DUPLICATE_CHARGE_DOCUMENTATION
                              - RECEIPT
                              - REFUND_POLICY
                              - SERVICE_DOCUMENTATION
                              - SHIPPING_DOCUMENTATION
                              - UNCATEGORIZED_FILE
                        required:
                          - file
                          - kind
                      maxItems: 9
                      default: []
                  required:
                    - disputeId
                    - statement
              required:
                - input
      responses:
        '200':
          description: Dispute response submitted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDisputeResponsePayload'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '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:
    CreateDisputeResponsePayload:
      type: object
      properties:
        disputeResponse:
          $ref: '#/components/schemas/DisputeResponse'
        dispute:
          $ref: '#/components/schemas/Dispute'
      required:
        - disputeResponse
        - dispute
      description: The submitted response and the updated dispute.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
    DisputeResponse:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the dispute response.
          example: dr_1234567890abcdefghij
        createdAt:
          type: string
          format: date-time
          description: When the response was submitted.
        disputeId:
          type: string
          description: Dispute this response answers.
        statement:
          type: string
          description: Statement submitted to the payment processor.
        productDescription:
          type:
            - string
            - 'null'
          description: Description of the product or service.
        serviceDate:
          type:
            - string
            - 'null'
          description: When the service was provided.
        submittedById:
          type: string
          description: User who submitted the response.
      required:
        - id
        - createdAt
        - disputeId
        - statement
        - productDescription
        - serviceDate
        - submittedById
      description: A response submitted to the payment processor for a dispute.
    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.
  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.