Earn rules
The ways customers earn stamps.
List earn rules
Section titled “List earn rules”GET /earn-rules
[ { "id": "12", "name": "Place an order", "type": "order", "step": 1, "multiplier": 1, "iconUrl": "https://..." }]Earn rule fields
Section titled “Earn rule fields”Both the list and single-rule endpoints return objects with these fields.
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier. |
name | string | Display name (branded/translated). |
type | string | Rule type (e.g. order, social, birthday). |
step | integer | Base stamps awarded per qualifying action. |
multiplier | number | Multiplier applied to step. |
iconUrl | string | Icon URL if set (omitted otherwise). |
Get an earn rule
Section titled “Get an earn rule”GET /earn-rules/{id}
Returns a single earn rule (see Earn rule fields), or 404 EARN_RULE_NOT_FOUND.