Skip to content

Appointments

Appointments: client, service, resource, employee, time slot and status.

Module: Appointments (scheduling).

  • GET /api/v1/appointments - List with filters, sorting and pagination (scope scheduling:read)
  • GET /api/v1/appointments/{id} - A record by id (scope scheduling:read)
  • POST /api/v1/appointments - Create a record (scope scheduling:write)
  • PATCH /api/v1/appointments/{id} - Modify the submitted fields (scope scheduling:write)
  • DELETE /api/v1/appointments/{id} - Delete or deactivate (scope scheduling:write)
  • POST /api/v1/appointments/{id}/decide_request - Approves or rejects an online booking request. The client receives the usual email. (scope scheduling:write)
  • POST /api/v1/appointments/{id}/send_feedback_request - Sends the client the feedback request for the appointment. (scope feedback:write)
  • POST /api/v1/appointments/{id}/set_label - Puts a label on the appointment; if it is tied to a status, it changes it. (scope scheduling:write)
  • POST /api/v1/appointments/{id}/remove_label - Removes the label. (scope scheduling:write)
  • POST /api/v1/appointments/{id}/create_series - Repeats the appointment in a series. (scope scheduling:write)
  • POST /api/v1/appointments/{id}/to_invoice - Draft invoice from the appointment. (scope scheduling:write, invoices:write)
  • POST /api/v1/appointments/{id}/update_activity - Modifies a calendar activity. (scope scheduling:write)
  • POST /api/v1/appointments/{id}/delete_activity - Deletes an activity; with series=true, the whole series. (scope scheduling:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • party_id (string, uuid; write, required): Client
  • location_id (string, uuid; write): Location
  • resource_id (string, uuid; write): Resource
  • employee_id (string, uuid; write): Specialist
  • appointment_type_id (string, uuid; write): Service
  • starts_at (string, date-time; write, required): Start
  • ends_at (string, date-time; write, required): End
  • status (string; write): Status
  • notes (string; write): Remarks
  • 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).
  • 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 details
  • cancelled_by (string; read)
  • attribution (object; read)
  • cancel_reason_code (string; write): Cancellation / no-show reason
  • delivery_mode (string; write): How it takes place
  • insurer_id (string, uuid; write): Insurer
  • payment_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 link
  • co_employee_ids (array; write): Other specialists
  • appointments.created
  • appointments.updated
  • appointments.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.