# Raise Third Party Dispute

This raises a third-party dispute. Disputes can only be raised for orders that has not been completed or that have not been canceled, the email used must be the email of the customer who placed the order. This should direct you to our chat hub implementation.

## Raise a dispute

<mark style="color:green;">`POST`</mark> `https://canary.xendbridge.com/api/Dispute/ThirdParty/RaiseDispute`

#### Headers

| Name                                        | Type | Description |
| ------------------------------------------- | ---- | ----------- |
| publicKey<mark style="color:red;">\*</mark> |      | {publicKey} |

#### Request Body

| Name                                             | Type | Description                                                                                                           |
| ------------------------------------------------ | ---- | --------------------------------------------------------------------------------------------------------------------- |
| orderReference<mark style="color:red;">\*</mark> |      | XB\_60a08393c17142f584563741ee9c834c                                                                                  |
| remark<mark style="color:red;">\*</mark>         |      | I have paid but yet to receive my crypto                                                                              |
| base64Attachment                                 |      | iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAYAAACaOMR5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm |
| emailAddress<mark style="color:red;">\*</mark>   |      | <johndoe@gmail.com>                                                                                                   |

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
{
    "data": {
        "isSuccessful": true,
        "reason": "",
        "disputeReference": "XB_1c69997f72624ed69dc880868dfae93f"
    },
    "status": "OK",
    "message": ""
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Request Fields" %}

<table><thead><tr><th width="202.66666666666666">Parameters</th><th width="150">Type</th><th>Definitions</th></tr></thead><tbody><tr><td>emailAddress</td><td>string</td><td><code>Required</code> The email address of the third party client.</td></tr><tr><td>orderReference</td><td>string</td><td><code>Required</code> The order reference of an order made.</td></tr><tr><td>remark</td><td>string</td><td><code>Required</code> This is a remark to be left by the consumer.</td></tr><tr><td>base64Attachment</td><td>string</td><td>This is a base64 converted string of an uploaded document.</td></tr></tbody></table>
{% endtab %}

{% tab title="Response Fields" %}

<table><thead><tr><th width="150">Parameters</th><th width="150">Type</th><th>Definitions</th></tr></thead><tbody><tr><td>data</td><td>object</td><td>This holds the properties: <code>IsSuccessful</code> and <code>reason</code>.</td></tr><tr><td>isSuccessful</td><td>bool</td><td>This returns either true or false.</td></tr><tr><td>reason</td><td>string</td><td>This returns empty if successful.</td></tr><tr><td>status</td><td>string</td><td>The status of the request.</td></tr><tr><td>message</td><td>string</td><td>This returns empty if successful.</td></tr><tr><td>disputeReference</td><td>string</td><td>This is a unqiue reference of any dispute raised in the system.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.xendbridge.com/api-method-calls/dispute/raise-third-party-dispute.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
