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

# Get Dispute Detail

> Get detailed information about a specific dispute.



## OpenAPI

````yaml get /disputes/{dispute_id}
openapi: 3.1.0
info:
  title: public
  description: ''
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 1.105.0
servers:
  - url: https://test.dodopayments.com/
    description: Test Mode Server Host
  - url: https://live.dodopayments.com/
    description: Live Mode Server Host
security: []
tags:
  - name: Products
  - name: Payments
  - name: Subscriptions
  - name: Addons
  - name: Customers
  - name: Refunds
  - name: Disputes
  - name: Events
  - name: License Keys
  - name: Entitlements
  - name: Licenses
  - name: Discounts
  - name: Meters
  - name: Credit Entitlements
  - name: Credit Entitlement Balances
  - name: Outgoing Webhooks
  - name: Checkout
  - name: Webhook Events
paths:
  /disputes/{dispute_id}:
    get:
      tags:
        - Disputes
      operationId: get_dispute_handler
      parameters:
        - name: dispute_id
          in: path
          description: Dispute Id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDisputeResponse'
        '500':
          description: Something went wrong :(
      security:
        - API_KEY: []
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import DodoPayments from 'dodopayments';

            const client = new DodoPayments({
              bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
            });

            const getDispute = await client.disputes.retrieve('dispute_id');

            console.log(getDispute.brand_id);
        - lang: Python
          source: |-
            import os
            from dodopayments import DodoPayments

            client = DodoPayments(
                bearer_token=os.environ.get("DODO_PAYMENTS_API_KEY"),  # This is the default and can be omitted
            )
            get_dispute = client.disputes.retrieve(
                "dispute_id",
            )
            print(get_dispute.brand_id)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/dodopayments/dodopayments-go\"\n\t\"github.com/dodopayments/dodopayments-go/option\"\n)\n\nfunc main() {\n\tclient := dodopayments.NewClient(\n\t\toption.WithBearerToken(\"My Bearer Token\"),\n\t)\n\tgetDispute, err := client.Disputes.Get(context.TODO(), \"dispute_id\")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", getDispute.BrandID)\n}\n"
        - lang: Java
          source: |-
            package com.dodopayments.api.example;

            import com.dodopayments.api.client.DodoPaymentsClient;
            import com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient;
            import com.dodopayments.api.models.disputes.DisputeRetrieveParams;
            import com.dodopayments.api.models.disputes.GetDispute;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    DodoPaymentsClient client = DodoPaymentsOkHttpClient.fromEnv();

                    GetDispute getDispute = client.disputes().retrieve("dispute_id");
                }
            }
        - lang: Kotlin
          source: |-
            package com.dodopayments.api.example

            import com.dodopayments.api.client.DodoPaymentsClient
            import com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient
            import com.dodopayments.api.models.disputes.DisputeRetrieveParams
            import com.dodopayments.api.models.disputes.GetDispute

            fun main() {
                val client: DodoPaymentsClient = DodoPaymentsOkHttpClient.fromEnv()

                val getDispute: GetDispute = client.disputes().retrieve("dispute_id")
            }
        - lang: Ruby
          source: |-
            require "dodopayments"

            dodo_payments = Dodopayments::Client.new(
              bearer_token: "My Bearer Token",
              environment: "test_mode" # defaults to "live_mode"
            )

            get_dispute = dodo_payments.disputes.retrieve("dispute_id")

            puts(get_dispute)
        - lang: PHP
          source: |-
            <?php

            require_once dirname(__DIR__) . '/vendor/autoload.php';

            use Dodopayments\Client;
            use Dodopayments\Core\Exceptions\APIException;

            $client = new Client(
              bearerToken: getenv('DODO_PAYMENTS_API_KEY') ?: 'My Bearer Token',
              environment: 'test_mode',
            );

            try {
              $getDispute = $client->disputes->retrieve('dispute_id');

              var_dump($getDispute);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: C#
          source: >-
            using System;

            using DodoPayments.Client;

            using DodoPayments.Client.Models.Disputes;


            DodoPaymentsClient client = new();


            DisputeRetrieveParams parameters = new() { DisputeID = "dispute_id"
            };


            var getDispute = await client.Disputes.Retrieve(parameters);


            Console.WriteLine(getDispute);
components:
  schemas:
    GetDisputeResponse:
      type: object
      required:
        - dispute_id
        - payment_id
        - business_id
        - amount
        - currency
        - dispute_status
        - dispute_stage
        - created_at
        - customer
        - brand_id
        - payment_provider
      properties:
        amount:
          type: string
          description: >-
            The amount involved in the dispute, represented as a string to
            accommodate precision.
        brand_id:
          type: string
          description: Brand id this dispute belongs to
        business_id:
          type: string
          description: The unique identifier of the business involved in the dispute.
        created_at:
          type: string
          format: date-time
          description: The timestamp of when the dispute was created, in UTC.
        currency:
          type: string
          description: >-
            The currency of the disputed amount, represented as an ISO 4217
            currency code.
        customer:
          $ref: '#/components/schemas/CustomerLimitedDetailsResponse'
          description: The customer who filed the dispute
        dispute_id:
          type: string
          description: The unique identifier of the dispute.
        dispute_stage:
          $ref: '#/components/schemas/DisputeStage'
          description: The current stage of the dispute process.
        dispute_status:
          $ref: '#/components/schemas/DisputeStatus'
          description: The current status of the dispute.
        is_resolved_by_rdr:
          type:
            - boolean
            - 'null'
          description: Whether the dispute was resolved by Rapid Dispute Resolution
        payment_id:
          type: string
          description: The unique identifier of the payment associated with the dispute.
        payment_provider:
          $ref: '#/components/schemas/PaymentProvider'
          description: >-
            Which processor handled the underlying payment. `stripe` / `adyen`
            for

            BYOP routes (the merchant's own payment connector); `dodo` for

            everything Dodo processed itself.
        reason:
          type:
            - string
            - 'null'
          description: Reason for the dispute
        remarks:
          type:
            - string
            - 'null'
          description: Remarks
    CustomerLimitedDetailsResponse:
      type: object
      required:
        - customer_id
        - name
        - email
      properties:
        customer_id:
          type: string
          description: Unique identifier for the customer
        email:
          type: string
          description: Email address of the customer
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Additional metadata associated with the customer
        name:
          type: string
          description: Full name of the customer
        phone_number:
          type:
            - string
            - 'null'
          description: Phone number of the customer
    DisputeStage:
      type: string
      enum:
        - pre_dispute
        - dispute
        - pre_arbitration
    DisputeStatus:
      type: string
      enum:
        - dispute_opened
        - dispute_expired
        - dispute_accepted
        - dispute_cancelled
        - dispute_challenged
        - dispute_won
        - dispute_lost
    PaymentProvider:
      type: string
      description: >-
        The processor that ultimately handles a payment, surfaced to the
        dashboard

        so the UI can badge each payment / dispute as "powered by ...".


        `Stripe` and `Adyen` are returned for BYOP routes (the merchant's own

        payment connector). `Dodo` covers every other route — both Dodo's own

        MoR processors (Stripe US/UK, Cashfree, Airwallex) and any payment that
        has

        no merchant connector attached.


        This type intentionally does NOT reuse the internal `Connector` enum:
        that

        one tracks Dodo's own processor pool and shouldn't leak its variants
        into

        dashboard responses.
      enum:
        - stripe
        - adyen
        - dodo
    Metadata:
      type: object
      additionalProperties:
        type: string
      propertyNames:
        type: string
  securitySchemes:
    API_KEY:
      type: http
      scheme: bearer

````