# Order History  & Status

You can use this endpoint to make two types of query

* Query a single transaction: To know more about a transaction status, you can use the **"search\_partner\_order\_ref"** to query the transaction. If you are using this key, ignore the start and end date parameters
* Query using date range: If you want to see all the history of activities on your wallet between a date range use the "start\_date" & "end\_date". While using this key, ignore the **search\_partner\_order\_ref**

### Get Single Order Endpoint

## This is used to get the details of a single order

<mark style="color:blue;">`GET`</mark> `https://exchanger-api.fuspay.finance/api/v1/no-auth/Axis/GetOrder/`

#### Query Parameters

| Name                                          | Type   | Description                                 |
| --------------------------------------------- | ------ | ------------------------------------------- |
| order\_type<mark style="color:red;">\*</mark> | String | "buy or sell"                               |
| order\_no<mark style="color:red;">\*</mark>   | String | This is the order number of the transaction |

#### Headers

| Name                                            | Type   | Description                    |
| ----------------------------------------------- | ------ | ------------------------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer ${partner\_secret\_key} |
| x-partner-id<mark style="color:red;">\*</mark>  | String | "pxxxxxx"                      |

{% tabs %}
{% tab title="200: OK Successful Transfer or Failed Transfer" %}
{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```javascript
{
     success: true,
     message: string,
     data: {
     .....
     }
     }
```

{% endcode %}
{% endtab %}
{% endtabs %}

### Get Multiple Order Endpoint

## This is used to get the details of multiple orders.

<mark style="color:blue;">`GET`</mark> `https://exchanger-api.fuspay.finance/api/v1/no-auth/Axis/OrderHistory/`

#### Query Parameters

| Name                                          | Type   | Description         |
| --------------------------------------------- | ------ | ------------------- |
| order\_type<mark style="color:red;">\*</mark> | String | "buy or sell"       |
| date\_from<mark style="color:red;">\*</mark>  | String | "2024-03-01 16:000" |
| date\_to<mark style="color:red;">\*</mark>    | String | "2024-03-02 16:000" |

#### Headers

| Name                                            | Type   | Description                      |
| ----------------------------------------------- | ------ | -------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | "Bearer ${partner\_secret\_key}" |
| x-partner-id<mark style="color:red;">\*</mark>  | String | "pxxxxxx"                        |

{% tabs %}
{% tab title="200: OK Successful Transfer or Failed Transfer" %}
{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```javascript
{
     success: true,
     message: string,
     data: {
     .....
     }
     }
```

{% endcode %}
{% endtab %}
{% endtabs %}
