Rewrd API
  1. Merchant
Rewrd API
  • Customers
    • Create or Update a Customer
      POST
    • List Customers
      GET
    • Get a Customer
      GET
    • Update a Customer
      PUT
    • 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
    • Get IP Whitelist
      GET
    • Update IP Whitelist
      PUT
    • Get Merchant Analytics
      GET
  • Points
    • Credit Points to a Customer
      POST
    • Redeem Points
      POST
    • Get Customer Transaction History
      GET
  1. Merchant

Update IP Whitelist

PUT
/merchant/security/ip-whitelist
Replaces the entire IP whitelist with the provided list of IP addresses.
Warning: Setting an incorrect whitelist can lock you out of your API. Send an empty array [] to disable IP whitelisting and allow all IPs.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
IP whitelist updated successfully.
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/merchant/security/ip-whitelist' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ips": [
        "203.0.113.50",
        "198.51.100.25"
    ]
}'
Response Response Example
200 - Example 1
{
    "status": true,
    "message": "IP whitelist updated successfully",
    "data": [
        "203.0.113.50",
        "198.51.100.25"
    ]
}
Modified at 2026-02-25 12:17:15
Previous
Get IP Whitelist
Next
Get Merchant Analytics
Built with