Skip to content

Shop collections

Collections in the shop catalog, with their channels and products.

Module: Online shop (shop).

  • GET /api/v1/shop_collections - List with filters, sorting and pagination (scope shop:read)
  • GET /api/v1/shop_collections/{id} - A record by id (scope shop:read)
  • POST /api/v1/shop_collections - Create a record (scope shop:write)
  • PATCH /api/v1/shop_collections/{id} - Modify the submitted fields (scope shop:write)
  • DELETE /api/v1/shop_collections/{id} - Delete or deactivate (scope shop:write)
  • POST /api/v1/shop_collections/{id}/add_product - Adds a product to a collection. (scope shop:write)
  • POST /api/v1/shop_collections/{id}/remove_product - Removes a product from a collection. (scope shop:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • parent_id (string; write)
  • name (string; write, required)
  • slug (string; write)
  • description (string; write)
  • position (number; write)
  • is_active (boolean; write): Whether the record is active.
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • custom_fields (object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.
  • channel_ids (array; write)
  • product_ids (array; write)
  • shop_collections.created
  • shop_collections.updated
  • shop_collections.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.