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 Merchant IPs

Development Server
https://rewrd-api-staging.fly.dev/v1
Development Server
https://rewrd-api-staging.fly.dev/v1
GET
/merchant/security/ips
Retrieves the list of IP addresses that are currently whitelisted for API access.
How IP whitelisting works:
IP whitelisting adds an extra layer of security by restricting which servers can make API calls with your key.
Whitelist StateBehavior
Empty list (no IPs added)All IP addresses are allowed — no restrictions
Non-empty list (one or more IPs)Only requests from whitelisted IPs are accepted. All other IPs receive a 403 Forbidden error.
⚠️ Be careful: If you add IPs to the whitelist, make sure your server's IP is included, otherwise your own requests will be blocked!
Tip: You can find your server's public IP by running curl ifconfig.me in your terminal.

Request

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

Responses

🟢200
application/json
IP whitelist retrieved successfully.
Body

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://rewrd-api-staging.fly.dev/v1/merchant/security/ips' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": true,
    "data": [
        {
            "id": 0,
            "name": "string",
            "ip_address": "string",
            "ip_type": "string",
            "status": "string"
        }
    ]
}
Modified at 2026-04-07 21:05:20
Previous
Get Earning Rule Details
Next
Add Merchant IP
Built with