Skip to content

Suppliers

Suppliers, with tax and contact details.

Module: Suppliers (suppliers).

  • GET /api/v1/suppliers - List with filters, sorting and pagination (scope suppliers:read)
  • GET /api/v1/suppliers/{id} - A record by id (scope suppliers:read)
  • POST /api/v1/suppliers - Create a record (scope suppliers:write)
  • PATCH /api/v1/suppliers/{id} - Modify the submitted fields (scope suppliers:write)
  • DELETE /api/v1/suppliers/{id} - Delete or deactivate (scope suppliers:write)
  • POST /api/v1/suppliers/{id}/set_product - The supplier’s offer for a product. (scope suppliers:write)
  • POST /api/v1/suppliers/{id}/remove_product - Removes the product from the supplier’s offer. (scope suppliers:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • name (string; write, required): Name
  • cui (string; write): Tax ID (CUI)
  • nr_reg_com (string; write): Trade register number
  • platitor_tva (boolean; write): VAT payer
  • adresa (string; write): Address
  • localitate (string; write): City
  • judet (string; write): County
  • email (string, email; write): Email (orders)
  • phone (string; write): Phone
  • website (string, uri; write): Website
  • contact_name (string; write): Contact person
  • iban (string; write): IBAN
  • bank (string; write): Bank
  • payment_terms_days (number; write): Payment term (days)
  • lead_time_days (number; write): Delivery time (days)
  • min_order_value (number; write): Minimum order (RON)
  • rating (number; write): Rating (1-5)
  • notes (string; write): Remarks
  • is_active (boolean; write): Whether the record is active.
  • 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).
  • suppliers.created
  • suppliers.updated
  • suppliers.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.