---
title: "Check in at a shift (assigned, shift window from 60 min before start to the end, exact place, inside its fence)"
description: "Body: client_attempt_id (8-80 chars, retry-safe) and location {latitude, longitude, accuracy_meters, captured_at}. 403 not_assigned; 409 outside_shift_window; 422 outside_radius|uncertain_location|low_accuracy|address_imprecise|invalid_location."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Field Sales

`POST /api/field-sales/rep/shifts/{id}/checkin`

Body: client_attempt_id (8-80 chars, retry-safe) and location {latitude, longitude, accuracy_meters, captured_at}. 403 not_assigned; 409 outside_shift_window; 422 outside_radius|uncertain_location|low_accuracy|address_imprecise|invalid_location.

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/field-sales/rep/shifts/%7Bid%7D/checkin
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/rep/shifts/%7Bid%7D/checkin';
const options = {method: 'POST'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/field-sales/rep/shifts/%7Bid%7D/checkin"

response = requests.post(url)

print(response.text)
```


Source: https://developer.channelautomations.com/api/post-api-field-sales-rep-shifts-id-checkin/index.md
