Products
What the Scops Loyalty product catalog holds, how to keep it in sync and where it's used.
Products is your product catalog inside Scops Loyalty. It holds each product's SKU, name, brand and category, so your team can pick real products when building promotions instead of typing SKUs from memory.
The catalog should mirror the product data in your own systems, such as your ERP, PIM or web shop. Load it with an import and keep it up to date through the API. You can also add and edit products in the dashboard, which works for a few corrections but not for keeping a whole catalog in sync.
What a product holds
| Field | Required | Notes |
|---|---|---|
sku | Yes | Unique within your catalog. The SKU connects the catalog to the SKUs in your transactions and promotions. |
name | Yes | The product name. |
brand | No | Free text, for example Nivea. |
category | No | Free text, for example Skincare. |
loyaltyPrice | No | An optional member price, stored with two decimals. |
active | No | true by default. Set it to false to retire a product. A retired product stays in the catalog but is hidden from the active catalog. |
Brands and categories come from your products, so there's no separate list to maintain. GET /products/brands and GET /products/categories return the distinct values in your catalog.
Use the same SKU, brand and category values that your integration sends in
transactions. Promotions, campaign formulas such as sku('SH-100') and
segment conditions all match on these values.
Keeping the catalog in sync
| How | Best for |
|---|---|
File import: POST /import/products with a JSON or CSV file | The first load, and regular full or partial syncs. Existing SKUs are updated and new SKUs are added. |
API: POST /products, PATCH /products/{id}, DELETE /products/{id} | Changes that should show up right away, such as a new, renamed or retired product. |
| Dashboard: Products → New Product | Occasional manual fixes. |
Import products has the file formats and examples.
Where the catalog is used
Wherever a promotion asks for products by SKU, the form shows a Browse catalog button. That covers product filters on static promotions and product lists in effects such as Price List and Bundle Fixed Price. In the catalog browser you can search by name, SKU, brand or category, filter by brand and category, sort by name, SKU, brand, category, price or date added, and add a product to the list with one click.
Browse catalog appears once your catalog has at least one active product.
API
| Endpoint | What it does |
|---|---|
POST /products | Create a product. A duplicate SKU returns 409. |
GET /products | List products. Supports page, limit (up to 1000), sortBy, sortOrder, search (name, SKU, brand and category), and the filters name, sku, brand, category and active. |
GET /products/{id} | Get one product. |
PATCH /products/{id} | Update any field. Send "active": true to bring a retired product back. |
DELETE /products/{id} | Retire a product, the same as setting active to false. |
GET /products/brands | All brands in your catalog. |
GET /products/categories | All categories in your catalog. |
POST /import/products | Upload a JSON or CSV file to import many products at once. |
Authenticate every request with your API key. Full schemas are in the API reference.