Worker Assignment Cancelled

Overview

The worker assigned cancellation event is sent after a worker assignment 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.

13

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

ext_order_id

String

The external order ID, if provided.

cancel_type

Integer

The reason for cancelation.

If canceling job:
1, 4, 5, or 10

If canceling assignment:
1, 4, or 5

1 - Cancelled by Admin
4 - Cancelled by Requester
5 - Cancelled by Worker
9 - Interest Cancelled by Admin
10 - Interest Cancelled by Requester

cancel_user_id

Integer

The unique ID of the WorkN User that canceled the assignment

ext_shift_ids

List of Strings

List of 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": 13,
  "provider_id": 9876,
  "ext_employee_id": "emp_5432",
  "job_id": 5555,
  "job_instance": 1,
  "ext_order_id": "order_7777",
  "cancel_type": "1",
  "canceler_user_id": 3333,
  "ext_shift_ids": ["shift_001", "shift_002"]
}