Skip to content

Contracts

Contracts with clients, suppliers and employees, with period, value and renewal.

Module: Contracts (contracts).

  • GET /api/v1/contracts - List with filters, sorting and pagination (scope contracts:read)
  • GET /api/v1/contracts/{id} - A record by id (scope contracts:read)
  • POST /api/v1/contracts - Create a record (scope contracts:write)
  • PATCH /api/v1/contracts/{id} - Modify the submitted fields (scope contracts:write)
  • DELETE /api/v1/contracts/{id} - Delete or deactivate (scope contracts:write)
  • POST /api/v1/contracts/{id}/renew - Renews the contract. (scope contracts:write)
  • POST /api/v1/contracts/{id}/terminate - Ends the contract. (scope contracts:write)
  • POST /api/v1/contracts/{id}/set_billing_day - Invoicing day. (scope contracts:write)
  • POST /api/v1/contracts/{id}/set_project - The project contract. (scope contracts:write)
  • POST /api/v1/contracts/{id}/add_note - Note in the contract history. (scope contracts:write)
  • POST /api/v1/contracts/{id}/add_task - New task for the contract. (scope contracts:write, tasks:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • number (string; read)
  • title (string; write, required): Title
  • kind (string; write, required): Type
  • party_id (string, uuid; write): Client
  • supplier_id (string, uuid; write): Supplier
  • employee_id (string, uuid; write): Employee
  • counterparty (string; write): Other contracting party
  • status (string; write): Status
  • start_date (string, date; write): Start
  • end_date (string, date; write): End
  • auto_renew (boolean; write): Auto renewal
  • renew_months (number; write): Renewal (months)
  • notice_days (number; write): Notice period (days)
  • value (number; write): Value
  • currency (string; read): Currency (ISO code, e.g. RON).
  • billing_period (string; write): Billing
  • description (string; write): Description
  • terminated_at (string, date; read)
  • terminated_reason (string; read)
  • expiry_notified_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_by (string; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • legal_entity_id (string, uuid; write, required): Company
  • billing_day (integer; read)
  • billing_day_end (integer; read)
  • project_id (string, uuid; read)
  • contracts.created
  • contracts.updated
  • contracts.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.