The event requires the Daily Time Capture system feature to be enabled to function correctly.

The day_pay_approved event is sent after a daily timesheet has been approved, that is the Approve Timesheet button has been clicked on the timesheet page for a specific days worth of time.

Event Parameters

ParameterData TypeDescription
EventNamestringThe name of the specific event.
FrontOfficeTenantIdintegerFront office ID that indicates the tenant (client) for which the request is being made.
ResourcestringEvent specific information:

DayPayId(integer): The identifier for the day pay timesheet.
CorrelationId(string): Unique identifier for this event.
ResourceModelTypestring.NET class name for the Resource.
CorrelationIdstringUnique identifier for this event.

Sample Event

  "EventName": "time_sheet_processed",
  "FrontOfficeTenantId": 6,
  "Resource": "{\"DayPayId\":65786,\”AccountingPeriodStaffingSupplierGUID\”:\”gs571a92-8ecc-4a2d-a751-f796556c0c3a\”,\"CorrelationId\":\"ba623a16-8ecc-4a2d-a751-f796556c0c3a\"}",
  "ResourceModelType": "Avionte.Commons.CompasEventModel.ResourceModel.DayPayApprovedResourceModel, Avionte.Commons.CompasEventModel, Version=, Culture=neutral, PublicKeyToken=null",
  "CorrelationId": "ba623a16-8ecc-4a2d-a751-f796556c0c3a"

Associated Endpoint

For details about the timesheet, check the Get Approved Timesheet endpoint.