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

# Get Employee Punch Details

GET https://api.paylocity.com/apiHub/time/v2/companies/{companyId}/employees/{employeeId}/punchDetails

**Summary Description**

The GET Punch Detail V2 endpoint provides access to employee punch details effortlessly. The punch detail API will include all punch data for a single employee. It serves as a valuable tool for accessing, analyzing, and managing time-related records, providing intricate details related to employee punches. Punch Detail V2 offers four decimals of precision for timesheets using hours instead of seconds, allowing timesheets to display four decimal places and capturing hours with better precision. Punch times as well as non-work pay types will display up to four decimals. The Punch Details API can be filtered by the relative date and time based on your time zone.

```
Filtering by Date Range
The Punch Detail API can be filtered by the relative date and time based on your time zone. For example:
Start of the day: At 00:00:00 (midnight), marking the beginning of the day.
Midday: At 12:00:00 (noon), halfway through the day.
End of the day: At 23:59:00, just a second before the next day begins.
```

A 24 hour day is represented by using:

startDate=\{\{relativeStartTime}}\&endDate=\{\{relativeEndTime}}

"startDate": "2024-03-05T00:00:00"

"endDate": "2024-03-05T23:59:00"

`/Time/v2/companies/{{companyId}}/employees/{{employeeId}}/punchdetails?startDate={{relativeStartTime}}&endDate={{relativeEndTime}}`

For more information on implementing this API, see our [Punch Details Overview](https://developer.paylocity.com/integrations/reference/punch-detail-overview)

Reference: https://paylocity.ferndocs.com/time-labor/api-reference/paylocity-ap-is/punch-detail-employee-punch-details/get-employee-punch-details

## Authentication

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

## Request

### Path parameters

- `companyId` (string, required)
- `employeeId` (string, required)

### Query parameters

- `relativeStart` (string, optional) — The relative DateTime for the beginning of the WorkedShift **Allowable Values:** Format: yyyy-MM-ddT00:00:00
- `relativeEnd` (string, optional) — The relative DateTime for the end of the WorkedShift **Allowable Values:** Format: yyyy-MM-ddT00:00:00
- `testFlag` (boolean, optional) — A Boolean value that, when set to "true", returns mock data.

### Headers

- `Accept` (string, optional)

## Response

### 200

Successful response

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails"

querystring = {"relativeStart":"2023-05-01T00:01:00","relativeEnd":"2023-05-30T10:00:00","testFlag":"true"}

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript
const url = 'https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true';
const options = {
  method: 'GET',
  headers: {Accept: 'application/json', Authorization: 'Bearer <token>'}
};

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

```go
package main

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

func main() {

	url := "https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true"

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

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

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

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

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

}
```

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

url = URI("https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true")

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

request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer <token>'

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

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

HttpResponse<String> response = Unirest.get("https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true")
  .header("Accept", "application/json")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true', [
  'headers' => [
    'Accept' => 'application/json',
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Accept": "application/json",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.paylocity.com/apiHub/time/v2/companies/companyId/employees/employeeId/punchDetails?relativeStart=2023-05-01T00%3A01%3A00&relativeEnd=2023-05-30T10%3A00%3A00&testFlag=true")! 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()
```