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

# Leave Record - LIST

POST https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93
Content-Type: application/json

This API is used to extract leave requests from BIPO. It covers normal leave and leave-with-expiry requests.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| InterfaceCode | String | Yes | Must be `BIPO-LVR` |
| EmployeeCodes | Array of String | No | Only return requests of these employees |
| DateFrom | Date (yyyy-mm-dd) | No | Only return requests from this leave date |
| DateTo | Date (yyyy-mm-dd) | No | Only return requests up to this leave date |
| ApprovalDateFrom | Date (yyyy-mm-dd) | No | Only return requests approved from this date |
| ApprovalDateTo | Date (yyyy-mm-dd) | No | Only return requests approved up to this date |
| Fields | Array of String | No | Columns to return. Leave out to return all columns |

Note: Always send a filter (`EmployeeCodes` or a date range) so the response stays small.

Note: `ApprovalStatus` in the response shows where the request stands, for example `A` = Approved, `PA` = Pending Approval, `C` = Cancelled.

Note: `RecordID` in the response is the value to use for amend, approve, cancel and delete in **Leave Record - UPSERT** and **Leave Record - DELETE**.

Note: `ExternalRequestID` in the response is the reference your own system sent when the request was created. It is not unique, so match on `RecordID` when you need exactly one request.

Reference: https://developer.biposervice.com/bipo-portal/hrms-v-2/hrms-v-2-leave/leave-record-list

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects a string.

- `string`

## Response

### 200

OK

- `list of IntapiInterfaceExportPostIntapiInterfaceExport93PostResponsesContentApplicationJsonSchemaItems`

## Types

### IntapiInterfaceExportPostIntapiInterfaceExport93PostResponsesContentApplicationJsonSchemaItems

- `DateEnd` (datetime, required)
- `RecordID` (string, required)
- `DateStart` (datetime, required)
- `LeaveCode` (string, required)
- `EmployeeCode` (string, required)
- `ApprovalStatus` (string, required)
- `ExternalRequestID` (any, optional)

## Examples

### List leave requests of an employee

**Request**

```json
"{\n    //Leave Record. Includes leave-with-expiry requests.\n    \"InterfaceCode\": \"BIPO-LVR\",\n    \"EmployeeCodes\": [\"000004\"],\n    \"DateFrom\": \"2026-08-04\",\n    \"DateTo\": \"2026-08-05\",\n    //Optional. Choose the columns to return.\n    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]\n}"
```

**Response**

```json
[
  {
    "DateEnd": "2026-08-04T00:00:00",
    "RecordID": "d6364b04-d8bb-f111-84c3-06540fc8457d",
    "DateStart": "2026-08-04T00:00:00",
    "LeaveCode": "HK_AL",
    "EmployeeCode": "000004",
    "ApprovalStatus": "A"
  },
  {
    "DateEnd": "2026-08-05T00:00:00",
    "RecordID": "04dda512-d8bb-f111-84c3-06540fc8457d",
    "DateStart": "2026-08-05T00:00:00",
    "LeaveCode": "HK_AL",
    "EmployeeCode": "000004",
    "ApprovalStatus": "PA"
  }
]
```

**SDK Code**

```python List leave requests of an employee
import requests

url = "https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93"

payload = "{
    //Leave Record. Includes leave-with-expiry requests.
    \"InterfaceCode\": \"BIPO-LVR\",
    \"EmployeeCodes\": [\"000004\"],
    \"DateFrom\": \"2026-08-04\",
    \"DateTo\": \"2026-08-05\",
    //Optional. Choose the columns to return.
    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]
}"
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript List leave requests of an employee
const url = 'https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '"{\n    //Leave Record. Includes leave-with-expiry requests.\n    \"InterfaceCode\": \"BIPO-LVR\",\n    \"EmployeeCodes\": [\"000004\"],\n    \"DateFrom\": \"2026-08-04\",\n    \"DateTo\": \"2026-08-05\",\n    //Optional. Choose the columns to return.\n    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]\n}"'
};

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

```go List leave requests of an employee
package main

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

