TimesheetsFinalise or unlock a timesheet

Finalise or unlock a timesheet

Needs: Roster, Read-write

Finalise a timesheet (locks every staff member, ready for payroll) or unlock a finalised one with a reason, which is kept in its lock history.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/timesheets/123/finalise" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "finalised": false,
  "reason": "Fix a shift"
}'
{
  "id": 202,
  "finalised": true
}
POST
/timesheets/{id}/finalise
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
idinteger
Required

The timesheet id.

Content-Typestring
Required

The media type of the request body

Options: application/json
finalisedboolean

false unlocks a finalised timesheet.

reasonstring

Required to unlock (5+ characters).

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

idinteger
Required

The timesheet id.

Body

application/json
finalisedboolean

false unlocks a finalised timesheet.

reasonstring

Required to unlock (5+ characters).

Responses

OK