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.

Parameter

Data Type

Description

Expected value

event_type

Integer

The ID representing the type of event.

19

provider_id

Integer

The unique ID of the WorkN Worker.

ext_employee_id

String

The ATS ID of the WorkN Worker.

job_id

integer

The unique ID of the WorkN Job.

job_instance

integer

WorkN Job Instance ID

request_id

Integer

The unique ID of the WorkN Service Request.

ext_order_id

string

The external order ID, if provided.

cancel_type

String

The 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_id

integer

The unique ID of the WorkN User that canceled the assignment.

ext_shift_id

String

ATS 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"
}