---
title: "Validate Check-Out action"
method: GET
path: "/workorders/{workorderId}/validateCheckOut"
tags: ["WorkOrders"]
---

# Validate Check-Out action

`GET /workorders/{workorderId}/validateCheckOut`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/workorders/{workorderId}/validateCheckOut`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/workorders/:workorderId/validateCheckOut/get.ts> (a function with typed inputs; its response is checked against the schema)

Validate Check-Out action

## Path parameters

- `workorderId` integer, required

## Query parameters

- `workTypeId` integer
- `latitude` number, double, required
- `longitude` number, double, required

## Response `200`

Indicates that the request succeeded and that the requested information is in the response.

- ServiceChannelServicesMessagingCheckInOutCheckInValidateResponse: Check-In Validate Response
  - `IsBadgeScanRequired` boolean: Is Badge Scan Required
  - `IsLoginTypeAllowed` boolean: Is Current Login type Allowed to perform check-in action
  - `IsOutsideAcceptableTimeframe` boolean: Is Outside Acceptable Timeframe
  - `IsOutsideGeolocation` boolean: Is Outside Geolocation
  - `OutsideOperationalHoursMessage` string: Outside Operational Hours Message
  - `IsMaskRequired` boolean: Is Mask Required
  - `CheckInOutsideGPSAllowed` boolean: Is Check In Outside Geolocation Radius Allowed
  - `CheckOutOutsideGPSAllowed` boolean: Is Check Out Outside Geolocation Radius Allowed
  - `IsCompliantNonCompliantCheckInEnabled` boolean: Is Compliant Non-Compliant Check In/Out Enabled

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters. <br/>Error codes: <br/> 502 - WorkOrder not found; <br/> 503 - Request data is empty; <br/>Provide your location to perform checkin/checkout; <br/> 917 - Invalid Tracking Number; <br/> 921 - Cannot update work order in 'completed' status; <br/>Cannot update invoiced work order; <br/> 924 - Work order has been invoiced and cannot be changed; <br/> 941 - Can't do check out: out of ... mile range;
- `401`: Indicates that the requested resource requires authentication. <br/>Error codes: <br/> 504 - API call rejected by security permissions;
- `405`: Indicates that the request method is not allowed on the requested resource.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
