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

# Overview

> A dispute is a resolved integration issue with payment gateway causing transaction discrepancies

**The Dispute Data Model** simplifies the handling and retrieval of disputes from different payment gateways. The model provides a unified representation of disputes, enabling you to easily access and manage dispute data from different platforms.

* Unified disputes properties: The model provides a unified representation of disputes from different payment gateways, enabling you to easily access and manage dispute data from different platforms.
* Comprehensive disputes information: The model provides a comprehensive representation of disputes, including information like the dispute `amount`, `currency`, `reason_code`, `reason_description`, `status`, `payment_id`, `platform_id`, `created_at`, and more.

## Attributes

### Dispute Attributes

| Property             | Type    | Description                                                           |
| -------------------- | ------- | --------------------------------------------------------------------- |
| rootfi\_id           | integer | The RootFi ID of the dispute                                          |
| rootfi\_created\_at  | string  | The ISO 8601 timestamp at which the record was created in RootFi      |
| rootfi\_updated\_at  | string  | The ISO 8601 timestamp at which the record was last updated in RootFi |
| rootfi\_company\_id  | integer | The RootFi company ID associated with the dispute                     |
| platform\_id         | string  | The Platform's ID for the dispute                                     |
| platform\_unique\_id | string  | The platform's unique identifier for the dispute                      |
| created\_at          | string  | The date and time the dispute was created                             |
| amount               | number  | The amount of the dispute                                             |
| currency\_id         | string  | The currency id of the dispute                                        |
| status               | enum    | The status of the dispute (WON, LOST, PENDING, OPEN, CLOSED)          |
| reason\_code         | string  | The reason code of the dispute                                        |
| reason\_description  | string  | The reason description of the dispute                                 |
| payment\_id          | string  | The payment id of the dispute                                         |

## Properties Supported

| Property            | Type   | Description                                                                    |
| ------------------- | ------ | ------------------------------------------------------------------------------ |
| platform\_id        | string | The Platform's ID for the dispute                                              |
| created\_at         | string | The date and time the dispute was created                                      |
| amount              | number | The amount of the dispute                                                      |
| currency\_id        | string | The currency id of the dispute                                                 |
| status              | enum   | The status of the dispute. Allowed values are WON, LOST, PENDING, OPEN, CLOSED |
| reason\_code        | string | The reason code of the dispute                                                 |
| reason\_description | string | The reason description of the dispute                                          |
| payment\_id         | string | The payment id of the dispute                                                  |

<ResponseExample name="The Dispute Object">
  ```json The Dispute Response Object theme={null}
  {
    "rootfi_id": 157,
    "rootfi_created_at": "2024-01-22T05:07:31.465Z",
    "rootfi_updated_at": "2024-01-22T05:07:31.000Z",
    "rootfi_company_id": 1089,
    "platform_id": "dp_123456",
    "created_at": "2024-01-22T05:07:31.000Z",
    "amount": 100.00,
    "currency_id": "USD",
    "status": "PENDING",
    "reason_code": "product_not_received",
    "reason_description": "Customer claims product was not received",
    "payment_id": "pay_123456"
  }
  ```
</ResponseExample>
