Get Shifts

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.lsk.lightspeed.app/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Lightspeed Restaurant K-Series MCP server": {
    "url": "https://api-docs.lsk.lightspeed.app/mcp"
  }
}

Close
GET /staff/v1/businessLocations/{businessLocationId}/shift

Shifts of one business location with their clock-in and clock-out events.

startTime and endTime filter on dateInUTC, the time of the shift's latest clock-in or clock-out. Without them the window is the last 30 days.

Results are sorted by dateInUTC, newest first. Follow links.next or raise page until page.page equals page.totalPages.

Path parameters

  • businessLocationId integer(int64) Required

    The unique identifier for the business location.

Query parameters

  • page integer(int32)

    The page number, when paginating. Pages start at 1.

    Minimum value is 1. Default value is 1.

  • size integer(int32)

    Number of results to return per page, when paginating. Values above 200 are capped at 200.

    Minimum value is 1. Default value is 10.

  • sort array[string]

    Sort by field and direction. The default date,desc sorts on dateInUTC, newest first.

    Default value is ["date,desc"].

  • startTime string(date-time)

    Return shifts whose dateInUTC (time of the latest clock-in or clock-out) is at or after this time. ISO 8601 date-time with an offset, for example 2026-11-10T04:30:00Z. A value without an offset fails with 400. URL-encode a + offset as %2B. Defaults to 30 days ago.

  • endTime string(date-time)

    Return shifts whose dateInUTC (time of the latest clock-in or clock-out) is at or before this time. A shift clocked out after this time is not returned. ISO 8601 date-time with an offset, for example 2026-11-10T23:59:59Z. A value without an offset fails with 400. URL-encode a + offset as %2B. Defaults to now.

  • staffId integer(int64)

    Filter on the unique identifier for the user.

Responses

  • 200 application/json

    List of shifts with related links.

    Hide response attributes Show response attributes object
    • data object
      Hide data attribute Show data attribute object
      • shifts array[object]

        Shift details.

        Hide shifts attributes Show shifts attributes object

        Shift details.

        • uuid string

          The unique identifier for the shift.

        • businessId integer(int64)

          The unique identifier for the business.

        • businessLocationId integer(int64)

          The unique identifier for the business location.

        • deviceId integer(int64)

          The unique identifier for the device.

        • staffId integer(int64)

          The unique identifier for the user.

        • declaredCashTips string

          The declared tips for the shift.

        • dateInUTC string(date-time)

          The time of the shift's latest clock-in or clock-out. This is not the shift start. The startTime and endTime filters match on this field.

        • events array[object]

          Clock-in and clock-out events of the shift, oldest first. The shift is open when its last event is CLOCK_IN.

          Hide events attributes Show events attributes object

          Shift event such as clock in/out. If a shift has more than one event of the same type, use the newest one.

          • uuid string

            The unique identifier for the event.

          • timestamp string(date-time)

            The time of the event.

          • createdOn string(date-time)

            The creation time of the event.

          • eventType string

            The type of event.

            Values are CLOCK_IN or CLOCK_OUT.

    • page object
      Hide page attributes Show page attributes object
      • page integer

        The current page number.

      • size integer

        The number of elements in the page.

      • totalElements integer

        The total number of elements.

      • totalPages integer

        The total number of pages of results.

GET /staff/v1/businessLocations/{businessLocationId}/shift
curl \
 --request GET 'https://api.lsk.lightspeed.app/staff/v1/businessLocations/{businessLocationId}/shift' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "shifts": [
      {
        "uuid": "REcdfpCwQJKUR53gdzIk5Q==",
        "businessId": 12345,
        "businessLocationId": 1234567890,
        "deviceId": 54321,
        "staffId": 1234,
        "declaredCashTips": "10.00",
        "dateInUTC": "2020-01-01T00:00:00Z",
        "events": [
          {
            "uuid": "REcdfpCwQJKUR53gdzIk5Q==",
            "timestamp": "2020-01-01T00:00:00Z",
            "createdOn": "2020-01-01T00:00:00Z",
            "eventType": "CLOCK_IN"
          }
        ]
      }
    ]
  },
  "links": {
    "first": {
      "href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
    },
    "prev": {
      "href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
    },
    "self": {
      "href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
    },
    "next": {
      "href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=2&size=1&sort=userId,desc"
    },
    "last": {
      "href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=5&size=1&sort=userId,desc"
    }
  },
  "page": {
    "page": 1,
    "size": 10,
    "totalElements": 100,
    "totalPages": 10
  }
}