RosterConvert billables

Convert shift billables

Needs: Finance, Read-write, and Clients, Read-write

Converts a shift's pending billables to Unpaid, like Convert in Billing insights. By default it also completes the shift, clocking it in and out at its rostered times. Add keep_clock to leave the clock times alone, and run with dry_run first to list what would convert. Shift refs are described in the Roster page.

Errors

  • 422 with This shift has no pending billables to convert. when there is nothing to convert.

Important: This endpoint needs Read-write on both Finance and Clients. With Finance alone the request is refused with a 422.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/shifts/example_string/billables" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "dry_run": true
}'
{
  "ref": "a:123",
  "converted": 1,
  "clock_kept": false
}
POST
/shifts/{ref}/billables
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 or g:456.

Content-Typestring
Required

The media type of the request body

Options: application/json
keep_clockboolean

Bill the shift but leave its clock times empty, so staff can still clock real times.

staff_idinteger

Only this staff member's pending billables.

dry_runboolean

List the pending billables that would convert, without converting.

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 or g:456.

Body

application/json
keep_clockboolean

Bill the shift but leave its clock times empty, so staff can still clock real times.

staff_idinteger

Only this staff member's pending billables.

dry_runboolean

List the pending billables that would convert, without converting.

Responses

Converted