Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 1.44 KB

create-shift-request.md

File metadata and controls

56 lines (47 loc) · 1.44 KB

Create Shift Request

Represents a request to create a Shift.

Structure

CreateShiftRequest

Fields

Name Type Tags Description
idempotencyKey string | undefined Optional A unique string value to ensure the idempotency of the operation.
Constraints: Maximum Length: 128
shift Shift Required A record of the hourly rate, start, and end times for a single work shift
for an employee. This might include a record of the start and end times for breaks
taken during the shift.

Example (as JSON)

{
  "idempotency_key": "HIDSNG5KS478L",
  "shift": {
    "breaks": [
      {
        "break_type_id": "REGS1EQR1TPZ5",
        "end_at": "2019-01-25T06:16:00-05:00",
        "expected_duration": "PT5M",
        "is_paid": true,
        "name": "Tea Break",
        "start_at": "2019-01-25T06:11:00-05:00"
      }
    ],
    "declared_cash_tip_money": {
      "amount": 500,
      "currency": "USD"
    },
    "end_at": "2019-01-25T13:11:00-05:00",
    "location_id": "PAA1RJZZKXBFG",
    "start_at": "2019-01-25T03:11:00-05:00",
    "team_member_id": "ormj0jJJZ5OZIzxrZYJI",
    "wage": {
      "hourly_rate": {
        "amount": 1100,
        "currency": "USD"
      },
      "tip_eligible": true,
      "title": "Barista",
      "job_id": "job_id0"
    },
    "id": "id4",
    "employee_id": "employee_id4",
    "timezone": "timezone4"
  }
}