Shift notification

POST https://webhook.example.com

Notify about a shift event.

application/json

Body Required

  • The type of webhook notification.

    Values are shift.created, shift.updated, or shift.deleted.

  • data object

    Shift details.

    Additional properties are allowed.

    Hide data attributes Show data attributes object
    • 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.

    • The declared tips for the shift.

    • dateInUTC string(date-time)

      The timestamp of the last update to the shift.

    • events array[object]

      List of events during the shift.

      Hide events attributes Show events attributes object
      • 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.

      • The type of event.

        Values are CLOCK_IN or CLOCK_OUT.

Responses

  • Your server returns this code if it accepts the callback.

POST Shift notification
Request examples
{
  "notificationType": "shift.created",
  "data": {
    "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"
      }
    ]
  }
}