> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itpainform.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itpainform.com/_mcp/server.

# List Order

GET http://localhost:1337/ext/v1/listOrder

A list order API which gives you a list of all orders created by you.

Reference: https://docs.itpainform.com/itpa/ap-is/list-order

## Request

### Query parameters

- `page` (integer, optional)

### Headers

- `clientId` (string, optional)
- `secretKey` (string, optional)

## Response

### 200

OK

- `data` (list of object, required)
  - `name` (string, required)
  - `refNo` (string, required)
  - `status` (string, required)
  - `oldRefNo` (string, required)
  - `orderDate` (object, required)
    - `day` (integer, required)
    - `year` (integer, required)
    - `month` (integer, required)
  - `reportDate` (object, required)
    - `day` (integer, required)
    - `year` (integer, required)
    - `month` (integer, required)
  - `reportType` (string, required)
  - `serviceType` (string, required)
  - `nameCorrected` (string, required)
- `count` (integer, required)
- `pageNo` (integer, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "name": "test6",
      "refNo": "1000001",
      "status": "Complete",
      "oldRefNo": "AK/366420352/ADONRI",
      "orderDate": {
        "day": 23,
        "year": 2024,
        "month": 1
      },
      "reportDate": {
        "day": 24,
        "year": 2024,
        "month": 1
      },
      "reportType": "ITPA_BIR",
      "serviceType": "NORMAL",
      "nameCorrected": "KLASSIK LAMITEX PRIVATE LIMITED"
    },
    {
      "name": "test6",
      "refNo": "1000000",
      "status": "Complete",
      "oldRefNo": "1624195",
      "orderDate": {
        "day": 23,
        "year": 2024,
        "month": 1
      },
      "reportDate": {
        "day": 23,
        "year": 2024,
        "month": 1
      },
      "reportType": "ITPA_BIR",
      "serviceType": "Normal",
      "nameCorrected": "SHREE NANDINI ENTERPRISES"
    }
  ],
  "count": 2,
  "pageNo": 0
}
```

**SDK Code**

```python APIs_List Order_example
import requests

url = "http://localhost:1337/ext/v1/listOrder"

querystring = {"page":"1"}

headers = {
    "clientId": "{{clientid}}",
    "secretKey": "{{secretkeys}}"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript APIs_List Order_example
const url = 'http://localhost:1337/ext/v1/listOrder?page=1';
const options = {
  method: 'GET',
  headers: {clientId: '{{clientid}}', secretKey: '{{secretkeys}}'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go APIs_List Order_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:1337/ext/v1/listOrder?page=1"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("clientId", "{{clientid}}")
	req.Header.Add("secretKey", "{{secretkeys}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby APIs_List Order_example
require 'uri'
require 'net/http'

url = URI("http://localhost:1337/ext/v1/listOrder?page=1")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["clientId"] = '{{clientid}}'
request["secretKey"] = '{{secretkeys}}'

response = http.request(request)
puts response.read_body
```

```java APIs_List Order_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://localhost:1337/ext/v1/listOrder?page=1")
  .header("clientId", "{{clientid}}")
  .header("secretKey", "{{secretkeys}}")
  .asString();
```

```php APIs_List Order_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:1337/ext/v1/listOrder?page=1', [
  'headers' => [
    'clientId' => '{{clientid}}',
    'secretKey' => '{{secretkeys}}',
  ],
]);

echo $response->getBody();
```

```csharp APIs_List Order_example
using RestSharp;

var client = new RestClient("http://localhost:1337/ext/v1/listOrder?page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("clientId", "{{clientid}}");
request.AddHeader("secretKey", "{{secretkeys}}");
IRestResponse response = client.Execute(request);
```

```swift APIs_List Order_example
import Foundation

let headers = [
  "clientId": "{{clientid}}",
  "secretKey": "{{secretkeys}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:1337/ext/v1/listOrder?page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```