Promotions
List coupons
Returns the paginated list of coupons for your store.
GET
Your store ID in Jelou Shop.
Page number to return.
Number of results per page (max. 100).
Filter by the coupon’s derived state. Values:
active, scheduled, expired, depleted, inactive.Coupon states
Thestate field is computed (not stored) from the status, validity window, and usage. Precedence: inactive → scheduled → expired → depleted → active.
| State | Meaning |
|---|---|
active | Active and applicable. |
scheduled | Scheduled: its valid_from is in the future. |
expired | Expired: its valid_until has passed. |
depleted | Depleted: it reached its max_uses. |
inactive | Manually deactivated (status: false). |
Response fields
Each coupon indata contains the following fields:
| Field | Type | Description |
|---|---|---|
id | string | Coupon UUID |
code | string | Code the customer enters |
name | string | Internal name |
description | string | null | Description |
discount_type | string | percentage or value |
discount_value | string | Discount value |
status | boolean | Whether it is active |
valid_from | string | null | Validity start |
valid_until | string | null | Validity end |
max_uses | integer | null | Total usage limit |
once_per_client | boolean | One use per customer |
applies_to_all_branches | boolean | Whether it applies to all branches |
uses_count | integer | Number of times it has been used |
state | string | Derived state (see table) |
created_at | string | Creation date |
updated_at | string | Last update date |
To include the assigned branches in the response, request the
branches relation (for example ?include=branches). To sort or filter by more fields, use Search coupons.