Suppliers
Suppliers, with tax and contact details.
Module: Suppliers (suppliers).
Endpoints
Section titled “Endpoints”GET /api/v1/suppliers- List with filters, sorting and pagination (scopesuppliers:read)GET /api/v1/suppliers/{id}- A record by id (scopesuppliers:read)POST /api/v1/suppliers- Create a record (scopesuppliers:write)PATCH /api/v1/suppliers/{id}- Modify the submitted fields (scopesuppliers:write)DELETE /api/v1/suppliers/{id}- Delete or deactivate (scopesuppliers:write)POST /api/v1/suppliers/{id}/set_product- The supplier’s offer for a product. (scopesuppliers:write)POST /api/v1/suppliers/{id}/remove_product- Removes the product from the supplier’s offer. (scopesuppliers:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; write, required): Namecui(string; write): Tax ID (CUI)nr_reg_com(string; write): Trade register numberplatitor_tva(boolean; write): VAT payeradresa(string; write): Addresslocalitate(string; write): Cityjudet(string; write): Countyemail(string, email; write): Email (orders)phone(string; write): Phonewebsite(string, uri; write): Websitecontact_name(string; write): Contact personiban(string; write): IBANbank(string; write): Bankpayment_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): Remarksis_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).
Events
Section titled “Events”suppliers.createdsuppliers.updatedsuppliers.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.