Shop collections
Collections in the shop catalog, with their channels and products.
Module: Online shop (shop).
Endpoints
Section titled “Endpoints”GET /api/v1/shop_collections- List with filters, sorting and pagination (scopeshop:read)GET /api/v1/shop_collections/{id}- A record by id (scopeshop:read)POST /api/v1/shop_collections- Create a record (scopeshop:write)PATCH /api/v1/shop_collections/{id}- Modify the submitted fields (scopeshop:write)DELETE /api/v1/shop_collections/{id}- Delete or deactivate (scopeshop:write)POST /api/v1/shop_collections/{id}/add_product- Adds a product to a collection. (scopeshop:write)POST /api/v1/shop_collections/{id}/remove_product- Removes a product from a collection. (scopeshop:write)
Fields
Section titled “Fields”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)
Events
Section titled “Events”shop_collections.createdshop_collections.updatedshop_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.