Appointments
Appointments: client, service, resource, employee, time slot and status.
Module: Appointments (scheduling).
Endpoints
Section titled “Endpoints”GET /api/v1/appointments- List with filters, sorting and pagination (scopescheduling:read)GET /api/v1/appointments/{id}- A record by id (scopescheduling:read)POST /api/v1/appointments- Create a record (scopescheduling:write)PATCH /api/v1/appointments/{id}- Modify the submitted fields (scopescheduling:write)DELETE /api/v1/appointments/{id}- Delete or deactivate (scopescheduling:write)POST /api/v1/appointments/{id}/decide_request- Approves or rejects an online booking request. The client receives the usual email. (scopescheduling:write)POST /api/v1/appointments/{id}/send_feedback_request- Sends the client the feedback request for the appointment. (scopefeedback:write)POST /api/v1/appointments/{id}/set_label- Puts a label on the appointment; if it is tied to a status, it changes it. (scopescheduling:write)POST /api/v1/appointments/{id}/remove_label- Removes the label. (scopescheduling:write)POST /api/v1/appointments/{id}/create_series- Repeats the appointment in a series. (scopescheduling:write)POST /api/v1/appointments/{id}/to_invoice- Draft invoice from the appointment. (scopescheduling:write, invoices:write)POST /api/v1/appointments/{id}/update_activity- Modifies a calendar activity. (scopescheduling:write)POST /api/v1/appointments/{id}/delete_activity- Deletes an activity; with series=true, the whole series. (scopescheduling:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).party_id(string, uuid; write, required): Clientlocation_id(string, uuid; write): Locationresource_id(string, uuid; write): Resourceemployee_id(string, uuid; write): Specialistappointment_type_id(string, uuid; write): Servicestarts_at(string, date-time; write, required): Startends_at(string, date-time; write, required): Endstatus(string; write): Statusnotes(string; write): Remarkscustom_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).series_id(string, uuid; read)series_index(integer; read)source(string; read)reminder_sent_at(string, date-time; read)client_package_id(string, uuid; read)booking_group_id(string, uuid; read)group_index(integer; read)answers(object; read)consents(object; read)allow_overlap(boolean; read)reject_reason(string; read)decided_at(string, date-time; read)reschedule_count(integer; read)cancel_reason(string; write): Cancellation detailscancelled_by(string; read)attribution(object; read)cancel_reason_code(string; write): Cancellation / no-show reasondelivery_mode(string; write): How it takes placeinsurer_id(string, uuid; write): Insurerpayment_method(string; read)payment_status(string; read)payment_due(number; read)payment_paid(number; read)lang(string; read)created_by(string; read)status_by(string; read)meet_url(string, uri; write): Meet linkco_employee_ids(array; write): Other specialists
Events
Section titled “Events”appointments.createdappointments.updatedappointments.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.