> ## Documentation Index
> Fetch the complete documentation index at: https://hilo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Common tasks

> Step-by-step examples for the jobs a point-of-sale system does every day.

Each example uses `$HILO_KEY` for your key and `$ORG` for the business's id.

## Set up a new business

The owner gets an email to set up their Hilo account, then sets up their locations and team.

```bash theme={null}
curl -X POST https://www.hiloscheduling.com/api/partner/v1/organizations \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: signup-1001" \
  -d '{
    "name": "Corner Cafe",
    "legalName": "Corner Cafe LLC",
    "owner": { "name": "Olive Owner", "email": "olive@cornercafe.com" },
    "externalId": "STORE-1001",
    "performedBy": "Sam from Tillpoint onboarding"
  }'
```

## Add a new employee

Use the location and position ids from `GET /organizations/{id}/locations` and `GET /organizations/{id}/positions`. With an email, Hilo emails them to finish onboarding: sensitive details are entered there, not sent by you.

```bash theme={null}
curl -X POST https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/employees \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -d '{
    "firstName": "Sam",
    "lastName": "Rivera",
    "email": "sam.rivera@example.com",
    "phone": "(208) 555-0142",
    "externalId": "POS-EMP-77",
    "locationIds": ["LOCATION_ID"],
    "positionIds": ["POSITION_ID"],
    "performedBy": "Jane Smith"
  }'
```

## Clock someone in and out

Send `clock_in`, `start_break`, `end_break` or `clock_out`. Hilo uses the current time. Use your own employee id (`externalEmployeeId`) or Hilo's (`employeeId`).

```bash theme={null}
curl -X POST https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/time/clock \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -d '{
    "externalEmployeeId": "POS-EMP-77",
    "action": "clock_in",
    "requestId": "register-4-000123",
    "performedBy": "Sam Rivera"
  }'
```

The answer says what happened (`"message": "Clocked in"`) and includes the time entry.

## Fix a forgotten clock-out

Find the entry with `GET /organizations/{id}/time/entries`, then send only what changes, with a reason:

```bash theme={null}
curl -X PATCH https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/time/entries/ENTRY_ID \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -d '{ "clockOut": "17:00", "reason": "Forgot to clock out", "performedBy": "Jane Smith" }'
```

For a shift that was never recorded, add it with `POST /organizations/{id}/time/entries` instead.

## Review and approve exceptions

List what needs a look, then approve with the manager's name:

```bash theme={null}
curl "https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/exceptions?status=open" \
  -H "Authorization: Bearer $HILO_KEY"

curl -X POST https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/exceptions/EXCEPTION_ID/approve \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -d '{ "note": "Stayed late for inventory", "performedBy": "Jane Smith" }'
```

## See who's working

`GET /organizations/{id}/time/clocked-in` lists everyone on the clock now. `GET /organizations/{id}/shifts` is the published schedule (this week if you don't give dates).

## Send sales for productivity

Set up the report once, then send numbers as often as you like (every few minutes works well). The formula reads the numbers you send in braces, and can use Hilo's own numbers too, like `clocked_in` (people on the clock right now).

```bash theme={null}
curl -X PUT https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/productivity/sales \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -d '{
    "name": "Sales per person this hour",
    "formula": "{sales.this_hour} / clocked_in",
    "mode": "goal", "goal": 120, "unit": "$",
    "performedBy": "Tillpoint sync"
  }'

curl -X POST https://www.hiloscheduling.com/api/partner/v1/organizations/$ORG/productivity/sales/readings \
  -H "Authorization: Bearer $HILO_KEY" -H "Content-Type: application/json" \
  -d '{ "data": { "sales": { "this_hour": 812.50 } }, "performedBy": "Tillpoint sync" }'
```

The answer is the result, for example `{ "value": 162.5, "percent": 135, "clockedIn": 5 }`, and the business sees it under Reports → Productivity and on its dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.