RosterClock out

Clock out

Needs: Roster, Read-write

Clocks staff out of a shift now with their shift notes, like Clock out on the roster. This creates the billables and any travel claims. A note left empty is saved as Note not provided. Confirm before calling this.

Errors

  • 422 with <name> has not clocked in. Set complete_if_not_clocked_in to complete the shift for them when someone never clocked in.
curl -X POST "https://app.imploy.com.au/api/integrations/v1/shifts/example_string/clock-out" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "staff": [
    {
      "staff_id": 31,
      "notes": "<p>Visit completed, no concerns.</p>"
    }
  ]
}'
{
  "ref": "a:123",
  "succeeded": 1,
  "failed": 0,
  "results": [
    {
      "staff": "Example Worker",
      "ok": true
    }
  ]
}
POST
/shifts/{ref}/clock-out
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
path
refstring
Required

The shift ref, such as a:123.

Content-Typestring
Required

The media type of the request body

Options: application/json
staffarray
Required

Who to clock out. Each has a staff_id, and optionally notes and segment_notes.

complete_if_not_clocked_inboolean

For staff who never clocked in: clock them in and out now (Complete shift). Only use after confirming.

author_staff_idinteger

Write the notes as this staff member on the shift. Defaults to the organisation owner.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Path Parameters

refstring
Required

The shift ref, such as a:123.

Body

application/json
staffarray
Required

Who to clock out. Each has a staff_id, and optionally notes and segment_notes.

complete_if_not_clocked_inboolean

For staff who never clocked in: clock them in and out now (Complete shift). Only use after confirming.

author_staff_idinteger

Write the notes as this staff member on the shift. Defaults to the organisation owner.

Responses

OK