> For the complete documentation index, see [llms.txt](https://edrus.gitbook.io/appgregator-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edrus.gitbook.io/appgregator-api-docs/appgregators/global-crypto-and-digital-assets/indodax/api/method/getorder.md).

# getOrder

### Use getOrder to get specific order details.

| Parameter | Required | Value                              | Description                      |
| --------- | -------- | ---------------------------------- | -------------------------------- |
| pair      | Yes      | btc\_idr, ltc\_btc, doge\_btc, etc | Pair to get the information from |
| order\_id | Yes      | integer                            | Order ID                         |

<details>

<summary>Body JSON</summary>

```shell
{
    "method": "orderHistory",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "count" : "",
    "from" : "",
    "pair" : "btc_idr"    
}
```

</details>

<mark style="color:green;">`POST`</mark> `https://us-central1-appgregator.cloudfunctions.net/indodax/method/`

#### Query Parameters

| Name                                               | Type   | Description  |
| -------------------------------------------------- | ------ | ------------ |
| name<mark style="color:red;">\*</mark>             | String | qantor.co.id |
| connection\_name<mark style="color:red;">\*</mark> | String | crypto01     |

#### Headers

| Name                                         | Type   | Description                                      |
| -------------------------------------------- | ------ | ------------------------------------------------ |
| x-api-key<mark style="color:red;">\*</mark>  | String | U2Fsd...                                         |
| secret-key<mark style="color:red;">\*</mark> | String | <p>84c7373b....(your indodax secret key)<br></p> |

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

```shell
{
    "success": 1,
    "return": {
        "order": {
            "order_id": "59639504",
            "price": "100207000",
            "type": "buy",
            "order_rp": "336058",
            "remain_rp": "336058",
            "submit_time": "1578648363",
            "finish_time": "1578649332",
            "status": "cancelled"
        }
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01' \
--header 'secret-key: 84c7373...' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
    "method": "getOrder",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "pair" : "btc_idr",
    "order_id" : "59639504" 
}'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');
var data = JSON.stringify({
  "method": "getOrder",
  "timestamp": "1578304294000",
  "recvWindow": "1578303937000",
  "pair": "btc_idr",
  "order_id": "59639504"
});

var config = {
  method: 'post',
  url: 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01',
  headers: { 
    'secret-key': '84c7373...', 
    'x-api-key': 'U2Fsd...', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "method": "getOrder",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "pair" : "btc_idr",
    "order_id" : "59639504" 
}',
  CURLOPT_HTTPHEADER => array(
    'secret-key: 84c7373...',
    'x-api-key: U2Fsd...',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
