1. Customers
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. Customers

Restrict a Customer

Development Server
https://rewrd-api-staging.fly.dev/v1
Development Server
https://rewrd-api-staging.fly.dev/v1
PATCH
/customers/{uid}/restrict
Restricts a customer, preventing them from earning or redeeming points. The customer's existing points balance is preserved but frozen.
When to use this:
Fraud prevention — You suspect a customer is abusing the program
Dispute resolution — A customer disputes a transaction and you want to freeze their account while investigating
Temporary suspension — The customer requested a pause on their account
Customer status lifecycle:
active ──(restrict)──► restricted ──(unrestrict)──► active
Only active customers can be restricted. If the customer is already restricted, this endpoint will return a 403 error.

Request

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

Responses

🟢200OK
application/json
Customer restricted successfully.
Body

🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://rewrd-api-staging.fly.dev/v1/customers/26833813/restrict' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": true,
    "message": "Customer restricted successfully"
}
Modified at 2026-04-07 21:05:20
Previous
Get a Customer
Next
Unrestrict a Customer
Built with