created_at in descending order.
GET /public/earning-rules
Authorizations
Authorization string header required Bearer authentication header of the formBearer <token>, where <token> is your REST API token.
Query Parameters
campaign_type enum<string> Filter results to only earning rules of the given type. Available options:purchase,
signup,
review,
daily_visit,
birthday,
anniversary,
twitter_follow,
twitter_share,
instagram_follow,
instagram_share,
facebook_like,
facebook_share,
newsletter_subscribe
per_page
integer
default: 20
The number of results per page.
Required range: 1 <= x <= 100
page
integer
default: 1
The page number to retrieve.
Response
200 - application/json data object[] Hide child attributes data.id string<uuid> Unique UUID identifier for the earning rule. Example:"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
data.name
string
The display name of the earning rule.
Example:
"Place an order"
data.description
string | null
A short description shown to customers.
Example:
"Earn 5 points for every $1 spent."
data.campaign_type
enum<string>
The type of action that triggers this earning rule.
Example:
"purchase"
data.earning_rule
object | null
Defines how points are calculated when the rule is triggered.
Show child attributes
data.earning_rule.type
enum<string>
The method used to calculate points awarded.
Available options:
fixed,
variable
Example:
"variable"
data.earning_rule.value
number
Points awarded. For variable type, this is points earned per per_amount unit.
Example:
5
data.earning_rule.per_amount
number | null
Only present for variable type. The unit amount required to earn the value of points.
Example:
1
data.conditions
object | null
Optional conditions that must be met for the rule to trigger.
Example:
null
data.is_active
boolean
Whether this earning rule is currently active.
Example:
true
data.created_at
string<date-time>
Example:
"2026-01-10T09:00:00.000Z"
meta
object
Hide child attributes
meta.pagination
object
Hide child attributes
meta.pagination.current_page
integer
Example:
1
meta.pagination.per_page
integer
Example:
20
meta.pagination.total
integer
Example:
4
meta.pagination.last_page
integer
Example:
1
meta.pagination.has_more
boolean
Example:
false