v1

latestOpenAPI 3.1.02026-08-06911,228852.2 KB
Staff

Shift notification

Notify about a shift event.

postWebhookstaff-apiShift notification

Payload

notificationType'shift.created' | 'shift.updated' | 'shift.deleted'

The type of webhook notification.

Example payload

{
  "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"
      }
    ]
  }
}

Response

Your server returns this code if it accepts the callback.