1. Merchant
Rewrd API
  • Customers
    • Create a Customer
      POST
    • List Customers
      GET
    • Get a Customer
      GET
    • Restrict a Customer
      PATCH
    • Unrestrict a Customer
      PATCH
  • Merchant
    • Get Merchant Configuration
      GET
    • Update Merchant Configuration
      PATCH
    • List Earning Rules
      GET
    • Get Earning Rule Details
      GET
    • List Merchant IPs
      GET
    • Add Merchant IP
      POST
    • Update Merchant IP
      PATCH
    • Delete Merchant IP
      DELETE
    • Get Merchant Analytics
      GET
  • Points
    • Process a Unified Points Transaction
      POST
    • Get Customer Transaction History
      GET
  1. Merchant

List Earning Rules

Development Server
https://rewrd-api-staging.fly.dev/v1
Development Server
https://rewrd-api-staging.fly.dev/v1
GET
/merchant/rules
Retrieves all active (non-deleted) earning rules for your merchant account.
What are earning rules?
Earning rules define the logic for how customers earn points. You create them in the Rewrd Dashboard, and then reference them by id when processing transactions via the POST /points/transaction endpoint.
Understanding earning_type:
Earning TypeHow points are calculatedExample
fixedAwards a flat number of points regardless of order valueRule says 50 points → Customer always gets 50 points, whether they spend ₦1,000 or ₦100,000
percentage_offAwards points as a percentage of the order valueRule says 10% → Customer spends ₦5,000, earns 500 points
Each rule also tracks users_rewarded, which is the total number of times it has been used to award points — useful for seeing which rules are most popular.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or

Responses

🟢200OK
application/json
Earning rules retrieved successfully.
Body

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://rewrd-api-staging.fly.dev/v1/merchant/rules' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": true,
    "message": "Earning rules retrieved successfully",
    "data": [
        {
            "id": 42,
            "merchant_id": "merch_xyz789",
            "name": "Purchase Reward",
            "points": 50,
            "type": "purchase",
            "subtype": "string",
            "status": "active",
            "users_rewarded": 1523,
            "deleted": false,
            "created_at": "2026-01-01T00:00:00.000Z",
            "updated_at": "2019-08-24T14:15:22.123Z",
            "earning_type": "fixed",
            "percentage_off": 10
        }
    ]
}
Modified at 2026-04-07 21:05:20
Previous
Update Merchant Configuration
Next
Get Earning Rule Details
Built with