> 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.

# [DEPRECATED] Get Employee Punch Details

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

**Summary Description**

The GET Punch Details API 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. The Punch Details API can be filtered by date range

**The Paylocity Punch Detail use cases:**
- The Punch Detail API provides HR and payroll organizations with precise and comprehensive punch data for every employee. The provided data can be utilized to accurately compute employee salaries, incorporating overtime and rounding modifications
-  Organizations can employ the API to collect punch data for particular cost centers or departments. This enables comprehensive examination of labor efficiency, attendance, and time allocation. By having access to both rounded and precise punch times, firms can analyze patterns, evaluate employee punctuality, and utilize data-driven strategies to enhance operational efficiency
- The Punch Detail API is indispensable for ensuring adherence to labor standards. It offers a thorough record of employee punches, facilitating the demonstration of compliance during audits or inquiries. Users have the ability to apply filters based on date range, facilitating the retrieval of specific data needed for compliance reporting

Reference: https://paylocity.ferndocs.com/time-labor/api-reference/paylocity-ap-is/punch-detail-employee-punch-details/deprecated-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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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()
```