Loyalty / Spaarpunten
Per-shop configureerbaar spaarprogramma. Vaste punten per product (seed bij aanmaak, daarna bevroren) of rate-based.
Endpoints (5)
Haal de loyalty-configuratie van deze shop op. Leeg = programma niet actief.
No input parameters required.
Sla de loyalty-configuratie op (upsert). Vereist mode (per_product of rate_based).
| Field | Type | Required | Description |
|---|---|---|---|
config |
object | ✓ Yes | Volledig config-object: mode, redeem, expiry, en mode-specifieke velden (per_product: points_source + seed; rate_based: accrual). |
Haal de vaste punten van een product op (alle varianten + product-default).
| Field | Type | Required | Description |
|---|---|---|---|
product_id |
integer | ✓ Yes | Product-ID uit product-catalog. |
Zet de vaste punten voor een product of variant (handmatig, bevroren). variant_id weglaten = product-default.
| Field | Type | Required | Description |
|---|---|---|---|
product_id |
integer | ✓ Yes | Product-ID. |
variant_id |
integer | No | Variant-ID; weglaten voor product-default. |
points |
integer | ✓ Yes | Vast puntenaantal (>= 0). |
Zet punten voor meerdere producten/varianten tegelijk (max 500). Voor backfill van bestaande catalogus.
| Field | Type | Required | Description |
|---|---|---|---|
items |
array | ✓ Yes | Lijst van {product_id, variant_id?, points, source?}. source "seeded" markeert auto-afgeleide waarden. |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| get-config | loyalty_get_config |
| set-config | loyalty_set_config |
| get-product-points | loyalty_get_product_points |
| set-product-points | loyalty_set_product_points |
| bulk-set-product-points | loyalty_bulk_set_product_points |
Website