func main() {

	url := "https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93"

	payload := strings.NewReader("\"{\\n    //Leave Record. Includes leave-with-expiry requests.\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-08-04\\\",\\n    \\\"DateTo\\\": \\\"2026-08-05\\\",\\n    //Optional. Choose the columns to return.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\"")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby List leave requests of an employee
require 'uri'
require 'net/http'

url = URI("https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "\"{\\n    //Leave Record. Includes leave-with-expiry requests.\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-08-04\\\",\\n    \\\"DateTo\\\": \\\"2026-08-05\\\",\\n    //Optional. Choose the columns to return.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\""

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

```java List leave requests of an employee
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("\"{\\n    //Leave Record. Includes leave-with-expiry requests.\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-08-04\\\",\\n    \\\"DateTo\\\": \\\"2026-08-05\\\",\\n    //Optional. Choose the columns to return.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\"")
  .asString();
```

```php List leave requests of an employee
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93', [
  'body' => '"{\\n    //Leave Record. Includes leave-with-expiry requests.\\n    \\"InterfaceCode\\": \\"BIPO-LVR\\",\\n    \\"EmployeeCodes\\": [\\"000004\\"],\\n    \\"DateFrom\\": \\"2026-08-04\\",\\n    \\"DateTo\\": \\"2026-08-05\\",\\n    //Optional. Choose the columns to return.\\n    \\"Fields\\": [\\"RecordID\\", \\"ExternalRequestID\\", \\"EmployeeCode\\", \\"LeaveCode\\", \\"DateStart\\", \\"DateEnd\\", \\"ApprovalStatus\\"]\\n}"',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp List leave requests of an employee
using RestSharp;

var client = new RestClient("https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "\"{\\n    //Leave Record. Includes leave-with-expiry requests.\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-08-04\\\",\\n    \\\"DateTo\\\": \\\"2026-08-05\\\",\\n    //Optional. Choose the columns to return.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\"", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift List leave requests of an employee
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = "{
    //Leave Record. Includes leave-with-expiry requests.
    \"InterfaceCode\": \"BIPO-LVR\",
    \"EmployeeCodes\": [\"000004\"],
    \"DateFrom\": \"2026-08-04\",
    \"DateTo\": \"2026-08-05\",
    //Optional. Choose the columns to return.
    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]
}" as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```

### List a request synced from an external system (ExternalRequestID)

**Request**

```json
"{\n    \"InterfaceCode\": \"BIPO-LVR\",\n    \"EmployeeCodes\": [\"000004\"],\n    \"DateFrom\": \"2026-12-16\",\n    \"DateTo\": \"2026-12-16\",\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\n    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]\n}"
```

**Response**

```json
[
  {
    "DateEnd": "2026-12-16T00:00:00",
    "RecordID": "da899677-d1bb-f111-84c3-06540fc8457d",
    "DateStart": "2026-12-16T00:00:00",
    "LeaveCode": "HK_AL",
    "EmployeeCode": "000004",
    "ApprovalStatus": "A",
    "ExternalRequestID": null
  }
]
```

**SDK Code**

```python List a request synced from an external system (ExternalRequestID)
import requests

url = "https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93"

payload = "{
    \"InterfaceCode\": \"BIPO-LVR\",
    \"EmployeeCodes\": [\"000004\"],
    \"DateFrom\": \"2026-12-16\",
    \"DateTo\": \"2026-12-16\",
    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.
    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]
}"
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript List a request synced from an external system (ExternalRequestID)
const url = 'https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '"{\n    \"InterfaceCode\": \"BIPO-LVR\",\n    \"EmployeeCodes\": [\"000004\"],\n    \"DateFrom\": \"2026-12-16\",\n    \"DateTo\": \"2026-12-16\",\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\n    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]\n}"'
};

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

```go List a request synced from an external system (ExternalRequestID)
package main

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

func main() {

	url := "https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93"

	payload := strings.NewReader("\"{\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-12-16\\\",\\n    \\\"DateTo\\\": \\\"2026-12-16\\\",\\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\"")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby List a request synced from an external system (ExternalRequestID)
require 'uri'
require 'net/http'

url = URI("https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "\"{\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-12-16\\\",\\n    \\\"DateTo\\\": \\\"2026-12-16\\\",\\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\""

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

```java List a request synced from an external system (ExternalRequestID)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("\"{\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-12-16\\\",\\n    \\\"DateTo\\\": \\\"2026-12-16\\\",\\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\"")
  .asString();
```

```php List a request synced from an external system (ExternalRequestID)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93', [
  'body' => '"{\\n    \\"InterfaceCode\\": \\"BIPO-LVR\\",\\n    \\"EmployeeCodes\\": [\\"000004\\"],\\n    \\"DateFrom\\": \\"2026-12-16\\",\\n    \\"DateTo\\": \\"2026-12-16\\",\\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\\n    \\"Fields\\": [\\"RecordID\\", \\"ExternalRequestID\\", \\"EmployeeCode\\", \\"LeaveCode\\", \\"DateStart\\", \\"DateEnd\\", \\"ApprovalStatus\\"]\\n}"',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp List a request synced from an external system (ExternalRequestID)
using RestSharp;

var client = new RestClient("https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "\"{\\n    \\\"InterfaceCode\\\": \\\"BIPO-LVR\\\",\\n    \\\"EmployeeCodes\\\": [\\\"000004\\\"],\\n    \\\"DateFrom\\\": \\\"2026-12-16\\\",\\n    \\\"DateTo\\\": \\\"2026-12-16\\\",\\n    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.\\n    \\\"Fields\\\": [\\\"RecordID\\\", \\\"ExternalRequestID\\\", \\\"EmployeeCode\\\", \\\"LeaveCode\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"ApprovalStatus\\\"]\\n}\"", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift List a request synced from an external system (ExternalRequestID)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = "{
    \"InterfaceCode\": \"BIPO-LVR\",
    \"EmployeeCodes\": [\"000004\"],
    \"DateFrom\": \"2026-12-16\",
    \"DateTo\": \"2026-12-16\",
    //ExternalRequestID is your own reference. Keep the returned RecordID next to it.
    \"Fields\": [\"RecordID\", \"ExternalRequestID\", \"EmployeeCode\", \"LeaveCode\", \"DateStart\", \"DateEnd\", \"ApprovalStatus\"]
}" as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://server.bipocloud.com/tenant/intapi/Interface/Export#postIntapiInterfaceExport93")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```