Timesheet cards
Employee cards: the code read by the reader starts or stops the timesheet.
Module: Timesheets (timesheets).
Endpoints
Section titled “Endpoints”GET /api/v1/time_cards- List with filters, sorting and pagination (scopetimesheets:read)GET /api/v1/time_cards/{id}- A record by id (scopetimesheets:read)POST /api/v1/time_cards- Create a record (scopetimesheets:write)PATCH /api/v1/time_cards/{id}- Modify the submitted fields (scopetimesheets:write)DELETE /api/v1/time_cards/{id}- Delete or deactivate (scopetimesheets:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).employee_id(string, uuid; write, required): Employeecode(string; write, required): Time card codeis_active(boolean; write): Whether the record is active.note(string; write): Notelast_scan_at(string, date-time; read)custom_fields(object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).
Events
Section titled “Events”time_cards.createdtime_cards.updatedtime_cards.deleted
Accepts custom fields in custom_fields. docs.rivil.app documents the capability; the list for your company is in the ERP, under Settings, API.