Worker Shift Cancelled

Overview

The worker shift cancellation event is sent after a worker's shift has been cancelled.

Event Parameters

For detailed information on the parameters that are common across all events, please refer to Parameters for All Events. The parameters listed here are specific to this event.

ParameterData TypeDescriptionExpected value
event_typeIntegerThe ID representing the type of event.19
provider_idIntegerThe unique ID of the WorkN Worker.
ext_employee_idStringThe ATS ID of the WorkN Worker.
job_idintegerThe unique ID of the WorkN Job.
job_instanceintegerWorkN Job Instance ID
request_idIntegerThe unique ID of the WorkN Service Request.
ext_order_idstringThe external order ID, if provided.
cancel_typeStringThe reason for cancelation.

1, 4, 5, or 12

1 - Cancelled by Admin
4 - Cancelled by Requester
5 - Cancelled by Worker
12 - No Show

cancel_user_idintegerThe unique ID of the WorkN User that canceled the assignment.
ext_shift_idStringATS shift IDs that are being canceled.

Sample Event

{
  "mkt_id": 123,
  "event_datetime": "2025-04-04T14:30:00",
  "msg_id": "evt_12345abcde",
  "ext_customer_id": "cust_789",
  "ent_id": 456,
  "ext_branch_id": "branch_101",
  "branch_id": 202,
  "event_type": 19,
  "provider_id": 9876,
  "ext_employee_id": "emp_5432",
  "job_id": 5555,
  "job_instance": 1,
  "request_id": 8765,
  "ext_order_id": "order_7777",
  "cancel_type": "5",
  "canceler_user_id": 3333,
  "ext_shift_id": "shift_001"
}